diff --git a/CHANGELOG.md b/CHANGELOG.md index 39c34ab813..40daf46b63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,7 +42,7 @@ topic := &resources.AWSSNSTopic{} New usage: ```go -import "github.com/awslabs/goformation/v3/cloudformation/sns" +import "github.com/awslabs/goformation/v4/cloudformation/sns" ...snip... diff --git a/README.md b/README.md index 72b4994d50..575af81c59 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ As with other Go libraries, GoFormation can be installed with `go get`. ``` -$ go get github.com/awslabs/goformation/v3 +$ go get github.com/awslabs/goformation/v4 ``` ## Usage @@ -45,8 +45,8 @@ import ( "strconv" "time" - "github.com/awslabs/goformation/v3/cloudformation" - "github.com/awslabs/goformation/v3/cloudformation/sns" + "github.com/awslabs/goformation/v4/cloudformation" + "github.com/awslabs/goformation/v4/cloudformation/sns" ) @@ -160,7 +160,7 @@ package main import ( "log" - "github.com/awslabs/goformation/v3" + "github.com/awslabs/goformation/v4" ) func main() { diff --git a/cloudformation/all.go b/cloudformation/all.go index 911da5638c..252355a96b 100644 --- a/cloudformation/all.go +++ b/cloudformation/all.go @@ -2,106 +2,109 @@ package cloudformation import ( "fmt" - "github.com/awslabs/goformation/v3/cloudformation/amazonmq" - "github.com/awslabs/goformation/v3/cloudformation/amplify" - "github.com/awslabs/goformation/v3/cloudformation/apigateway" - "github.com/awslabs/goformation/v3/cloudformation/apigatewayv2" - "github.com/awslabs/goformation/v3/cloudformation/applicationautoscaling" - "github.com/awslabs/goformation/v3/cloudformation/appmesh" - "github.com/awslabs/goformation/v3/cloudformation/appstream" - "github.com/awslabs/goformation/v3/cloudformation/appsync" - "github.com/awslabs/goformation/v3/cloudformation/ask" - "github.com/awslabs/goformation/v3/cloudformation/athena" - "github.com/awslabs/goformation/v3/cloudformation/autoscaling" - "github.com/awslabs/goformation/v3/cloudformation/autoscalingplans" - "github.com/awslabs/goformation/v3/cloudformation/backup" - "github.com/awslabs/goformation/v3/cloudformation/batch" - "github.com/awslabs/goformation/v3/cloudformation/budgets" - "github.com/awslabs/goformation/v3/cloudformation/certificatemanager" - "github.com/awslabs/goformation/v3/cloudformation/cloud9" - "github.com/awslabs/goformation/v3/cloudformation/cloudformation" - "github.com/awslabs/goformation/v3/cloudformation/cloudfront" - "github.com/awslabs/goformation/v3/cloudformation/cloudtrail" - "github.com/awslabs/goformation/v3/cloudformation/cloudwatch" - "github.com/awslabs/goformation/v3/cloudformation/codebuild" - "github.com/awslabs/goformation/v3/cloudformation/codecommit" - "github.com/awslabs/goformation/v3/cloudformation/codedeploy" - "github.com/awslabs/goformation/v3/cloudformation/codepipeline" - "github.com/awslabs/goformation/v3/cloudformation/codestar" - "github.com/awslabs/goformation/v3/cloudformation/cognito" - "github.com/awslabs/goformation/v3/cloudformation/config" - "github.com/awslabs/goformation/v3/cloudformation/datapipeline" - "github.com/awslabs/goformation/v3/cloudformation/dax" - "github.com/awslabs/goformation/v3/cloudformation/directoryservice" - "github.com/awslabs/goformation/v3/cloudformation/dlm" - "github.com/awslabs/goformation/v3/cloudformation/dms" - "github.com/awslabs/goformation/v3/cloudformation/docdb" - "github.com/awslabs/goformation/v3/cloudformation/dynamodb" - "github.com/awslabs/goformation/v3/cloudformation/ec2" - "github.com/awslabs/goformation/v3/cloudformation/ecr" - "github.com/awslabs/goformation/v3/cloudformation/ecs" - "github.com/awslabs/goformation/v3/cloudformation/efs" - "github.com/awslabs/goformation/v3/cloudformation/eks" - "github.com/awslabs/goformation/v3/cloudformation/elasticache" - "github.com/awslabs/goformation/v3/cloudformation/elasticbeanstalk" - "github.com/awslabs/goformation/v3/cloudformation/elasticloadbalancing" - "github.com/awslabs/goformation/v3/cloudformation/elasticloadbalancingv2" - "github.com/awslabs/goformation/v3/cloudformation/elasticsearch" - "github.com/awslabs/goformation/v3/cloudformation/emr" - "github.com/awslabs/goformation/v3/cloudformation/events" - "github.com/awslabs/goformation/v3/cloudformation/fsx" - "github.com/awslabs/goformation/v3/cloudformation/gamelift" - "github.com/awslabs/goformation/v3/cloudformation/glue" - "github.com/awslabs/goformation/v3/cloudformation/greengrass" - "github.com/awslabs/goformation/v3/cloudformation/guardduty" - "github.com/awslabs/goformation/v3/cloudformation/iam" - "github.com/awslabs/goformation/v3/cloudformation/inspector" - "github.com/awslabs/goformation/v3/cloudformation/iot" - "github.com/awslabs/goformation/v3/cloudformation/iot1click" - "github.com/awslabs/goformation/v3/cloudformation/iotanalytics" - "github.com/awslabs/goformation/v3/cloudformation/iotevents" - "github.com/awslabs/goformation/v3/cloudformation/iotthingsgraph" - "github.com/awslabs/goformation/v3/cloudformation/kinesis" - "github.com/awslabs/goformation/v3/cloudformation/kinesisanalytics" - "github.com/awslabs/goformation/v3/cloudformation/kinesisanalyticsv2" - "github.com/awslabs/goformation/v3/cloudformation/kinesisfirehose" - "github.com/awslabs/goformation/v3/cloudformation/kms" - "github.com/awslabs/goformation/v3/cloudformation/lakeformation" - "github.com/awslabs/goformation/v3/cloudformation/lambda" - "github.com/awslabs/goformation/v3/cloudformation/logs" - "github.com/awslabs/goformation/v3/cloudformation/managedblockchain" - "github.com/awslabs/goformation/v3/cloudformation/medialive" - "github.com/awslabs/goformation/v3/cloudformation/mediastore" - "github.com/awslabs/goformation/v3/cloudformation/msk" - "github.com/awslabs/goformation/v3/cloudformation/neptune" - "github.com/awslabs/goformation/v3/cloudformation/opsworks" - "github.com/awslabs/goformation/v3/cloudformation/opsworkscm" - "github.com/awslabs/goformation/v3/cloudformation/pinpoint" - "github.com/awslabs/goformation/v3/cloudformation/pinpointemail" - "github.com/awslabs/goformation/v3/cloudformation/qldb" - "github.com/awslabs/goformation/v3/cloudformation/ram" - "github.com/awslabs/goformation/v3/cloudformation/rds" - "github.com/awslabs/goformation/v3/cloudformation/redshift" - "github.com/awslabs/goformation/v3/cloudformation/robomaker" - "github.com/awslabs/goformation/v3/cloudformation/route53" - "github.com/awslabs/goformation/v3/cloudformation/route53resolver" - "github.com/awslabs/goformation/v3/cloudformation/s3" - "github.com/awslabs/goformation/v3/cloudformation/sagemaker" - "github.com/awslabs/goformation/v3/cloudformation/sdb" - "github.com/awslabs/goformation/v3/cloudformation/secretsmanager" - "github.com/awslabs/goformation/v3/cloudformation/securityhub" - "github.com/awslabs/goformation/v3/cloudformation/serverless" - "github.com/awslabs/goformation/v3/cloudformation/servicecatalog" - "github.com/awslabs/goformation/v3/cloudformation/servicediscovery" - "github.com/awslabs/goformation/v3/cloudformation/ses" - "github.com/awslabs/goformation/v3/cloudformation/sns" - "github.com/awslabs/goformation/v3/cloudformation/sqs" - "github.com/awslabs/goformation/v3/cloudformation/ssm" - "github.com/awslabs/goformation/v3/cloudformation/stepfunctions" - "github.com/awslabs/goformation/v3/cloudformation/transfer" - "github.com/awslabs/goformation/v3/cloudformation/waf" - "github.com/awslabs/goformation/v3/cloudformation/wafregional" - "github.com/awslabs/goformation/v3/cloudformation/workspaces" + "github.com/awslabs/goformation/v4/cloudformation/amazonmq" + "github.com/awslabs/goformation/v4/cloudformation/amplify" + "github.com/awslabs/goformation/v4/cloudformation/apigateway" + "github.com/awslabs/goformation/v4/cloudformation/apigatewayv2" + "github.com/awslabs/goformation/v4/cloudformation/applicationautoscaling" + "github.com/awslabs/goformation/v4/cloudformation/appmesh" + "github.com/awslabs/goformation/v4/cloudformation/appstream" + "github.com/awslabs/goformation/v4/cloudformation/appsync" + "github.com/awslabs/goformation/v4/cloudformation/ask" + "github.com/awslabs/goformation/v4/cloudformation/athena" + "github.com/awslabs/goformation/v4/cloudformation/autoscaling" + "github.com/awslabs/goformation/v4/cloudformation/autoscalingplans" + "github.com/awslabs/goformation/v4/cloudformation/backup" + "github.com/awslabs/goformation/v4/cloudformation/batch" + "github.com/awslabs/goformation/v4/cloudformation/budgets" + "github.com/awslabs/goformation/v4/cloudformation/certificatemanager" + "github.com/awslabs/goformation/v4/cloudformation/cloud9" + "github.com/awslabs/goformation/v4/cloudformation/cloudformation" + "github.com/awslabs/goformation/v4/cloudformation/cloudfront" + "github.com/awslabs/goformation/v4/cloudformation/cloudtrail" + "github.com/awslabs/goformation/v4/cloudformation/cloudwatch" + "github.com/awslabs/goformation/v4/cloudformation/codebuild" + "github.com/awslabs/goformation/v4/cloudformation/codecommit" + "github.com/awslabs/goformation/v4/cloudformation/codedeploy" + "github.com/awslabs/goformation/v4/cloudformation/codepipeline" + "github.com/awslabs/goformation/v4/cloudformation/codestar" + "github.com/awslabs/goformation/v4/cloudformation/codestarnotifications" + "github.com/awslabs/goformation/v4/cloudformation/cognito" + "github.com/awslabs/goformation/v4/cloudformation/config" + "github.com/awslabs/goformation/v4/cloudformation/datapipeline" + "github.com/awslabs/goformation/v4/cloudformation/dax" + "github.com/awslabs/goformation/v4/cloudformation/directoryservice" + "github.com/awslabs/goformation/v4/cloudformation/dlm" + "github.com/awslabs/goformation/v4/cloudformation/dms" + "github.com/awslabs/goformation/v4/cloudformation/docdb" + "github.com/awslabs/goformation/v4/cloudformation/dynamodb" + "github.com/awslabs/goformation/v4/cloudformation/ec2" + "github.com/awslabs/goformation/v4/cloudformation/ecr" + "github.com/awslabs/goformation/v4/cloudformation/ecs" + "github.com/awslabs/goformation/v4/cloudformation/efs" + "github.com/awslabs/goformation/v4/cloudformation/eks" + "github.com/awslabs/goformation/v4/cloudformation/elasticache" + "github.com/awslabs/goformation/v4/cloudformation/elasticbeanstalk" + "github.com/awslabs/goformation/v4/cloudformation/elasticloadbalancing" + "github.com/awslabs/goformation/v4/cloudformation/elasticloadbalancingv2" + "github.com/awslabs/goformation/v4/cloudformation/elasticsearch" + "github.com/awslabs/goformation/v4/cloudformation/emr" + "github.com/awslabs/goformation/v4/cloudformation/events" + "github.com/awslabs/goformation/v4/cloudformation/fsx" + "github.com/awslabs/goformation/v4/cloudformation/gamelift" + "github.com/awslabs/goformation/v4/cloudformation/glue" + "github.com/awslabs/goformation/v4/cloudformation/greengrass" + "github.com/awslabs/goformation/v4/cloudformation/guardduty" + "github.com/awslabs/goformation/v4/cloudformation/iam" + "github.com/awslabs/goformation/v4/cloudformation/inspector" + "github.com/awslabs/goformation/v4/cloudformation/iot" + "github.com/awslabs/goformation/v4/cloudformation/iot1click" + "github.com/awslabs/goformation/v4/cloudformation/iotanalytics" + "github.com/awslabs/goformation/v4/cloudformation/iotevents" + "github.com/awslabs/goformation/v4/cloudformation/iotthingsgraph" + "github.com/awslabs/goformation/v4/cloudformation/kinesis" + "github.com/awslabs/goformation/v4/cloudformation/kinesisanalytics" + "github.com/awslabs/goformation/v4/cloudformation/kinesisanalyticsv2" + "github.com/awslabs/goformation/v4/cloudformation/kinesisfirehose" + "github.com/awslabs/goformation/v4/cloudformation/kms" + "github.com/awslabs/goformation/v4/cloudformation/lakeformation" + "github.com/awslabs/goformation/v4/cloudformation/lambda" + "github.com/awslabs/goformation/v4/cloudformation/logs" + "github.com/awslabs/goformation/v4/cloudformation/managedblockchain" + "github.com/awslabs/goformation/v4/cloudformation/mediaconvert" + "github.com/awslabs/goformation/v4/cloudformation/medialive" + "github.com/awslabs/goformation/v4/cloudformation/mediastore" + "github.com/awslabs/goformation/v4/cloudformation/msk" + "github.com/awslabs/goformation/v4/cloudformation/neptune" + "github.com/awslabs/goformation/v4/cloudformation/opsworks" + "github.com/awslabs/goformation/v4/cloudformation/opsworkscm" + "github.com/awslabs/goformation/v4/cloudformation/pinpoint" + "github.com/awslabs/goformation/v4/cloudformation/pinpointemail" + "github.com/awslabs/goformation/v4/cloudformation/qldb" + "github.com/awslabs/goformation/v4/cloudformation/ram" + "github.com/awslabs/goformation/v4/cloudformation/rds" + "github.com/awslabs/goformation/v4/cloudformation/redshift" + "github.com/awslabs/goformation/v4/cloudformation/robomaker" + "github.com/awslabs/goformation/v4/cloudformation/route53" + "github.com/awslabs/goformation/v4/cloudformation/route53resolver" + "github.com/awslabs/goformation/v4/cloudformation/s3" + "github.com/awslabs/goformation/v4/cloudformation/sagemaker" + "github.com/awslabs/goformation/v4/cloudformation/sdb" + "github.com/awslabs/goformation/v4/cloudformation/secretsmanager" + "github.com/awslabs/goformation/v4/cloudformation/securityhub" + "github.com/awslabs/goformation/v4/cloudformation/serverless" + "github.com/awslabs/goformation/v4/cloudformation/servicecatalog" + "github.com/awslabs/goformation/v4/cloudformation/servicediscovery" + "github.com/awslabs/goformation/v4/cloudformation/ses" + "github.com/awslabs/goformation/v4/cloudformation/sns" + "github.com/awslabs/goformation/v4/cloudformation/sqs" + "github.com/awslabs/goformation/v4/cloudformation/ssm" + "github.com/awslabs/goformation/v4/cloudformation/stepfunctions" + "github.com/awslabs/goformation/v4/cloudformation/transfer" + "github.com/awslabs/goformation/v4/cloudformation/waf" + "github.com/awslabs/goformation/v4/cloudformation/wafregional" + "github.com/awslabs/goformation/v4/cloudformation/wafv2" + "github.com/awslabs/goformation/v4/cloudformation/workspaces" ) // AllResources fetches an iterable map all CloudFormation and SAM resources @@ -155,6 +158,7 @@ func AllResources() map[string]Resource { "AWS::AppStream::StackFleetAssociation": &appstream.StackFleetAssociation{}, "AWS::AppStream::StackUserAssociation": &appstream.StackUserAssociation{}, "AWS::AppStream::User": &appstream.User{}, + "AWS::AppSync::ApiCache": &appsync.ApiCache{}, "AWS::AppSync::ApiKey": &appsync.ApiKey{}, "AWS::AppSync::DataSource": &appsync.DataSource{}, "AWS::AppSync::FunctionConfiguration": &appsync.FunctionConfiguration{}, @@ -191,6 +195,7 @@ func AllResources() map[string]Resource { "AWS::CloudWatch::Alarm": &cloudwatch.Alarm{}, "AWS::CloudWatch::AnomalyDetector": &cloudwatch.AnomalyDetector{}, "AWS::CloudWatch::Dashboard": &cloudwatch.Dashboard{}, + "AWS::CloudWatch::InsightRule": &cloudwatch.InsightRule{}, "AWS::CodeBuild::Project": &codebuild.Project{}, "AWS::CodeBuild::SourceCredential": &codebuild.SourceCredential{}, "AWS::CodeCommit::Repository": &codecommit.Repository{}, @@ -201,6 +206,7 @@ func AllResources() map[string]Resource { "AWS::CodePipeline::Pipeline": &codepipeline.Pipeline{}, "AWS::CodePipeline::Webhook": &codepipeline.Webhook{}, "AWS::CodeStar::GitHubRepository": &codestar.GitHubRepository{}, + "AWS::CodeStarNotifications::NotificationRule": &codestarnotifications.NotificationRule{}, "AWS::Cognito::IdentityPool": &cognito.IdentityPool{}, "AWS::Cognito::IdentityPoolRoleAttachment": &cognito.IdentityPoolRoleAttachment{}, "AWS::Cognito::UserPool": &cognito.UserPool{}, @@ -298,11 +304,14 @@ func AllResources() map[string]Resource { "AWS::EC2::VolumeAttachment": &ec2.VolumeAttachment{}, "AWS::ECR::Repository": &ecr.Repository{}, "AWS::ECS::Cluster": &ecs.Cluster{}, + "AWS::ECS::PrimaryTaskSet": &ecs.PrimaryTaskSet{}, "AWS::ECS::Service": &ecs.Service{}, "AWS::ECS::TaskDefinition": &ecs.TaskDefinition{}, + "AWS::ECS::TaskSet": &ecs.TaskSet{}, "AWS::EFS::FileSystem": &efs.FileSystem{}, "AWS::EFS::MountTarget": &efs.MountTarget{}, "AWS::EKS::Cluster": &eks.Cluster{}, + "AWS::EKS::Nodegroup": &eks.Nodegroup{}, "AWS::EMR::Cluster": &emr.Cluster{}, "AWS::EMR::InstanceFleetConfig": &emr.InstanceFleetConfig{}, "AWS::EMR::InstanceGroupConfig": &emr.InstanceGroupConfig{}, @@ -332,6 +341,10 @@ func AllResources() map[string]Resource { "AWS::GameLift::Alias": &gamelift.Alias{}, "AWS::GameLift::Build": &gamelift.Build{}, "AWS::GameLift::Fleet": &gamelift.Fleet{}, + "AWS::GameLift::GameSessionQueue": &gamelift.GameSessionQueue{}, + "AWS::GameLift::MatchmakingConfiguration": &gamelift.MatchmakingConfiguration{}, + "AWS::GameLift::MatchmakingRuleSet": &gamelift.MatchmakingRuleSet{}, + "AWS::GameLift::Script": &gamelift.Script{}, "AWS::Glue::Classifier": &glue.Classifier{}, "AWS::Glue::Connection": &glue.Connection{}, "AWS::Glue::Crawler": &glue.Crawler{}, @@ -411,6 +424,7 @@ func AllResources() map[string]Resource { "AWS::LakeFormation::Permissions": &lakeformation.Permissions{}, "AWS::LakeFormation::Resource": &lakeformation.Resource{}, "AWS::Lambda::Alias": &lambda.Alias{}, + "AWS::Lambda::EventInvokeConfig": &lambda.EventInvokeConfig{}, "AWS::Lambda::EventSourceMapping": &lambda.EventSourceMapping{}, "AWS::Lambda::Function": &lambda.Function{}, "AWS::Lambda::LayerVersion": &lambda.LayerVersion{}, @@ -425,6 +439,9 @@ func AllResources() map[string]Resource { "AWS::MSK::Cluster": &msk.Cluster{}, "AWS::ManagedBlockchain::Member": &managedblockchain.Member{}, "AWS::ManagedBlockchain::Node": &managedblockchain.Node{}, + "AWS::MediaConvert::JobTemplate": &mediaconvert.JobTemplate{}, + "AWS::MediaConvert::Preset": &mediaconvert.Preset{}, + "AWS::MediaConvert::Queue": &mediaconvert.Queue{}, "AWS::MediaLive::Channel": &medialive.Channel{}, "AWS::MediaLive::Input": &medialive.Input{}, "AWS::MediaLive::InputSecurityGroup": &medialive.InputSecurityGroup{}, @@ -452,10 +469,13 @@ func AllResources() map[string]Resource { "AWS::Pinpoint::BaiduChannel": &pinpoint.BaiduChannel{}, "AWS::Pinpoint::Campaign": &pinpoint.Campaign{}, "AWS::Pinpoint::EmailChannel": &pinpoint.EmailChannel{}, + "AWS::Pinpoint::EmailTemplate": &pinpoint.EmailTemplate{}, "AWS::Pinpoint::EventStream": &pinpoint.EventStream{}, "AWS::Pinpoint::GCMChannel": &pinpoint.GCMChannel{}, + "AWS::Pinpoint::PushTemplate": &pinpoint.PushTemplate{}, "AWS::Pinpoint::SMSChannel": &pinpoint.SMSChannel{}, "AWS::Pinpoint::Segment": &pinpoint.Segment{}, + "AWS::Pinpoint::SmsTemplate": &pinpoint.SmsTemplate{}, "AWS::Pinpoint::VoiceChannel": &pinpoint.VoiceChannel{}, "AWS::PinpointEmail::ConfigurationSet": &pinpointemail.ConfigurationSet{}, "AWS::PinpointEmail::ConfigurationSetEventDestination": &pinpointemail.ConfigurationSetEventDestination{}, @@ -570,6 +590,10 @@ func AllResources() map[string]Resource { "AWS::WAFRegional::WebACL": &wafregional.WebACL{}, "AWS::WAFRegional::WebACLAssociation": &wafregional.WebACLAssociation{}, "AWS::WAFRegional::XssMatchSet": &wafregional.XssMatchSet{}, + "AWS::WAFv2::IPSet": &wafv2.IPSet{}, + "AWS::WAFv2::RegexPatternSet": &wafv2.RegexPatternSet{}, + "AWS::WAFv2::RuleGroup": &wafv2.RuleGroup{}, + "AWS::WAFv2::WebACL": &wafv2.WebACL{}, "AWS::WorkSpaces::Workspace": &workspaces.Workspace{}, "Alexa::ASK::Skill": &ask.Skill{}, } @@ -1727,6 +1751,30 @@ func (t *Template) GetAppStreamUserWithName(name string) (*appstream.User, error return nil, fmt.Errorf("resource %q of type appstream.User not found", name) } +// GetAllAppSyncApiCacheResources retrieves all appsync.ApiCache items from an AWS CloudFormation template +func (t *Template) GetAllAppSyncApiCacheResources() map[string]*appsync.ApiCache { + results := map[string]*appsync.ApiCache{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *appsync.ApiCache: + results[name] = resource + } + } + return results +} + +// GetAppSyncApiCacheWithName retrieves all appsync.ApiCache items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetAppSyncApiCacheWithName(name string) (*appsync.ApiCache, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *appsync.ApiCache: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type appsync.ApiCache not found", name) +} + // GetAllAppSyncApiKeyResources retrieves all appsync.ApiKey items from an AWS CloudFormation template func (t *Template) GetAllAppSyncApiKeyResources() map[string]*appsync.ApiKey { results := map[string]*appsync.ApiKey{} @@ -2591,6 +2639,30 @@ func (t *Template) GetCloudWatchDashboardWithName(name string) (*cloudwatch.Dash return nil, fmt.Errorf("resource %q of type cloudwatch.Dashboard not found", name) } +// GetAllCloudWatchInsightRuleResources retrieves all cloudwatch.InsightRule items from an AWS CloudFormation template +func (t *Template) GetAllCloudWatchInsightRuleResources() map[string]*cloudwatch.InsightRule { + results := map[string]*cloudwatch.InsightRule{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *cloudwatch.InsightRule: + results[name] = resource + } + } + return results +} + +// GetCloudWatchInsightRuleWithName retrieves all cloudwatch.InsightRule items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetCloudWatchInsightRuleWithName(name string) (*cloudwatch.InsightRule, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *cloudwatch.InsightRule: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type cloudwatch.InsightRule not found", name) +} + // GetAllCodeBuildProjectResources retrieves all codebuild.Project items from an AWS CloudFormation template func (t *Template) GetAllCodeBuildProjectResources() map[string]*codebuild.Project { results := map[string]*codebuild.Project{} @@ -2831,6 +2903,30 @@ func (t *Template) GetCodeStarGitHubRepositoryWithName(name string) (*codestar.G return nil, fmt.Errorf("resource %q of type codestar.GitHubRepository not found", name) } +// GetAllCodeStarNotificationsNotificationRuleResources retrieves all codestarnotifications.NotificationRule items from an AWS CloudFormation template +func (t *Template) GetAllCodeStarNotificationsNotificationRuleResources() map[string]*codestarnotifications.NotificationRule { + results := map[string]*codestarnotifications.NotificationRule{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *codestarnotifications.NotificationRule: + results[name] = resource + } + } + return results +} + +// GetCodeStarNotificationsNotificationRuleWithName retrieves all codestarnotifications.NotificationRule items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetCodeStarNotificationsNotificationRuleWithName(name string) (*codestarnotifications.NotificationRule, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *codestarnotifications.NotificationRule: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type codestarnotifications.NotificationRule not found", name) +} + // GetAllCognitoIdentityPoolResources retrieves all cognito.IdentityPool items from an AWS CloudFormation template func (t *Template) GetAllCognitoIdentityPoolResources() map[string]*cognito.IdentityPool { results := map[string]*cognito.IdentityPool{} @@ -5159,6 +5255,30 @@ func (t *Template) GetECSClusterWithName(name string) (*ecs.Cluster, error) { return nil, fmt.Errorf("resource %q of type ecs.Cluster not found", name) } +// GetAllECSPrimaryTaskSetResources retrieves all ecs.PrimaryTaskSet items from an AWS CloudFormation template +func (t *Template) GetAllECSPrimaryTaskSetResources() map[string]*ecs.PrimaryTaskSet { + results := map[string]*ecs.PrimaryTaskSet{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *ecs.PrimaryTaskSet: + results[name] = resource + } + } + return results +} + +// GetECSPrimaryTaskSetWithName retrieves all ecs.PrimaryTaskSet items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetECSPrimaryTaskSetWithName(name string) (*ecs.PrimaryTaskSet, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *ecs.PrimaryTaskSet: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type ecs.PrimaryTaskSet not found", name) +} + // GetAllECSServiceResources retrieves all ecs.Service items from an AWS CloudFormation template func (t *Template) GetAllECSServiceResources() map[string]*ecs.Service { results := map[string]*ecs.Service{} @@ -5207,6 +5327,30 @@ func (t *Template) GetECSTaskDefinitionWithName(name string) (*ecs.TaskDefinitio return nil, fmt.Errorf("resource %q of type ecs.TaskDefinition not found", name) } +// GetAllECSTaskSetResources retrieves all ecs.TaskSet items from an AWS CloudFormation template +func (t *Template) GetAllECSTaskSetResources() map[string]*ecs.TaskSet { + results := map[string]*ecs.TaskSet{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *ecs.TaskSet: + results[name] = resource + } + } + return results +} + +// GetECSTaskSetWithName retrieves all ecs.TaskSet items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetECSTaskSetWithName(name string) (*ecs.TaskSet, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *ecs.TaskSet: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type ecs.TaskSet not found", name) +} + // GetAllEFSFileSystemResources retrieves all efs.FileSystem items from an AWS CloudFormation template func (t *Template) GetAllEFSFileSystemResources() map[string]*efs.FileSystem { results := map[string]*efs.FileSystem{} @@ -5279,6 +5423,30 @@ func (t *Template) GetEKSClusterWithName(name string) (*eks.Cluster, error) { return nil, fmt.Errorf("resource %q of type eks.Cluster not found", name) } +// GetAllEKSNodegroupResources retrieves all eks.Nodegroup items from an AWS CloudFormation template +func (t *Template) GetAllEKSNodegroupResources() map[string]*eks.Nodegroup { + results := map[string]*eks.Nodegroup{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *eks.Nodegroup: + results[name] = resource + } + } + return results +} + +// GetEKSNodegroupWithName retrieves all eks.Nodegroup items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetEKSNodegroupWithName(name string) (*eks.Nodegroup, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *eks.Nodegroup: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type eks.Nodegroup not found", name) +} + // GetAllEMRClusterResources retrieves all emr.Cluster items from an AWS CloudFormation template func (t *Template) GetAllEMRClusterResources() map[string]*emr.Cluster { results := map[string]*emr.Cluster{} @@ -5975,6 +6143,102 @@ func (t *Template) GetGameLiftFleetWithName(name string) (*gamelift.Fleet, error return nil, fmt.Errorf("resource %q of type gamelift.Fleet not found", name) } +// GetAllGameLiftGameSessionQueueResources retrieves all gamelift.GameSessionQueue items from an AWS CloudFormation template +func (t *Template) GetAllGameLiftGameSessionQueueResources() map[string]*gamelift.GameSessionQueue { + results := map[string]*gamelift.GameSessionQueue{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *gamelift.GameSessionQueue: + results[name] = resource + } + } + return results +} + +// GetGameLiftGameSessionQueueWithName retrieves all gamelift.GameSessionQueue items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetGameLiftGameSessionQueueWithName(name string) (*gamelift.GameSessionQueue, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *gamelift.GameSessionQueue: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type gamelift.GameSessionQueue not found", name) +} + +// GetAllGameLiftMatchmakingConfigurationResources retrieves all gamelift.MatchmakingConfiguration items from an AWS CloudFormation template +func (t *Template) GetAllGameLiftMatchmakingConfigurationResources() map[string]*gamelift.MatchmakingConfiguration { + results := map[string]*gamelift.MatchmakingConfiguration{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *gamelift.MatchmakingConfiguration: + results[name] = resource + } + } + return results +} + +// GetGameLiftMatchmakingConfigurationWithName retrieves all gamelift.MatchmakingConfiguration items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetGameLiftMatchmakingConfigurationWithName(name string) (*gamelift.MatchmakingConfiguration, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *gamelift.MatchmakingConfiguration: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type gamelift.MatchmakingConfiguration not found", name) +} + +// GetAllGameLiftMatchmakingRuleSetResources retrieves all gamelift.MatchmakingRuleSet items from an AWS CloudFormation template +func (t *Template) GetAllGameLiftMatchmakingRuleSetResources() map[string]*gamelift.MatchmakingRuleSet { + results := map[string]*gamelift.MatchmakingRuleSet{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *gamelift.MatchmakingRuleSet: + results[name] = resource + } + } + return results +} + +// GetGameLiftMatchmakingRuleSetWithName retrieves all gamelift.MatchmakingRuleSet items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetGameLiftMatchmakingRuleSetWithName(name string) (*gamelift.MatchmakingRuleSet, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *gamelift.MatchmakingRuleSet: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type gamelift.MatchmakingRuleSet not found", name) +} + +// GetAllGameLiftScriptResources retrieves all gamelift.Script items from an AWS CloudFormation template +func (t *Template) GetAllGameLiftScriptResources() map[string]*gamelift.Script { + results := map[string]*gamelift.Script{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *gamelift.Script: + results[name] = resource + } + } + return results +} + +// GetGameLiftScriptWithName retrieves all gamelift.Script items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetGameLiftScriptWithName(name string) (*gamelift.Script, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *gamelift.Script: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type gamelift.Script not found", name) +} + // GetAllGlueClassifierResources retrieves all glue.Classifier items from an AWS CloudFormation template func (t *Template) GetAllGlueClassifierResources() map[string]*glue.Classifier { results := map[string]*glue.Classifier{} @@ -7871,6 +8135,30 @@ func (t *Template) GetLambdaAliasWithName(name string) (*lambda.Alias, error) { return nil, fmt.Errorf("resource %q of type lambda.Alias not found", name) } +// GetAllLambdaEventInvokeConfigResources retrieves all lambda.EventInvokeConfig items from an AWS CloudFormation template +func (t *Template) GetAllLambdaEventInvokeConfigResources() map[string]*lambda.EventInvokeConfig { + results := map[string]*lambda.EventInvokeConfig{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *lambda.EventInvokeConfig: + results[name] = resource + } + } + return results +} + +// GetLambdaEventInvokeConfigWithName retrieves all lambda.EventInvokeConfig items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetLambdaEventInvokeConfigWithName(name string) (*lambda.EventInvokeConfig, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *lambda.EventInvokeConfig: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type lambda.EventInvokeConfig not found", name) +} + // GetAllLambdaEventSourceMappingResources retrieves all lambda.EventSourceMapping items from an AWS CloudFormation template func (t *Template) GetAllLambdaEventSourceMappingResources() map[string]*lambda.EventSourceMapping { results := map[string]*lambda.EventSourceMapping{} @@ -8207,6 +8495,78 @@ func (t *Template) GetManagedBlockchainNodeWithName(name string) (*managedblockc return nil, fmt.Errorf("resource %q of type managedblockchain.Node not found", name) } +// GetAllMediaConvertJobTemplateResources retrieves all mediaconvert.JobTemplate items from an AWS CloudFormation template +func (t *Template) GetAllMediaConvertJobTemplateResources() map[string]*mediaconvert.JobTemplate { + results := map[string]*mediaconvert.JobTemplate{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *mediaconvert.JobTemplate: + results[name] = resource + } + } + return results +} + +// GetMediaConvertJobTemplateWithName retrieves all mediaconvert.JobTemplate items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetMediaConvertJobTemplateWithName(name string) (*mediaconvert.JobTemplate, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *mediaconvert.JobTemplate: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type mediaconvert.JobTemplate not found", name) +} + +// GetAllMediaConvertPresetResources retrieves all mediaconvert.Preset items from an AWS CloudFormation template +func (t *Template) GetAllMediaConvertPresetResources() map[string]*mediaconvert.Preset { + results := map[string]*mediaconvert.Preset{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *mediaconvert.Preset: + results[name] = resource + } + } + return results +} + +// GetMediaConvertPresetWithName retrieves all mediaconvert.Preset items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetMediaConvertPresetWithName(name string) (*mediaconvert.Preset, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *mediaconvert.Preset: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type mediaconvert.Preset not found", name) +} + +// GetAllMediaConvertQueueResources retrieves all mediaconvert.Queue items from an AWS CloudFormation template +func (t *Template) GetAllMediaConvertQueueResources() map[string]*mediaconvert.Queue { + results := map[string]*mediaconvert.Queue{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *mediaconvert.Queue: + results[name] = resource + } + } + return results +} + +// GetMediaConvertQueueWithName retrieves all mediaconvert.Queue items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetMediaConvertQueueWithName(name string) (*mediaconvert.Queue, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *mediaconvert.Queue: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type mediaconvert.Queue not found", name) +} + // GetAllMediaLiveChannelResources retrieves all medialive.Channel items from an AWS CloudFormation template func (t *Template) GetAllMediaLiveChannelResources() map[string]*medialive.Channel { results := map[string]*medialive.Channel{} @@ -8855,6 +9215,30 @@ func (t *Template) GetPinpointEmailChannelWithName(name string) (*pinpoint.Email return nil, fmt.Errorf("resource %q of type pinpoint.EmailChannel not found", name) } +// GetAllPinpointEmailTemplateResources retrieves all pinpoint.EmailTemplate items from an AWS CloudFormation template +func (t *Template) GetAllPinpointEmailTemplateResources() map[string]*pinpoint.EmailTemplate { + results := map[string]*pinpoint.EmailTemplate{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *pinpoint.EmailTemplate: + results[name] = resource + } + } + return results +} + +// GetPinpointEmailTemplateWithName retrieves all pinpoint.EmailTemplate items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetPinpointEmailTemplateWithName(name string) (*pinpoint.EmailTemplate, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *pinpoint.EmailTemplate: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type pinpoint.EmailTemplate not found", name) +} + // GetAllPinpointEventStreamResources retrieves all pinpoint.EventStream items from an AWS CloudFormation template func (t *Template) GetAllPinpointEventStreamResources() map[string]*pinpoint.EventStream { results := map[string]*pinpoint.EventStream{} @@ -8903,6 +9287,30 @@ func (t *Template) GetPinpointGCMChannelWithName(name string) (*pinpoint.GCMChan return nil, fmt.Errorf("resource %q of type pinpoint.GCMChannel not found", name) } +// GetAllPinpointPushTemplateResources retrieves all pinpoint.PushTemplate items from an AWS CloudFormation template +func (t *Template) GetAllPinpointPushTemplateResources() map[string]*pinpoint.PushTemplate { + results := map[string]*pinpoint.PushTemplate{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *pinpoint.PushTemplate: + results[name] = resource + } + } + return results +} + +// GetPinpointPushTemplateWithName retrieves all pinpoint.PushTemplate items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetPinpointPushTemplateWithName(name string) (*pinpoint.PushTemplate, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *pinpoint.PushTemplate: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type pinpoint.PushTemplate not found", name) +} + // GetAllPinpointSMSChannelResources retrieves all pinpoint.SMSChannel items from an AWS CloudFormation template func (t *Template) GetAllPinpointSMSChannelResources() map[string]*pinpoint.SMSChannel { results := map[string]*pinpoint.SMSChannel{} @@ -8951,6 +9359,30 @@ func (t *Template) GetPinpointSegmentWithName(name string) (*pinpoint.Segment, e return nil, fmt.Errorf("resource %q of type pinpoint.Segment not found", name) } +// GetAllPinpointSmsTemplateResources retrieves all pinpoint.SmsTemplate items from an AWS CloudFormation template +func (t *Template) GetAllPinpointSmsTemplateResources() map[string]*pinpoint.SmsTemplate { + results := map[string]*pinpoint.SmsTemplate{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *pinpoint.SmsTemplate: + results[name] = resource + } + } + return results +} + +// GetPinpointSmsTemplateWithName retrieves all pinpoint.SmsTemplate items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetPinpointSmsTemplateWithName(name string) (*pinpoint.SmsTemplate, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *pinpoint.SmsTemplate: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type pinpoint.SmsTemplate not found", name) +} + // GetAllPinpointVoiceChannelResources retrieves all pinpoint.VoiceChannel items from an AWS CloudFormation template func (t *Template) GetAllPinpointVoiceChannelResources() map[string]*pinpoint.VoiceChannel { results := map[string]*pinpoint.VoiceChannel{} @@ -11687,6 +12119,102 @@ func (t *Template) GetWAFRegionalXssMatchSetWithName(name string) (*wafregional. return nil, fmt.Errorf("resource %q of type wafregional.XssMatchSet not found", name) } +// GetAllWAFv2IPSetResources retrieves all wafv2.IPSet items from an AWS CloudFormation template +func (t *Template) GetAllWAFv2IPSetResources() map[string]*wafv2.IPSet { + results := map[string]*wafv2.IPSet{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *wafv2.IPSet: + results[name] = resource + } + } + return results +} + +// GetWAFv2IPSetWithName retrieves all wafv2.IPSet items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetWAFv2IPSetWithName(name string) (*wafv2.IPSet, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *wafv2.IPSet: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type wafv2.IPSet not found", name) +} + +// GetAllWAFv2RegexPatternSetResources retrieves all wafv2.RegexPatternSet items from an AWS CloudFormation template +func (t *Template) GetAllWAFv2RegexPatternSetResources() map[string]*wafv2.RegexPatternSet { + results := map[string]*wafv2.RegexPatternSet{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *wafv2.RegexPatternSet: + results[name] = resource + } + } + return results +} + +// GetWAFv2RegexPatternSetWithName retrieves all wafv2.RegexPatternSet items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetWAFv2RegexPatternSetWithName(name string) (*wafv2.RegexPatternSet, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *wafv2.RegexPatternSet: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type wafv2.RegexPatternSet not found", name) +} + +// GetAllWAFv2RuleGroupResources retrieves all wafv2.RuleGroup items from an AWS CloudFormation template +func (t *Template) GetAllWAFv2RuleGroupResources() map[string]*wafv2.RuleGroup { + results := map[string]*wafv2.RuleGroup{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *wafv2.RuleGroup: + results[name] = resource + } + } + return results +} + +// GetWAFv2RuleGroupWithName retrieves all wafv2.RuleGroup items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetWAFv2RuleGroupWithName(name string) (*wafv2.RuleGroup, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *wafv2.RuleGroup: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type wafv2.RuleGroup not found", name) +} + +// GetAllWAFv2WebACLResources retrieves all wafv2.WebACL items from an AWS CloudFormation template +func (t *Template) GetAllWAFv2WebACLResources() map[string]*wafv2.WebACL { + results := map[string]*wafv2.WebACL{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *wafv2.WebACL: + results[name] = resource + } + } + return results +} + +// GetWAFv2WebACLWithName retrieves all wafv2.WebACL items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetWAFv2WebACLWithName(name string) (*wafv2.WebACL, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *wafv2.WebACL: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type wafv2.WebACL not found", name) +} + // GetAllWorkSpacesWorkspaceResources retrieves all workspaces.Workspace items from an AWS CloudFormation template func (t *Template) GetAllWorkSpacesWorkspaceResources() map[string]*workspaces.Workspace { results := map[string]*workspaces.Workspace{} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker.go b/cloudformation/amazonmq/aws-amazonmq-broker.go index e4e1ae1403..76178398fd 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker AWS CloudFormation Resource (AWS::AmazonMQ::Broker) @@ -72,6 +72,11 @@ type Broker struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-securitygroups SecurityGroups []string `json:"SecurityGroups,omitempty"` + // StorageType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-storagetype + StorageType string `json:"StorageType,omitempty"` + // SubnetIds AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-subnetids @@ -87,14 +92,14 @@ type Broker struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html#cfn-amazonmq-broker-users Users []Broker_User `json:"Users,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -102,42 +107,6 @@ func (r *Broker) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Broker) MarshalJSON() ([]byte, error) { @@ -151,9 +120,9 @@ func (r Broker) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -182,13 +151,13 @@ func (r *Broker) UnmarshalJSON(b []byte) error { *r = Broker(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go b/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go index 0d5b1f8e3a..3814fc729c 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker_ConfigurationId AWS CloudFormation Resource (AWS::AmazonMQ::Broker.ConfigurationId) @@ -18,53 +18,17 @@ type Broker_ConfigurationId struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html#cfn-amazonmq-broker-configurationid-revision Revision int `json:"Revision"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Broker_ConfigurationId) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker.ConfigurationId" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_ConfigurationId) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_ConfigurationId) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_ConfigurationId) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_ConfigurationId) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_ConfigurationId) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_ConfigurationId) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go b/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go index 2645dc8880..c03a2f1434 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker_EncryptionOptions AWS CloudFormation Resource (AWS::AmazonMQ::Broker.EncryptionOptions) @@ -18,53 +18,17 @@ type Broker_EncryptionOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-encryptionoptions.html#cfn-amazonmq-broker-encryptionoptions-useawsownedkey UseAwsOwnedKey bool `json:"UseAwsOwnedKey"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Broker_EncryptionOptions) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker.EncryptionOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_EncryptionOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_EncryptionOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_EncryptionOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_EncryptionOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_EncryptionOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_EncryptionOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go b/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go index a5c6ab3b21..edd544fc14 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker_LogList AWS CloudFormation Resource (AWS::AmazonMQ::Broker.LogList) @@ -18,53 +18,17 @@ type Broker_LogList struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-general General bool `json:"General,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Broker_LogList) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker.LogList" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_LogList) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_LogList) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_LogList) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_LogList) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_LogList) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_LogList) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go b/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go index e93d1c8504..6b9f8a76e3 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker_MaintenanceWindow AWS CloudFormation Resource (AWS::AmazonMQ::Broker.MaintenanceWindow) @@ -23,53 +23,17 @@ type Broker_MaintenanceWindow struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-maintenancewindow.html#cfn-amazonmq-broker-maintenancewindow-timezone TimeZone string `json:"TimeZone,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Broker_MaintenanceWindow) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker.MaintenanceWindow" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_MaintenanceWindow) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_MaintenanceWindow) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_MaintenanceWindow) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_MaintenanceWindow) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_MaintenanceWindow) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_MaintenanceWindow) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go b/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go index 5e7baa82ca..1c6dacdb61 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker_TagsEntry AWS CloudFormation Resource (AWS::AmazonMQ::Broker.TagsEntry) @@ -18,53 +18,17 @@ type Broker_TagsEntry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-tagsentry.html#cfn-amazonmq-broker-tagsentry-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Broker_TagsEntry) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker.TagsEntry" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_TagsEntry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_TagsEntry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_TagsEntry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_TagsEntry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_TagsEntry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_user.go b/cloudformation/amazonmq/aws-amazonmq-broker_user.go index 892eb9fddd..f21e3d5cb2 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_user.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_user.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Broker_User AWS CloudFormation Resource (AWS::AmazonMQ::Broker.User) @@ -28,53 +28,17 @@ type Broker_User struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Broker_User) AWSCloudFormationType() string { return "AWS::AmazonMQ::Broker.User" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_User) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Broker_User) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_User) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Broker_User) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_User) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Broker_User) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-configuration.go b/cloudformation/amazonmq/aws-amazonmq-configuration.go index 1c72768609..1e4e94437e 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configuration.go +++ b/cloudformation/amazonmq/aws-amazonmq-configuration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Configuration AWS CloudFormation Resource (AWS::AmazonMQ::Configuration) @@ -42,14 +42,14 @@ type Configuration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html#cfn-amazonmq-configuration-tags Tags []Configuration_TagsEntry `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *Configuration) AWSCloudFormationType() string { return "AWS::AmazonMQ::Configuration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Configuration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Configuration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Configuration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Configuration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Configuration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Configuration) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r Configuration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *Configuration) UnmarshalJSON(b []byte) error { *r = Configuration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go b/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go index ccecdfa7f0..563a74f379 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go +++ b/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Configuration_TagsEntry AWS CloudFormation Resource (AWS::AmazonMQ::Configuration.TagsEntry) @@ -18,53 +18,17 @@ type Configuration_TagsEntry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-configuration-tagsentry.html#cfn-amazonmq-configuration-tagsentry-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Configuration_TagsEntry) AWSCloudFormationType() string { return "AWS::AmazonMQ::Configuration.TagsEntry" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Configuration_TagsEntry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Configuration_TagsEntry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Configuration_TagsEntry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Configuration_TagsEntry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Configuration_TagsEntry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Configuration_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go b/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go index e3c444112d..7e7c6ae2ef 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go +++ b/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationAssociation AWS CloudFormation Resource (AWS::AmazonMQ::ConfigurationAssociation) @@ -22,14 +22,14 @@ type ConfigurationAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configurationassociation.html#cfn-amazonmq-configurationassociation-configuration Configuration *ConfigurationAssociation_ConfigurationId `json:"Configuration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ConfigurationAssociation) AWSCloudFormationType() string { return "AWS::AmazonMQ::ConfigurationAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ConfigurationAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ConfigurationAssociation) UnmarshalJSON(b []byte) error { *r = ConfigurationAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go b/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go index 6fcf7417ba..ced439b157 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go +++ b/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go @@ -1,7 +1,7 @@ package amazonmq import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationAssociation_ConfigurationId AWS CloudFormation Resource (AWS::AmazonMQ::ConfigurationAssociation.ConfigurationId) @@ -18,53 +18,17 @@ type ConfigurationAssociation_ConfigurationId struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-configurationassociation-configurationid.html#cfn-amazonmq-configurationassociation-configurationid-revision Revision int `json:"Revision"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationAssociation_ConfigurationId) AWSCloudFormationType() string { return "AWS::AmazonMQ::ConfigurationAssociation.ConfigurationId" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAssociation_ConfigurationId) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAssociation_ConfigurationId) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAssociation_ConfigurationId) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAssociation_ConfigurationId) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAssociation_ConfigurationId) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAssociation_ConfigurationId) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-app.go b/cloudformation/amplify/aws-amplify-app.go index b18509cd28..3e5ab0297c 100644 --- a/cloudformation/amplify/aws-amplify-app.go +++ b/cloudformation/amplify/aws-amplify-app.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // App AWS CloudFormation Resource (AWS::Amplify::App) @@ -73,14 +73,14 @@ type App struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -88,42 +88,6 @@ func (r *App) AWSCloudFormationType() string { return "AWS::Amplify::App" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 App) MarshalJSON() ([]byte, error) { @@ -137,9 +101,9 @@ func (r App) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -168,13 +132,13 @@ func (r *App) UnmarshalJSON(b []byte) error { *r = App(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go b/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go index 4c5e1c7c1b..b0f81a89a5 100644 --- a/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go +++ b/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_AutoBranchCreationConfig AWS CloudFormation Resource (AWS::Amplify::App.AutoBranchCreationConfig) @@ -33,63 +33,37 @@ type App_AutoBranchCreationConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-enableautobuild EnableAutoBuild bool `json:"EnableAutoBuild,omitempty"` + // EnablePullRequestPreview AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-enablepullrequestpreview + EnablePullRequestPreview bool `json:"EnablePullRequestPreview,omitempty"` + // EnvironmentVariables AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-environmentvariables EnvironmentVariables []App_EnvironmentVariable `json:"EnvironmentVariables,omitempty"` + // PullRequestEnvironmentName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-pullrequestenvironmentname + PullRequestEnvironmentName string `json:"PullRequestEnvironmentName,omitempty"` + // Stage AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html#cfn-amplify-app-autobranchcreationconfig-stage Stage string `json:"Stage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_AutoBranchCreationConfig) AWSCloudFormationType() string { return "AWS::Amplify::App.AutoBranchCreationConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_AutoBranchCreationConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_AutoBranchCreationConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_AutoBranchCreationConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_AutoBranchCreationConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_AutoBranchCreationConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_AutoBranchCreationConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-app_basicauthconfig.go b/cloudformation/amplify/aws-amplify-app_basicauthconfig.go index 98d7db23aa..a87d07443a 100644 --- a/cloudformation/amplify/aws-amplify-app_basicauthconfig.go +++ b/cloudformation/amplify/aws-amplify-app_basicauthconfig.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_BasicAuthConfig AWS CloudFormation Resource (AWS::Amplify::App.BasicAuthConfig) @@ -23,53 +23,17 @@ type App_BasicAuthConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-basicauthconfig.html#cfn-amplify-app-basicauthconfig-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_BasicAuthConfig) AWSCloudFormationType() string { return "AWS::Amplify::App.BasicAuthConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_BasicAuthConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_BasicAuthConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_BasicAuthConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_BasicAuthConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_BasicAuthConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_BasicAuthConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-app_customrule.go b/cloudformation/amplify/aws-amplify-app_customrule.go index 9b807534e1..aa8436bb2b 100644 --- a/cloudformation/amplify/aws-amplify-app_customrule.go +++ b/cloudformation/amplify/aws-amplify-app_customrule.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_CustomRule AWS CloudFormation Resource (AWS::Amplify::App.CustomRule) @@ -28,53 +28,17 @@ type App_CustomRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-target Target string `json:"Target,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_CustomRule) AWSCloudFormationType() string { return "AWS::Amplify::App.CustomRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_CustomRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_CustomRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_CustomRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_CustomRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_CustomRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_CustomRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-app_environmentvariable.go b/cloudformation/amplify/aws-amplify-app_environmentvariable.go index c378d3a562..91b35077b3 100644 --- a/cloudformation/amplify/aws-amplify-app_environmentvariable.go +++ b/cloudformation/amplify/aws-amplify-app_environmentvariable.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_EnvironmentVariable AWS CloudFormation Resource (AWS::Amplify::App.EnvironmentVariable) @@ -18,53 +18,17 @@ type App_EnvironmentVariable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-environmentvariable.html#cfn-amplify-app-environmentvariable-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_EnvironmentVariable) AWSCloudFormationType() string { return "AWS::Amplify::App.EnvironmentVariable" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_EnvironmentVariable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_EnvironmentVariable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_EnvironmentVariable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_EnvironmentVariable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_EnvironmentVariable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_EnvironmentVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-branch.go b/cloudformation/amplify/aws-amplify-branch.go index 6210998138..9a4b702295 100644 --- a/cloudformation/amplify/aws-amplify-branch.go +++ b/cloudformation/amplify/aws-amplify-branch.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Branch AWS CloudFormation Resource (AWS::Amplify::Branch) @@ -43,11 +43,21 @@ type Branch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-enableautobuild EnableAutoBuild bool `json:"EnableAutoBuild,omitempty"` + // EnablePullRequestPreview AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-enablepullrequestpreview + EnablePullRequestPreview bool `json:"EnablePullRequestPreview,omitempty"` + // EnvironmentVariables AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-environmentvariables EnvironmentVariables []Branch_EnvironmentVariable `json:"EnvironmentVariables,omitempty"` + // PullRequestEnvironmentName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-pullrequestenvironmentname + PullRequestEnvironmentName string `json:"PullRequestEnvironmentName,omitempty"` + // Stage AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-stage @@ -58,14 +68,14 @@ type Branch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -73,42 +83,6 @@ func (r *Branch) AWSCloudFormationType() string { return "AWS::Amplify::Branch" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Branch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Branch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Branch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Branch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Branch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Branch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Branch) MarshalJSON() ([]byte, error) { @@ -122,9 +96,9 @@ func (r Branch) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -153,13 +127,13 @@ func (r *Branch) UnmarshalJSON(b []byte) error { *r = Branch(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go b/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go index d47c157240..e9192f957e 100644 --- a/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go +++ b/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Branch_BasicAuthConfig AWS CloudFormation Resource (AWS::Amplify::Branch.BasicAuthConfig) @@ -23,53 +23,17 @@ type Branch_BasicAuthConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-basicauthconfig.html#cfn-amplify-branch-basicauthconfig-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Branch_BasicAuthConfig) AWSCloudFormationType() string { return "AWS::Amplify::Branch.BasicAuthConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Branch_BasicAuthConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Branch_BasicAuthConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Branch_BasicAuthConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Branch_BasicAuthConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Branch_BasicAuthConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Branch_BasicAuthConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-branch_environmentvariable.go b/cloudformation/amplify/aws-amplify-branch_environmentvariable.go index d23974655b..3a9f122b03 100644 --- a/cloudformation/amplify/aws-amplify-branch_environmentvariable.go +++ b/cloudformation/amplify/aws-amplify-branch_environmentvariable.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Branch_EnvironmentVariable AWS CloudFormation Resource (AWS::Amplify::Branch.EnvironmentVariable) @@ -18,53 +18,17 @@ type Branch_EnvironmentVariable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-branch-environmentvariable.html#cfn-amplify-branch-environmentvariable-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Branch_EnvironmentVariable) AWSCloudFormationType() string { return "AWS::Amplify::Branch.EnvironmentVariable" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Branch_EnvironmentVariable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Branch_EnvironmentVariable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Branch_EnvironmentVariable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Branch_EnvironmentVariable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Branch_EnvironmentVariable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Branch_EnvironmentVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/amplify/aws-amplify-domain.go b/cloudformation/amplify/aws-amplify-domain.go index 23792afa42..052cd88235 100644 --- a/cloudformation/amplify/aws-amplify-domain.go +++ b/cloudformation/amplify/aws-amplify-domain.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain AWS CloudFormation Resource (AWS::Amplify::Domain) @@ -27,14 +27,14 @@ type Domain struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html#cfn-amplify-domain-subdomainsettings SubDomainSettings []Domain_SubDomainSetting `json:"SubDomainSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Domain) AWSCloudFormationType() string { return "AWS::Amplify::Domain" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Domain) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Domain) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Domain) UnmarshalJSON(b []byte) error { *r = Domain(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go b/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go index cb0e8a70c4..d85eacb219 100644 --- a/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go +++ b/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go @@ -1,7 +1,7 @@ package amplify import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_SubDomainSetting AWS CloudFormation Resource (AWS::Amplify::Domain.SubDomainSetting) @@ -18,53 +18,17 @@ type Domain_SubDomainSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-domain-subdomainsetting.html#cfn-amplify-domain-subdomainsetting-prefix Prefix string `json:"Prefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_SubDomainSetting) AWSCloudFormationType() string { return "AWS::Amplify::Domain.SubDomainSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_SubDomainSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_SubDomainSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_SubDomainSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_SubDomainSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_SubDomainSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_SubDomainSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-account.go b/cloudformation/apigateway/aws-apigateway-account.go index 1c66963ec3..8de4d7256d 100644 --- a/cloudformation/apigateway/aws-apigateway-account.go +++ b/cloudformation/apigateway/aws-apigateway-account.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Account AWS CloudFormation Resource (AWS::ApiGateway::Account) @@ -17,14 +17,14 @@ type Account struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-account.html#cfn-apigateway-account-cloudwatchrolearn CloudWatchRoleArn string `json:"CloudWatchRoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *Account) AWSCloudFormationType() string { return "AWS::ApiGateway::Account" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Account) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Account) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Account) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Account) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Account) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Account) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Account) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r Account) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *Account) UnmarshalJSON(b []byte) error { *r = Account(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-apikey.go b/cloudformation/apigateway/aws-apigateway-apikey.go index d506c35ecc..ffac08ee0a 100644 --- a/cloudformation/apigateway/aws-apigateway-apikey.go +++ b/cloudformation/apigateway/aws-apigateway-apikey.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ApiKey AWS CloudFormation Resource (AWS::ApiGateway::ApiKey) @@ -42,19 +43,24 @@ type ApiKey struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-stagekeys StageKeys []ApiKey_StageKey `json:"StageKeys,omitempty"` + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-tags + Tags []tags.Tag `json:"Tags,omitempty"` + // Value AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html#cfn-apigateway-apikey-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +68,6 @@ func (r *ApiKey) AWSCloudFormationType() string { return "AWS::ApiGateway::ApiKey" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApiKey) MarshalJSON() ([]byte, error) { @@ -111,9 +81,9 @@ func (r ApiKey) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +112,13 @@ func (r *ApiKey) UnmarshalJSON(b []byte) error { *r = ApiKey(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go b/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go index 3f43c92df8..24c92a8543 100644 --- a/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go +++ b/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApiKey_StageKey AWS CloudFormation Resource (AWS::ApiGateway::ApiKey.StageKey) @@ -18,53 +18,17 @@ type ApiKey_StageKey struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html#cfn-apigateway-apikey-stagekey-stagename StageName string `json:"StageName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApiKey_StageKey) AWSCloudFormationType() string { return "AWS::ApiGateway::ApiKey.StageKey" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiKey_StageKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiKey_StageKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiKey_StageKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiKey_StageKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiKey_StageKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiKey_StageKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-authorizer.go b/cloudformation/apigateway/aws-apigateway-authorizer.go index dd0079c5b5..eea096a662 100644 --- a/cloudformation/apigateway/aws-apigateway-authorizer.go +++ b/cloudformation/apigateway/aws-apigateway-authorizer.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Authorizer AWS CloudFormation Resource (AWS::ApiGateway::Authorizer) @@ -62,14 +62,14 @@ type Authorizer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html#cfn-apigateway-authorizer-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *Authorizer) AWSCloudFormationType() string { return "AWS::ApiGateway::Authorizer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Authorizer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Authorizer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Authorizer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Authorizer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Authorizer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Authorizer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Authorizer) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r Authorizer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *Authorizer) UnmarshalJSON(b []byte) error { *r = Authorizer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-basepathmapping.go b/cloudformation/apigateway/aws-apigateway-basepathmapping.go index c818b83b86..a9d6893c58 100644 --- a/cloudformation/apigateway/aws-apigateway-basepathmapping.go +++ b/cloudformation/apigateway/aws-apigateway-basepathmapping.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BasePathMapping AWS CloudFormation Resource (AWS::ApiGateway::BasePathMapping) @@ -32,14 +32,14 @@ type BasePathMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html#cfn-apigateway-basepathmapping-stage Stage string `json:"Stage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *BasePathMapping) AWSCloudFormationType() string { return "AWS::ApiGateway::BasePathMapping" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BasePathMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BasePathMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BasePathMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BasePathMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BasePathMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BasePathMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 BasePathMapping) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r BasePathMapping) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *BasePathMapping) UnmarshalJSON(b []byte) error { *r = BasePathMapping(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-clientcertificate.go b/cloudformation/apigateway/aws-apigateway-clientcertificate.go index acd0699c1e..2664dc2af1 100644 --- a/cloudformation/apigateway/aws-apigateway-clientcertificate.go +++ b/cloudformation/apigateway/aws-apigateway-clientcertificate.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ClientCertificate AWS CloudFormation Resource (AWS::ApiGateway::ClientCertificate) @@ -17,14 +18,19 @@ type ClientCertificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-clientcertificate.html#cfn-apigateway-clientcertificate-description Description string `json:"Description,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-clientcertificate.html#cfn-apigateway-clientcertificate-tags + Tags []tags.Tag `json:"Tags,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +38,6 @@ func (r *ClientCertificate) AWSCloudFormationType() string { return "AWS::ApiGateway::ClientCertificate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientCertificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientCertificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientCertificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientCertificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientCertificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClientCertificate) MarshalJSON() ([]byte, error) { @@ -81,9 +51,9 @@ func (r ClientCertificate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +82,13 @@ func (r *ClientCertificate) UnmarshalJSON(b []byte) error { *r = ClientCertificate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-deployment.go b/cloudformation/apigateway/aws-apigateway-deployment.go index 0a9b87b9e5..87e3aeb0ab 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment.go +++ b/cloudformation/apigateway/aws-apigateway-deployment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Deployment AWS CloudFormation Resource (AWS::ApiGateway::Deployment) @@ -37,14 +37,14 @@ type Deployment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html#cfn-apigateway-deployment-stagename StageName string `json:"StageName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Deployment) AWSCloudFormationType() string { return "AWS::ApiGateway::Deployment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Deployment) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Deployment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Deployment) UnmarshalJSON(b []byte) error { *r = Deployment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go b/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go index 5026a05205..53e8c1ccc6 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Deployment_AccessLogSetting AWS CloudFormation Resource (AWS::ApiGateway::Deployment.AccessLogSetting) @@ -18,53 +18,17 @@ type Deployment_AccessLogSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format Format string `json:"Format,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Deployment_AccessLogSetting) AWSCloudFormationType() string { return "AWS::ApiGateway::Deployment.AccessLogSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_AccessLogSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_AccessLogSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_AccessLogSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_AccessLogSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_AccessLogSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_AccessLogSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go b/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go index cef12bce2d..f43c45a12e 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Deployment_CanarySetting AWS CloudFormation Resource (AWS::ApiGateway::Deployment.CanarySetting) @@ -23,53 +23,17 @@ type Deployment_CanarySetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-usestagecache UseStageCache bool `json:"UseStageCache,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Deployment_CanarySetting) AWSCloudFormationType() string { return "AWS::ApiGateway::Deployment.CanarySetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_CanarySetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_CanarySetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_CanarySetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_CanarySetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_CanarySetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_CanarySetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go b/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go index 8a5f301cc2..79e4e5e9bc 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Deployment_DeploymentCanarySettings AWS CloudFormation Resource (AWS::ApiGateway::Deployment.DeploymentCanarySettings) @@ -23,53 +23,17 @@ type Deployment_DeploymentCanarySettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-usestagecache UseStageCache bool `json:"UseStageCache,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Deployment_DeploymentCanarySettings) AWSCloudFormationType() string { return "AWS::ApiGateway::Deployment.DeploymentCanarySettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_DeploymentCanarySettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_DeploymentCanarySettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_DeploymentCanarySettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_DeploymentCanarySettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_DeploymentCanarySettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_DeploymentCanarySettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go b/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go index c018a54fba..e3552afa2d 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Deployment_MethodSetting AWS CloudFormation Resource (AWS::ApiGateway::Deployment.MethodSetting) @@ -58,53 +58,17 @@ type Deployment_MethodSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription-methodsetting.html#cfn-apigateway-deployment-stagedescription-methodsetting-throttlingratelimit ThrottlingRateLimit float64 `json:"ThrottlingRateLimit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Deployment_MethodSetting) AWSCloudFormationType() string { return "AWS::ApiGateway::Deployment.MethodSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_MethodSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_MethodSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_MethodSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_MethodSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_MethodSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_MethodSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go b/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go index 1b24d9d7eb..bcff5839a2 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go @@ -1,8 +1,8 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Deployment_StageDescription AWS CloudFormation Resource (AWS::ApiGateway::Deployment.StageDescription) @@ -104,53 +104,17 @@ type Deployment_StageDescription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-variables Variables map[string]string `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Deployment_StageDescription) AWSCloudFormationType() string { return "AWS::ApiGateway::Deployment.StageDescription" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_StageDescription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment_StageDescription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_StageDescription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment_StageDescription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_StageDescription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment_StageDescription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-documentationpart.go b/cloudformation/apigateway/aws-apigateway-documentationpart.go index c6d361c8ea..59aa61fb52 100644 --- a/cloudformation/apigateway/aws-apigateway-documentationpart.go +++ b/cloudformation/apigateway/aws-apigateway-documentationpart.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DocumentationPart AWS CloudFormation Resource (AWS::ApiGateway::DocumentationPart) @@ -27,14 +27,14 @@ type DocumentationPart struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html#cfn-apigateway-documentationpart-restapiid RestApiId string `json:"RestApiId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *DocumentationPart) AWSCloudFormationType() string { return "AWS::ApiGateway::DocumentationPart" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DocumentationPart) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DocumentationPart) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DocumentationPart) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DocumentationPart) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DocumentationPart) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DocumentationPart) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DocumentationPart) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r DocumentationPart) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *DocumentationPart) UnmarshalJSON(b []byte) error { *r = DocumentationPart(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-documentationpart_location.go b/cloudformation/apigateway/aws-apigateway-documentationpart_location.go index 276302ebc9..f8665f45e6 100644 --- a/cloudformation/apigateway/aws-apigateway-documentationpart_location.go +++ b/cloudformation/apigateway/aws-apigateway-documentationpart_location.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DocumentationPart_Location AWS CloudFormation Resource (AWS::ApiGateway::DocumentationPart.Location) @@ -33,53 +33,17 @@ type DocumentationPart_Location struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html#cfn-apigateway-documentationpart-location-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DocumentationPart_Location) AWSCloudFormationType() string { return "AWS::ApiGateway::DocumentationPart.Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DocumentationPart_Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DocumentationPart_Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DocumentationPart_Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DocumentationPart_Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DocumentationPart_Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DocumentationPart_Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-documentationversion.go b/cloudformation/apigateway/aws-apigateway-documentationversion.go index 2e034c5dd9..9c3bc46415 100644 --- a/cloudformation/apigateway/aws-apigateway-documentationversion.go +++ b/cloudformation/apigateway/aws-apigateway-documentationversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DocumentationVersion AWS CloudFormation Resource (AWS::ApiGateway::DocumentationVersion) @@ -27,14 +27,14 @@ type DocumentationVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationversion.html#cfn-apigateway-documentationversion-restapiid RestApiId string `json:"RestApiId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *DocumentationVersion) AWSCloudFormationType() string { return "AWS::ApiGateway::DocumentationVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DocumentationVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DocumentationVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DocumentationVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DocumentationVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DocumentationVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DocumentationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DocumentationVersion) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r DocumentationVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *DocumentationVersion) UnmarshalJSON(b []byte) error { *r = DocumentationVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-domainname.go b/cloudformation/apigateway/aws-apigateway-domainname.go index 70c98a2b18..b6e09c1096 100644 --- a/cloudformation/apigateway/aws-apigateway-domainname.go +++ b/cloudformation/apigateway/aws-apigateway-domainname.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DomainName AWS CloudFormation Resource (AWS::ApiGateway::DomainName) @@ -32,14 +33,24 @@ type DomainName struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-regionalcertificatearn RegionalCertificateArn string `json:"RegionalCertificateArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // SecurityPolicy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-securitypolicy + SecurityPolicy string `json:"SecurityPolicy,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html#cfn-apigateway-domainname-tags + Tags []tags.Tag `json:"Tags,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +58,6 @@ func (r *DomainName) AWSCloudFormationType() string { return "AWS::ApiGateway::DomainName" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DomainName) MarshalJSON() ([]byte, error) { @@ -96,9 +71,9 @@ func (r DomainName) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +102,13 @@ func (r *DomainName) UnmarshalJSON(b []byte) error { *r = DomainName(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go b/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go index 3dffc399cc..7e29049ceb 100644 --- a/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go +++ b/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DomainName_EndpointConfiguration AWS CloudFormation Resource (AWS::ApiGateway::DomainName.EndpointConfiguration) @@ -13,53 +13,17 @@ type DomainName_EndpointConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainname-endpointconfiguration.html#cfn-apigateway-domainname-endpointconfiguration-types Types []string `json:"Types,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DomainName_EndpointConfiguration) AWSCloudFormationType() string { return "AWS::ApiGateway::DomainName.EndpointConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName_EndpointConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName_EndpointConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName_EndpointConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName_EndpointConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName_EndpointConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName_EndpointConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-gatewayresponse.go b/cloudformation/apigateway/aws-apigateway-gatewayresponse.go index ce4f32380c..22e278c2eb 100644 --- a/cloudformation/apigateway/aws-apigateway-gatewayresponse.go +++ b/cloudformation/apigateway/aws-apigateway-gatewayresponse.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GatewayResponse AWS CloudFormation Resource (AWS::ApiGateway::GatewayResponse) @@ -37,14 +37,14 @@ type GatewayResponse struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *GatewayResponse) AWSCloudFormationType() string { return "AWS::ApiGateway::GatewayResponse" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GatewayResponse) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GatewayResponse) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GatewayResponse) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GatewayResponse) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GatewayResponse) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GatewayResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GatewayResponse) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r GatewayResponse) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *GatewayResponse) UnmarshalJSON(b []byte) error { *r = GatewayResponse(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-method.go b/cloudformation/apigateway/aws-apigateway-method.go index 03b7ae7290..625c1374d4 100644 --- a/cloudformation/apigateway/aws-apigateway-method.go +++ b/cloudformation/apigateway/aws-apigateway-method.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Method AWS CloudFormation Resource (AWS::ApiGateway::Method) @@ -77,14 +77,14 @@ type Method struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html#cfn-apigateway-method-restapiid RestApiId string `json:"RestApiId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -92,42 +92,6 @@ func (r *Method) AWSCloudFormationType() string { return "AWS::ApiGateway::Method" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Method) MarshalJSON() ([]byte, error) { @@ -141,9 +105,9 @@ func (r Method) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -172,13 +136,13 @@ func (r *Method) UnmarshalJSON(b []byte) error { *r = Method(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-method_integration.go b/cloudformation/apigateway/aws-apigateway-method_integration.go index fb07b9b542..5ca358c4f8 100644 --- a/cloudformation/apigateway/aws-apigateway-method_integration.go +++ b/cloudformation/apigateway/aws-apigateway-method_integration.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Method_Integration AWS CloudFormation Resource (AWS::ApiGateway::Method.Integration) @@ -78,53 +78,17 @@ type Method_Integration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-uri Uri string `json:"Uri,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Method_Integration) AWSCloudFormationType() string { return "AWS::ApiGateway::Method.Integration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method_Integration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method_Integration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method_Integration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method_Integration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method_Integration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method_Integration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go b/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go index 7fc9ad7e18..5772b65997 100644 --- a/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go +++ b/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Method_IntegrationResponse AWS CloudFormation Resource (AWS::ApiGateway::Method.IntegrationResponse) @@ -33,53 +33,17 @@ type Method_IntegrationResponse struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Method_IntegrationResponse) AWSCloudFormationType() string { return "AWS::ApiGateway::Method.IntegrationResponse" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method_IntegrationResponse) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method_IntegrationResponse) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method_IntegrationResponse) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method_IntegrationResponse) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method_IntegrationResponse) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method_IntegrationResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-method_methodresponse.go b/cloudformation/apigateway/aws-apigateway-method_methodresponse.go index 4c05a19c68..b7a1bff9b5 100644 --- a/cloudformation/apigateway/aws-apigateway-method_methodresponse.go +++ b/cloudformation/apigateway/aws-apigateway-method_methodresponse.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Method_MethodResponse AWS CloudFormation Resource (AWS::ApiGateway::Method.MethodResponse) @@ -23,53 +23,17 @@ type Method_MethodResponse struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html#cfn-apigateway-method-methodresponse-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Method_MethodResponse) AWSCloudFormationType() string { return "AWS::ApiGateway::Method.MethodResponse" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method_MethodResponse) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Method_MethodResponse) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method_MethodResponse) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Method_MethodResponse) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method_MethodResponse) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Method_MethodResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-model.go b/cloudformation/apigateway/aws-apigateway-model.go index e16e17c532..37a4a7c8e0 100644 --- a/cloudformation/apigateway/aws-apigateway-model.go +++ b/cloudformation/apigateway/aws-apigateway-model.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Model AWS CloudFormation Resource (AWS::ApiGateway::Model) @@ -37,14 +37,14 @@ type Model struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html#cfn-apigateway-model-schema Schema interface{} `json:"Schema,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Model) AWSCloudFormationType() string { return "AWS::ApiGateway::Model" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Model) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Model) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Model) UnmarshalJSON(b []byte) error { *r = Model(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-requestvalidator.go b/cloudformation/apigateway/aws-apigateway-requestvalidator.go index 0a3f1ba94c..f3bdfe5548 100644 --- a/cloudformation/apigateway/aws-apigateway-requestvalidator.go +++ b/cloudformation/apigateway/aws-apigateway-requestvalidator.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RequestValidator AWS CloudFormation Resource (AWS::ApiGateway::RequestValidator) @@ -32,14 +32,14 @@ type RequestValidator struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-validaterequestparameters ValidateRequestParameters bool `json:"ValidateRequestParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *RequestValidator) AWSCloudFormationType() string { return "AWS::ApiGateway::RequestValidator" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RequestValidator) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RequestValidator) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RequestValidator) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RequestValidator) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RequestValidator) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RequestValidator) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RequestValidator) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r RequestValidator) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *RequestValidator) UnmarshalJSON(b []byte) error { *r = RequestValidator(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-resource.go b/cloudformation/apigateway/aws-apigateway-resource.go index 4bb35f97f4..d7e453e619 100644 --- a/cloudformation/apigateway/aws-apigateway-resource.go +++ b/cloudformation/apigateway/aws-apigateway-resource.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Resource AWS CloudFormation Resource (AWS::ApiGateway::Resource) @@ -27,14 +27,14 @@ type Resource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html#cfn-apigateway-resource-restapiid RestApiId string `json:"RestApiId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Resource) AWSCloudFormationType() string { return "AWS::ApiGateway::Resource" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Resource) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Resource) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Resource) UnmarshalJSON(b []byte) error { *r = Resource(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-restapi.go b/cloudformation/apigateway/aws-apigateway-restapi.go index 4ebd034949..7a374c2919 100644 --- a/cloudformation/apigateway/aws-apigateway-restapi.go +++ b/cloudformation/apigateway/aws-apigateway-restapi.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // RestApi AWS CloudFormation Resource (AWS::ApiGateway::RestApi) @@ -72,14 +73,19 @@ type RestApi struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-policy Policy interface{} `json:"Policy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-tags + Tags []tags.Tag `json:"Tags,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -87,42 +93,6 @@ func (r *RestApi) AWSCloudFormationType() string { return "AWS::ApiGateway::RestApi" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RestApi) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RestApi) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RestApi) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RestApi) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RestApi) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RestApi) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RestApi) MarshalJSON() ([]byte, error) { @@ -136,9 +106,9 @@ func (r RestApi) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -167,13 +137,13 @@ func (r *RestApi) UnmarshalJSON(b []byte) error { *r = RestApi(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go b/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go index fdcbbd82a5..b6f550421b 100644 --- a/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go +++ b/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RestApi_EndpointConfiguration AWS CloudFormation Resource (AWS::ApiGateway::RestApi.EndpointConfiguration) @@ -13,53 +13,22 @@ type RestApi_EndpointConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html#cfn-apigateway-restapi-endpointconfiguration-types Types []string `json:"Types,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // VpcEndpointIds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html#cfn-apigateway-restapi-endpointconfiguration-vpcendpointids + VpcEndpointIds []string `json:"VpcEndpointIds,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RestApi_EndpointConfiguration) AWSCloudFormationType() string { return "AWS::ApiGateway::RestApi.EndpointConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RestApi_EndpointConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RestApi_EndpointConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RestApi_EndpointConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RestApi_EndpointConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RestApi_EndpointConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RestApi_EndpointConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-restapi_s3location.go b/cloudformation/apigateway/aws-apigateway-restapi_s3location.go index 1aee0bf16a..f0ea6d8ebc 100644 --- a/cloudformation/apigateway/aws-apigateway-restapi_s3location.go +++ b/cloudformation/apigateway/aws-apigateway-restapi_s3location.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RestApi_S3Location AWS CloudFormation Resource (AWS::ApiGateway::RestApi.S3Location) @@ -28,53 +28,17 @@ type RestApi_S3Location struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html#cfn-apigateway-restapi-s3location-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RestApi_S3Location) AWSCloudFormationType() string { return "AWS::ApiGateway::RestApi.S3Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RestApi_S3Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RestApi_S3Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RestApi_S3Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RestApi_S3Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RestApi_S3Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RestApi_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-stage.go b/cloudformation/apigateway/aws-apigateway-stage.go index 81400f805e..69543a33b4 100644 --- a/cloudformation/apigateway/aws-apigateway-stage.go +++ b/cloudformation/apigateway/aws-apigateway-stage.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Stage AWS CloudFormation Resource (AWS::ApiGateway::Stage) @@ -83,14 +83,14 @@ type Stage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html#cfn-apigateway-stage-variables Variables map[string]string `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -98,42 +98,6 @@ func (r *Stage) AWSCloudFormationType() string { return "AWS::ApiGateway::Stage" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Stage) MarshalJSON() ([]byte, error) { @@ -147,9 +111,9 @@ func (r Stage) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -178,13 +142,13 @@ func (r *Stage) UnmarshalJSON(b []byte) error { *r = Stage(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go b/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go index 92ceef82e2..2c0e49c7fe 100644 --- a/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go +++ b/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stage_AccessLogSetting AWS CloudFormation Resource (AWS::ApiGateway::Stage.AccessLogSetting) @@ -18,53 +18,17 @@ type Stage_AccessLogSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-accesslogsetting.html#cfn-apigateway-stage-accesslogsetting-format Format string `json:"Format,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stage_AccessLogSetting) AWSCloudFormationType() string { return "AWS::ApiGateway::Stage.AccessLogSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_AccessLogSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_AccessLogSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_AccessLogSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_AccessLogSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_AccessLogSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_AccessLogSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go b/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go index 7e90cec215..d24b63d581 100644 --- a/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go +++ b/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stage_CanarySetting AWS CloudFormation Resource (AWS::ApiGateway::Stage.CanarySetting) @@ -28,53 +28,17 @@ type Stage_CanarySetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html#cfn-apigateway-stage-canarysetting-usestagecache UseStageCache bool `json:"UseStageCache,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stage_CanarySetting) AWSCloudFormationType() string { return "AWS::ApiGateway::Stage.CanarySetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_CanarySetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_CanarySetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_CanarySetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_CanarySetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_CanarySetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_CanarySetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go b/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go index a7b08b0943..973bb73f89 100644 --- a/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go +++ b/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stage_MethodSetting AWS CloudFormation Resource (AWS::ApiGateway::Stage.MethodSetting) @@ -58,53 +58,17 @@ type Stage_MethodSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-throttlingratelimit ThrottlingRateLimit float64 `json:"ThrottlingRateLimit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stage_MethodSetting) AWSCloudFormationType() string { return "AWS::ApiGateway::Stage.MethodSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_MethodSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_MethodSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_MethodSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_MethodSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_MethodSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_MethodSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-usageplan.go b/cloudformation/apigateway/aws-apigateway-usageplan.go index 226480795e..81a037bab8 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // UsagePlan AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan) @@ -27,6 +28,11 @@ type UsagePlan struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-quota Quota *UsagePlan_QuotaSettings `json:"Quota,omitempty"` + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-tags + Tags []tags.Tag `json:"Tags,omitempty"` + // Throttle AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-throttle @@ -37,14 +43,14 @@ type UsagePlan struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-usageplanname UsagePlanName string `json:"UsagePlanName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +58,6 @@ func (r *UsagePlan) AWSCloudFormationType() string { return "AWS::ApiGateway::UsagePlan" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UsagePlan) MarshalJSON() ([]byte, error) { @@ -101,9 +71,9 @@ func (r UsagePlan) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +102,13 @@ func (r *UsagePlan) UnmarshalJSON(b []byte) error { *r = UsagePlan(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go b/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go index 21c369a479..bbc4e150cd 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UsagePlan_ApiStage AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan.ApiStage) @@ -23,53 +23,17 @@ type UsagePlan_ApiStage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html#cfn-apigateway-usageplan-apistage-throttle Throttle map[string]UsagePlan_ThrottleSettings `json:"Throttle,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UsagePlan_ApiStage) AWSCloudFormationType() string { return "AWS::ApiGateway::UsagePlan.ApiStage" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan_ApiStage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan_ApiStage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan_ApiStage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan_ApiStage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan_ApiStage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan_ApiStage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go b/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go index a30a27bf1b..a106c0d3cc 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UsagePlan_QuotaSettings AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan.QuotaSettings) @@ -23,53 +23,17 @@ type UsagePlan_QuotaSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-period Period string `json:"Period,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UsagePlan_QuotaSettings) AWSCloudFormationType() string { return "AWS::ApiGateway::UsagePlan.QuotaSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan_QuotaSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan_QuotaSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan_QuotaSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan_QuotaSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan_QuotaSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan_QuotaSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go b/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go index 09dbcca3ad..11e253d62d 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go @@ -1,7 +1,7 @@ package apigateway import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UsagePlan_ThrottleSettings AWS CloudFormation Resource (AWS::ApiGateway::UsagePlan.ThrottleSettings) @@ -18,53 +18,17 @@ type UsagePlan_ThrottleSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-throttlesettings.html#cfn-apigateway-usageplan-throttlesettings-ratelimit RateLimit float64 `json:"RateLimit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UsagePlan_ThrottleSettings) AWSCloudFormationType() string { return "AWS::ApiGateway::UsagePlan.ThrottleSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan_ThrottleSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlan_ThrottleSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan_ThrottleSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlan_ThrottleSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan_ThrottleSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlan_ThrottleSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigateway/aws-apigateway-usageplankey.go b/cloudformation/apigateway/aws-apigateway-usageplankey.go index 87bfd27f8c..ab00040087 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplankey.go +++ b/cloudformation/apigateway/aws-apigateway-usageplankey.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UsagePlanKey AWS CloudFormation Resource (AWS::ApiGateway::UsagePlanKey) @@ -27,14 +27,14 @@ type UsagePlanKey struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-usageplanid UsagePlanId string `json:"UsagePlanId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *UsagePlanKey) AWSCloudFormationType() string { return "AWS::ApiGateway::UsagePlanKey" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlanKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UsagePlanKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlanKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UsagePlanKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlanKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UsagePlanKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UsagePlanKey) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r UsagePlanKey) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *UsagePlanKey) UnmarshalJSON(b []byte) error { *r = UsagePlanKey(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-vpclink.go b/cloudformation/apigateway/aws-apigateway-vpclink.go index 6962b809d3..0874647bc9 100644 --- a/cloudformation/apigateway/aws-apigateway-vpclink.go +++ b/cloudformation/apigateway/aws-apigateway-vpclink.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VpcLink AWS CloudFormation Resource (AWS::ApiGateway::VpcLink) @@ -27,14 +27,14 @@ type VpcLink struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-vpclink.html#cfn-apigateway-vpclink-targetarns TargetArns []string `json:"TargetArns,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *VpcLink) AWSCloudFormationType() string { return "AWS::ApiGateway::VpcLink" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VpcLink) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VpcLink) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VpcLink) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VpcLink) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VpcLink) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VpcLink) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VpcLink) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r VpcLink) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *VpcLink) UnmarshalJSON(b []byte) error { *r = VpcLink(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-api.go b/cloudformation/apigatewayv2/aws-apigatewayv2-api.go index 6d1e269d31..f98dbbdd49 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-api.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-api.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Api AWS CloudFormation Resource (AWS::ApiGatewayV2::Api) @@ -52,14 +52,14 @@ type Api struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *Api) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Api" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Api) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r Api) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *Api) UnmarshalJSON(b []byte) error { *r = Api(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go b/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go index 86d198d1e9..5b8b85c3f6 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApiMapping AWS CloudFormation Resource (AWS::ApiGatewayV2::ApiMapping) @@ -32,14 +32,14 @@ type ApiMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-apimapping.html#cfn-apigatewayv2-apimapping-stage Stage string `json:"Stage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *ApiMapping) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::ApiMapping" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApiMapping) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r ApiMapping) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *ApiMapping) UnmarshalJSON(b []byte) error { *r = ApiMapping(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go b/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go index a859a5b2e2..c61638df3a 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Authorizer AWS CloudFormation Resource (AWS::ApiGatewayV2::Authorizer) @@ -52,14 +52,14 @@ type Authorizer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *Authorizer) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Authorizer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Authorizer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Authorizer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Authorizer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Authorizer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Authorizer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Authorizer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Authorizer) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r Authorizer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *Authorizer) UnmarshalJSON(b []byte) error { *r = Authorizer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go b/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go index bbc81660ad..b161ddbf79 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Deployment AWS CloudFormation Resource (AWS::ApiGatewayV2::Deployment) @@ -27,14 +27,14 @@ type Deployment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-deployment.html#cfn-apigatewayv2-deployment-stagename StageName string `json:"StageName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Deployment) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Deployment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Deployment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Deployment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Deployment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Deployment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Deployment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Deployment) UnmarshalJSON(b []byte) error { *r = Deployment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go index f6cb262e08..9d88502ca6 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DomainName AWS CloudFormation Resource (AWS::ApiGatewayV2::DomainName) @@ -27,14 +27,14 @@ type DomainName struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html#cfn-apigatewayv2-domainname-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *DomainName) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::DomainName" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DomainName) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r DomainName) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *DomainName) UnmarshalJSON(b []byte) error { *r = DomainName(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go index 9b7f07a24c..8851fed300 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go @@ -1,7 +1,7 @@ package apigatewayv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DomainName_DomainNameConfiguration AWS CloudFormation Resource (AWS::ApiGatewayV2::DomainName.DomainNameConfiguration) @@ -23,53 +23,17 @@ type DomainName_DomainNameConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-endpointtype EndpointType string `json:"EndpointType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DomainName_DomainNameConfiguration) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::DomainName.DomainNameConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName_DomainNameConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DomainName_DomainNameConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName_DomainNameConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DomainName_DomainNameConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName_DomainNameConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DomainName_DomainNameConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go b/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go index 2082b5ef4a..e6421c490d 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Integration AWS CloudFormation Resource (AWS::ApiGatewayV2::Integration) @@ -77,14 +77,14 @@ type Integration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integration.html#cfn-apigatewayv2-integration-timeoutinmillis TimeoutInMillis int `json:"TimeoutInMillis,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -92,42 +92,6 @@ func (r *Integration) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Integration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Integration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Integration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Integration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Integration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Integration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Integration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Integration) MarshalJSON() ([]byte, error) { @@ -141,9 +105,9 @@ func (r Integration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -172,13 +136,13 @@ func (r *Integration) UnmarshalJSON(b []byte) error { *r = Integration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go b/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go index b6c2773a5f..3a8a920841 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IntegrationResponse AWS CloudFormation Resource (AWS::ApiGatewayV2::IntegrationResponse) @@ -47,14 +47,14 @@ type IntegrationResponse struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-integrationresponse.html#cfn-apigatewayv2-integrationresponse-templateselectionexpression TemplateSelectionExpression string `json:"TemplateSelectionExpression,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *IntegrationResponse) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::IntegrationResponse" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IntegrationResponse) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IntegrationResponse) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IntegrationResponse) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IntegrationResponse) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IntegrationResponse) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IntegrationResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 IntegrationResponse) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r IntegrationResponse) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *IntegrationResponse) UnmarshalJSON(b []byte) error { *r = IntegrationResponse(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-model.go b/cloudformation/apigatewayv2/aws-apigatewayv2-model.go index 50b8a3c9ee..90b3704908 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-model.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-model.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Model AWS CloudFormation Resource (AWS::ApiGatewayV2::Model) @@ -37,14 +37,14 @@ type Model struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-model.html#cfn-apigatewayv2-model-schema Schema interface{} `json:"Schema,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Model) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Model" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Model) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Model) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Model) UnmarshalJSON(b []byte) error { *r = Model(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-route.go b/cloudformation/apigatewayv2/aws-apigatewayv2-route.go index 953a36f1e0..6928d59e3b 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-route.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-route.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route AWS CloudFormation Resource (AWS::ApiGatewayV2::Route) @@ -72,14 +72,14 @@ type Route struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-target Target string `json:"Target,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -87,42 +87,6 @@ func (r *Route) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Route" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Route) MarshalJSON() ([]byte, error) { @@ -136,9 +100,9 @@ func (r Route) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -167,13 +131,13 @@ func (r *Route) UnmarshalJSON(b []byte) error { *r = Route(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go b/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go index ad1a7e15b3..6c7b49efde 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go @@ -1,7 +1,7 @@ package apigatewayv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_ParameterConstraints AWS CloudFormation Resource (AWS::ApiGatewayV2::Route.ParameterConstraints) @@ -13,53 +13,17 @@ type Route_ParameterConstraints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-route-parameterconstraints.html#cfn-apigatewayv2-route-parameterconstraints-required Required bool `json:"Required"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_ParameterConstraints) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Route.ParameterConstraints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_ParameterConstraints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_ParameterConstraints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_ParameterConstraints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_ParameterConstraints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_ParameterConstraints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_ParameterConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go index dbaf200b92..7494aa00d0 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RouteResponse AWS CloudFormation Resource (AWS::ApiGatewayV2::RouteResponse) @@ -42,14 +42,14 @@ type RouteResponse struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-routeresponse.html#cfn-apigatewayv2-routeresponse-routeresponsekey RouteResponseKey string `json:"RouteResponseKey,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *RouteResponse) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::RouteResponse" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RouteResponse) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RouteResponse) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RouteResponse) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RouteResponse) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RouteResponse) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RouteResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RouteResponse) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r RouteResponse) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *RouteResponse) UnmarshalJSON(b []byte) error { *r = RouteResponse(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go index 71dcf11f27..0ecbaf8993 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go @@ -1,7 +1,7 @@ package apigatewayv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RouteResponse_ParameterConstraints AWS CloudFormation Resource (AWS::ApiGatewayV2::RouteResponse.ParameterConstraints) @@ -13,53 +13,17 @@ type RouteResponse_ParameterConstraints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routeresponse-parameterconstraints.html#cfn-apigatewayv2-routeresponse-parameterconstraints-required Required bool `json:"Required"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RouteResponse_ParameterConstraints) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::RouteResponse.ParameterConstraints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RouteResponse_ParameterConstraints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RouteResponse_ParameterConstraints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RouteResponse_ParameterConstraints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RouteResponse_ParameterConstraints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RouteResponse_ParameterConstraints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RouteResponse_ParameterConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go b/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go index 9a2c88ac01..29d4045ec7 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stage AWS CloudFormation Resource (AWS::ApiGatewayV2::Stage) @@ -62,14 +62,14 @@ type Stage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html#cfn-apigatewayv2-stage-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *Stage) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Stage" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Stage) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r Stage) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *Stage) UnmarshalJSON(b []byte) error { *r = Stage(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go index 4d31313df9..15967bbf06 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go @@ -1,7 +1,7 @@ package apigatewayv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stage_AccessLogSettings AWS CloudFormation Resource (AWS::ApiGatewayV2::Stage.AccessLogSettings) @@ -18,53 +18,17 @@ type Stage_AccessLogSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-accesslogsettings.html#cfn-apigatewayv2-stage-accesslogsettings-format Format string `json:"Format,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stage_AccessLogSettings) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Stage.AccessLogSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_AccessLogSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_AccessLogSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_AccessLogSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_AccessLogSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_AccessLogSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_AccessLogSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go index cad052d0ef..471493d436 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go @@ -1,7 +1,7 @@ package apigatewayv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stage_RouteSettings AWS CloudFormation Resource (AWS::ApiGatewayV2::Stage.RouteSettings) @@ -33,53 +33,17 @@ type Stage_RouteSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-throttlingratelimit ThrottlingRateLimit float64 `json:"ThrottlingRateLimit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stage_RouteSettings) AWSCloudFormationType() string { return "AWS::ApiGatewayV2::Stage.RouteSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_RouteSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stage_RouteSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_RouteSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stage_RouteSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_RouteSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stage_RouteSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go index 07ff40f852..ccbe539e26 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalableTarget AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget) @@ -52,14 +52,14 @@ type ScalableTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-suspendedstate SuspendedState *ScalableTarget_SuspendedState `json:"SuspendedState,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *ScalableTarget) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalableTarget" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ScalableTarget) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r ScalableTarget) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *ScalableTarget) UnmarshalJSON(b []byte) error { *r = ScalableTarget(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go index 2d175a7461..90938fa62d 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalableTarget_ScalableTargetAction AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget.ScalableTargetAction) @@ -18,53 +18,17 @@ type ScalableTarget_ScalableTargetAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scalabletargetaction.html#cfn-applicationautoscaling-scalabletarget-scalabletargetaction-mincapacity MinCapacity int `json:"MinCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalableTarget_ScalableTargetAction) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalableTarget.ScalableTargetAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget_ScalableTargetAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget_ScalableTargetAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget_ScalableTargetAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget_ScalableTargetAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget_ScalableTargetAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget_ScalableTargetAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go index 0302e21025..9bebf67b14 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalableTarget_ScheduledAction AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget.ScheduledAction) @@ -33,53 +33,17 @@ type ScalableTarget_ScheduledAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-starttime StartTime string `json:"StartTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalableTarget_ScheduledAction) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalableTarget.ScheduledAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget_ScheduledAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget_ScheduledAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget_ScheduledAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget_ScheduledAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget_ScheduledAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget_ScheduledAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go index 4ae48257a7..b666c12f0f 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalableTarget_SuspendedState AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalableTarget.SuspendedState) @@ -23,53 +23,17 @@ type ScalableTarget_SuspendedState struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-suspendedstate.html#cfn-applicationautoscaling-scalabletarget-suspendedstate-scheduledscalingsuspended ScheduledScalingSuspended bool `json:"ScheduledScalingSuspended,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalableTarget_SuspendedState) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalableTarget.SuspendedState" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget_SuspendedState) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalableTarget_SuspendedState) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget_SuspendedState) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalableTarget_SuspendedState) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget_SuspendedState) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalableTarget_SuspendedState) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go index ab561a6fa3..fda48b64b8 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy) @@ -52,14 +52,14 @@ type ScalingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration TargetTrackingScalingPolicyConfiguration *ScalingPolicy_TargetTrackingScalingPolicyConfiguration `json:"TargetTrackingScalingPolicyConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *ScalingPolicy) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ScalingPolicy) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r ScalingPolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *ScalingPolicy) UnmarshalJSON(b []byte) error { *r = ScalingPolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go index 0951298721..bcc786a4ba 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_CustomizedMetricSpecification AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.CustomizedMetricSpecification) @@ -33,53 +33,17 @@ type ScalingPolicy_CustomizedMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_CustomizedMetricSpecification) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy.CustomizedMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_CustomizedMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_CustomizedMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_CustomizedMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_CustomizedMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_CustomizedMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_CustomizedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go index 5550818f2c..37419d16cc 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_MetricDimension AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.MetricDimension) @@ -18,53 +18,17 @@ type ScalingPolicy_MetricDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-metricdimension.html#cfn-applicationautoscaling-scalingpolicy-metricdimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_MetricDimension) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy.MetricDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_MetricDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_MetricDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_MetricDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_MetricDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_MetricDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go index f3e0a5d4c4..08d0aa960f 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_PredefinedMetricSpecification AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.PredefinedMetricSpecification) @@ -18,53 +18,17 @@ type ScalingPolicy_PredefinedMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-predefinedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-predefinedmetricspecification-resourcelabel ResourceLabel string `json:"ResourceLabel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_PredefinedMetricSpecification) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy.PredefinedMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_PredefinedMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_PredefinedMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_PredefinedMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_PredefinedMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_PredefinedMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_PredefinedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go index 02bba50938..d424b72736 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_StepAdjustment AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.StepAdjustment) @@ -23,53 +23,17 @@ type ScalingPolicy_StepAdjustment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-scalingadjustment ScalingAdjustment int `json:"ScalingAdjustment"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_StepAdjustment) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy.StepAdjustment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_StepAdjustment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_StepAdjustment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_StepAdjustment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_StepAdjustment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_StepAdjustment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_StepAdjustment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go index 80ac8aa8d2..2973084ae1 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_StepScalingPolicyConfiguration AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.StepScalingPolicyConfiguration) @@ -33,53 +33,17 @@ type ScalingPolicy_StepScalingPolicyConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustments StepAdjustments []ScalingPolicy_StepAdjustment `json:"StepAdjustments,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_StepScalingPolicyConfiguration) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy.StepScalingPolicyConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_StepScalingPolicyConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_StepScalingPolicyConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_StepScalingPolicyConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_StepScalingPolicyConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_StepScalingPolicyConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_StepScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go index e8dd2af06a..b367640323 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go @@ -1,7 +1,7 @@ package applicationautoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_TargetTrackingScalingPolicyConfiguration AWS CloudFormation Resource (AWS::ApplicationAutoScaling::ScalingPolicy.TargetTrackingScalingPolicyConfiguration) @@ -38,53 +38,17 @@ type ScalingPolicy_TargetTrackingScalingPolicyConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration.html#cfn-applicationautoscaling-scalingpolicy-targettrackingscalingpolicyconfiguration-targetvalue TargetValue float64 `json:"TargetValue"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) AWSCloudFormationType() string { return "AWS::ApplicationAutoScaling::ScalingPolicy.TargetTrackingScalingPolicyConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_TargetTrackingScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-mesh.go b/cloudformation/appmesh/aws-appmesh-mesh.go index 7f2ebeb1ba..39149ad0e2 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh.go +++ b/cloudformation/appmesh/aws-appmesh-mesh.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Mesh AWS CloudFormation Resource (AWS::AppMesh::Mesh) @@ -28,14 +28,14 @@ type Mesh struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html#cfn-appmesh-mesh-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *Mesh) AWSCloudFormationType() string { return "AWS::AppMesh::Mesh" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Mesh) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Mesh) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Mesh) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Mesh) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Mesh) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Mesh) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Mesh) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r Mesh) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *Mesh) UnmarshalJSON(b []byte) error { *r = Mesh(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go b/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go index c27693a32f..ed05e881b2 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go +++ b/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Mesh_EgressFilter AWS CloudFormation Resource (AWS::AppMesh::Mesh.EgressFilter) @@ -13,53 +13,17 @@ type Mesh_EgressFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-egressfilter.html#cfn-appmesh-mesh-egressfilter-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Mesh_EgressFilter) AWSCloudFormationType() string { return "AWS::AppMesh::Mesh.EgressFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Mesh_EgressFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Mesh_EgressFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Mesh_EgressFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Mesh_EgressFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Mesh_EgressFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Mesh_EgressFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go b/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go index 3f8272b7ea..cab597fbf9 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go +++ b/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Mesh_MeshSpec AWS CloudFormation Resource (AWS::AppMesh::Mesh.MeshSpec) @@ -13,53 +13,17 @@ type Mesh_MeshSpec struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshspec.html#cfn-appmesh-mesh-meshspec-egressfilter EgressFilter *Mesh_EgressFilter `json:"EgressFilter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Mesh_MeshSpec) AWSCloudFormationType() string { return "AWS::AppMesh::Mesh.MeshSpec" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Mesh_MeshSpec) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Mesh_MeshSpec) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Mesh_MeshSpec) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Mesh_MeshSpec) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Mesh_MeshSpec) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Mesh_MeshSpec) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route.go b/cloudformation/appmesh/aws-appmesh-route.go index dffb9090eb..b5ce9a2160 100644 --- a/cloudformation/appmesh/aws-appmesh-route.go +++ b/cloudformation/appmesh/aws-appmesh-route.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Route AWS CloudFormation Resource (AWS::AppMesh::Route) @@ -38,14 +38,14 @@ type Route struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-virtualroutername VirtualRouterName string `json:"VirtualRouterName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Route) AWSCloudFormationType() string { return "AWS::AppMesh::Route" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Route) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Route) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Route) UnmarshalJSON(b []byte) error { *r = Route(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-route_duration.go b/cloudformation/appmesh/aws-appmesh-route_duration.go index 99bca85727..740ea481b2 100644 --- a/cloudformation/appmesh/aws-appmesh-route_duration.go +++ b/cloudformation/appmesh/aws-appmesh-route_duration.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_Duration AWS CloudFormation Resource (AWS::AppMesh::Route.Duration) @@ -18,53 +18,17 @@ type Route_Duration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html#cfn-appmesh-route-duration-value Value int `json:"Value"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_Duration) AWSCloudFormationType() string { return "AWS::AppMesh::Route.Duration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_Duration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_Duration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_Duration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_Duration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_Duration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_Duration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go b/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go new file mode 100644 index 0000000000..64ff329710 --- /dev/null +++ b/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go @@ -0,0 +1,49 @@ +package appmesh + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Route_GrpcRetryPolicy AWS CloudFormation Resource (AWS::AppMesh::Route.GrpcRetryPolicy) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html +type Route_GrpcRetryPolicy struct { + + // GrpcRetryEvents AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-grpcretryevents + GrpcRetryEvents []string `json:"GrpcRetryEvents,omitempty"` + + // HttpRetryEvents AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-httpretryevents + HttpRetryEvents []string `json:"HttpRetryEvents,omitempty"` + + // MaxRetries AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-maxretries + MaxRetries int `json:"MaxRetries"` + + // PerRetryTimeout AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-perretrytimeout + PerRetryTimeout *Route_Duration `json:"PerRetryTimeout,omitempty"` + + // TcpRetryEvents AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-tcpretryevents + TcpRetryEvents []string `json:"TcpRetryEvents,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Route_GrpcRetryPolicy) AWSCloudFormationType() string { + return "AWS::AppMesh::Route.GrpcRetryPolicy" +} diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroute.go b/cloudformation/appmesh/aws-appmesh-route_grpcroute.go new file mode 100644 index 0000000000..23d215f6a3 --- /dev/null +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroute.go @@ -0,0 +1,39 @@ +package appmesh + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Route_GrpcRoute AWS CloudFormation Resource (AWS::AppMesh::Route.GrpcRoute) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html +type Route_GrpcRoute struct { + + // Action AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-action + Action *Route_GrpcRouteAction `json:"Action,omitempty"` + + // Match AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-match + Match *Route_GrpcRouteMatch `json:"Match,omitempty"` + + // RetryPolicy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-retrypolicy + RetryPolicy *Route_GrpcRetryPolicy `json:"RetryPolicy,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Route_GrpcRoute) AWSCloudFormationType() string { + return "AWS::AppMesh::Route.GrpcRoute" +} diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go b/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go new file mode 100644 index 0000000000..89d68a25b1 --- /dev/null +++ b/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go @@ -0,0 +1,29 @@ +package appmesh + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Route_GrpcRouteAction AWS CloudFormation Resource (AWS::AppMesh::Route.GrpcRouteAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html +type Route_GrpcRouteAction struct { + + // WeightedTargets AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html#cfn-appmesh-route-grpcrouteaction-weightedtargets + WeightedTargets []Route_WeightedTarget `json:"WeightedTargets,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Route_GrpcRouteAction) AWSCloudFormationType() string { + return "AWS::AppMesh::Route.GrpcRouteAction" +} diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go b/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go new file mode 100644 index 0000000000..c4aae7b372 --- /dev/null +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go @@ -0,0 +1,39 @@ +package appmesh + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Route_GrpcRouteMatch AWS CloudFormation Resource (AWS::AppMesh::Route.GrpcRouteMatch) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html +type Route_GrpcRouteMatch struct { + + // Metadata AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-metadata + Metadata []Route_GrpcRouteMetadata `json:"Metadata,omitempty"` + + // MethodName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-methodname + MethodName string `json:"MethodName,omitempty"` + + // ServiceName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-servicename + ServiceName string `json:"ServiceName,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Route_GrpcRouteMatch) AWSCloudFormationType() string { + return "AWS::AppMesh::Route.GrpcRouteMatch" +} diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go new file mode 100644 index 0000000000..637db6d12e --- /dev/null +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go @@ -0,0 +1,39 @@ +package appmesh + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Route_GrpcRouteMetadata AWS CloudFormation Resource (AWS::AppMesh::Route.GrpcRouteMetadata) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html +type Route_GrpcRouteMetadata struct { + + // Invert AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html#cfn-appmesh-route-grpcroutemetadata-invert + Invert bool `json:"Invert,omitempty"` + + // Match AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html#cfn-appmesh-route-grpcroutemetadata-match + Match *Route_GrpcRouteMetadataMatchMethod `json:"Match,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html#cfn-appmesh-route-grpcroutemetadata-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Route_GrpcRouteMetadata) AWSCloudFormationType() string { + return "AWS::AppMesh::Route.GrpcRouteMetadata" +} diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go new file mode 100644 index 0000000000..53cd743eca --- /dev/null +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go @@ -0,0 +1,49 @@ +package appmesh + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Route_GrpcRouteMetadataMatchMethod AWS CloudFormation Resource (AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html +type Route_GrpcRouteMetadataMatchMethod struct { + + // Exact AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-exact + Exact string `json:"Exact,omitempty"` + + // Prefix AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-prefix + Prefix string `json:"Prefix,omitempty"` + + // Range AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-range + Range *Route_MatchRange `json:"Range,omitempty"` + + // Regex AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-regex + Regex string `json:"Regex,omitempty"` + + // Suffix AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-suffix + Suffix string `json:"Suffix,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Route_GrpcRouteMetadataMatchMethod) AWSCloudFormationType() string { + return "AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod" +} diff --git a/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go b/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go index 39e3d55e3e..9ae100d963 100644 --- a/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go +++ b/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_HeaderMatchMethod AWS CloudFormation Resource (AWS::AppMesh::Route.HeaderMatchMethod) @@ -33,53 +33,17 @@ type Route_HeaderMatchMethod struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-headermatchmethod.html#cfn-appmesh-route-headermatchmethod-suffix Suffix string `json:"Suffix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_HeaderMatchMethod) AWSCloudFormationType() string { return "AWS::AppMesh::Route.HeaderMatchMethod" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HeaderMatchMethod) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HeaderMatchMethod) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HeaderMatchMethod) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HeaderMatchMethod) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HeaderMatchMethod) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HeaderMatchMethod) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go b/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go index 6f918fb2e7..5c249111b5 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go +++ b/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_HttpRetryPolicy AWS CloudFormation Resource (AWS::AppMesh::Route.HttpRetryPolicy) @@ -28,53 +28,17 @@ type Route_HttpRetryPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-tcpretryevents TcpRetryEvents []string `json:"TcpRetryEvents,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_HttpRetryPolicy) AWSCloudFormationType() string { return "AWS::AppMesh::Route.HttpRetryPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRetryPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRetryPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRetryPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRetryPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRetryPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRetryPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_httproute.go b/cloudformation/appmesh/aws-appmesh-route_httproute.go index 2f408ffe29..b294dcb8a7 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httproute.go +++ b/cloudformation/appmesh/aws-appmesh-route_httproute.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_HttpRoute AWS CloudFormation Resource (AWS::AppMesh::Route.HttpRoute) @@ -23,53 +23,17 @@ type Route_HttpRoute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-retrypolicy RetryPolicy *Route_HttpRetryPolicy `json:"RetryPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_HttpRoute) AWSCloudFormationType() string { return "AWS::AppMesh::Route.HttpRoute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRoute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRoute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRoute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRoute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRoute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go b/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go index b29c89b42c..db28884e9d 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go +++ b/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_HttpRouteAction AWS CloudFormation Resource (AWS::AppMesh::Route.HttpRouteAction) @@ -13,53 +13,17 @@ type Route_HttpRouteAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httprouteaction.html#cfn-appmesh-route-httprouteaction-weightedtargets WeightedTargets []Route_WeightedTarget `json:"WeightedTargets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_HttpRouteAction) AWSCloudFormationType() string { return "AWS::AppMesh::Route.HttpRouteAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRouteAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRouteAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRouteAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRouteAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRouteAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRouteAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go b/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go index f6bd9f9bea..60e01b6a20 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go +++ b/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_HttpRouteHeader AWS CloudFormation Resource (AWS::AppMesh::Route.HttpRouteHeader) @@ -23,53 +23,17 @@ type Route_HttpRouteHeader struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httprouteheader.html#cfn-appmesh-route-httprouteheader-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_HttpRouteHeader) AWSCloudFormationType() string { return "AWS::AppMesh::Route.HttpRouteHeader" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRouteHeader) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRouteHeader) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRouteHeader) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRouteHeader) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRouteHeader) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRouteHeader) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_httproutematch.go b/cloudformation/appmesh/aws-appmesh-route_httproutematch.go index 092dd0f0f2..b3d57a3a25 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httproutematch.go +++ b/cloudformation/appmesh/aws-appmesh-route_httproutematch.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_HttpRouteMatch AWS CloudFormation Resource (AWS::AppMesh::Route.HttpRouteMatch) @@ -28,53 +28,17 @@ type Route_HttpRouteMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-scheme Scheme string `json:"Scheme,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_HttpRouteMatch) AWSCloudFormationType() string { return "AWS::AppMesh::Route.HttpRouteMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRouteMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_HttpRouteMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRouteMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_HttpRouteMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRouteMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_HttpRouteMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_matchrange.go b/cloudformation/appmesh/aws-appmesh-route_matchrange.go index 351e13b612..d7efbaa652 100644 --- a/cloudformation/appmesh/aws-appmesh-route_matchrange.go +++ b/cloudformation/appmesh/aws-appmesh-route_matchrange.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_MatchRange AWS CloudFormation Resource (AWS::AppMesh::Route.MatchRange) @@ -18,53 +18,17 @@ type Route_MatchRange struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-matchrange.html#cfn-appmesh-route-matchrange-start Start int `json:"Start"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_MatchRange) AWSCloudFormationType() string { return "AWS::AppMesh::Route.MatchRange" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_MatchRange) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_MatchRange) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_MatchRange) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_MatchRange) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_MatchRange) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_MatchRange) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_routespec.go b/cloudformation/appmesh/aws-appmesh-route_routespec.go index 8b503c02af..60e609f676 100644 --- a/cloudformation/appmesh/aws-appmesh-route_routespec.go +++ b/cloudformation/appmesh/aws-appmesh-route_routespec.go @@ -1,13 +1,23 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_RouteSpec AWS CloudFormation Resource (AWS::AppMesh::Route.RouteSpec) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html type Route_RouteSpec struct { + // GrpcRoute AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-grpcroute + GrpcRoute *Route_GrpcRoute `json:"GrpcRoute,omitempty"` + + // Http2Route AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-http2route + Http2Route *Route_HttpRoute `json:"Http2Route,omitempty"` + // HttpRoute AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-httproute @@ -23,53 +33,17 @@ type Route_RouteSpec struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-tcproute TcpRoute *Route_TcpRoute `json:"TcpRoute,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_RouteSpec) AWSCloudFormationType() string { return "AWS::AppMesh::Route.RouteSpec" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_RouteSpec) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_RouteSpec) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_RouteSpec) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_RouteSpec) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_RouteSpec) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_RouteSpec) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_tcproute.go b/cloudformation/appmesh/aws-appmesh-route_tcproute.go index e392ce8177..a717e73626 100644 --- a/cloudformation/appmesh/aws-appmesh-route_tcproute.go +++ b/cloudformation/appmesh/aws-appmesh-route_tcproute.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_TcpRoute AWS CloudFormation Resource (AWS::AppMesh::Route.TcpRoute) @@ -13,53 +13,17 @@ type Route_TcpRoute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcproute.html#cfn-appmesh-route-tcproute-action Action *Route_TcpRouteAction `json:"Action,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_TcpRoute) AWSCloudFormationType() string { return "AWS::AppMesh::Route.TcpRoute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_TcpRoute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_TcpRoute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_TcpRoute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_TcpRoute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_TcpRoute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_TcpRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go b/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go index fcd17b1825..c02054e513 100644 --- a/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go +++ b/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_TcpRouteAction AWS CloudFormation Resource (AWS::AppMesh::Route.TcpRouteAction) @@ -13,53 +13,17 @@ type Route_TcpRouteAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcprouteaction.html#cfn-appmesh-route-tcprouteaction-weightedtargets WeightedTargets []Route_WeightedTarget `json:"WeightedTargets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_TcpRouteAction) AWSCloudFormationType() string { return "AWS::AppMesh::Route.TcpRouteAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_TcpRouteAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_TcpRouteAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_TcpRouteAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_TcpRouteAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_TcpRouteAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_TcpRouteAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go b/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go index 5ceb0bb4ba..4f97dfab09 100644 --- a/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go +++ b/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route_WeightedTarget AWS CloudFormation Resource (AWS::AppMesh::Route.WeightedTarget) @@ -18,53 +18,17 @@ type Route_WeightedTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-weightedtarget.html#cfn-appmesh-route-weightedtarget-weight Weight int `json:"Weight"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Route_WeightedTarget) AWSCloudFormationType() string { return "AWS::AppMesh::Route.WeightedTarget" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_WeightedTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route_WeightedTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_WeightedTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route_WeightedTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_WeightedTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route_WeightedTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode.go b/cloudformation/appmesh/aws-appmesh-virtualnode.go index 1cee74c762..1b714e9644 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VirtualNode AWS CloudFormation Resource (AWS::AppMesh::VirtualNode) @@ -33,14 +33,14 @@ type VirtualNode struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html#cfn-appmesh-virtualnode-virtualnodename VirtualNodeName string `json:"VirtualNodeName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *VirtualNode) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VirtualNode) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r VirtualNode) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *VirtualNode) UnmarshalJSON(b []byte) error { *r = VirtualNode(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go b/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go index 53584405e0..54f9019cab 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_AccessLog AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.AccessLog) @@ -13,53 +13,17 @@ type VirtualNode_AccessLog struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-accesslog.html#cfn-appmesh-virtualnode-accesslog-file File *VirtualNode_FileAccessLog `json:"File,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_AccessLog) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.AccessLog" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_AccessLog) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_AccessLog) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_AccessLog) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_AccessLog) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_AccessLog) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_AccessLog) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go index 692ed3c81b..28bfe7bac0 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_AwsCloudMapInstanceAttribute AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.AwsCloudMapInstanceAttribute) @@ -18,53 +18,17 @@ type VirtualNode_AwsCloudMapInstanceAttribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapinstanceattribute.html#cfn-appmesh-virtualnode-awscloudmapinstanceattribute-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_AwsCloudMapInstanceAttribute) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.AwsCloudMapInstanceAttribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_AwsCloudMapInstanceAttribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_AwsCloudMapInstanceAttribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_AwsCloudMapInstanceAttribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_AwsCloudMapInstanceAttribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_AwsCloudMapInstanceAttribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_AwsCloudMapInstanceAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go index 0630494dcf..06cfef1e91 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_AwsCloudMapServiceDiscovery AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.AwsCloudMapServiceDiscovery) @@ -23,53 +23,17 @@ type VirtualNode_AwsCloudMapServiceDiscovery struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-servicename ServiceName string `json:"ServiceName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_AwsCloudMapServiceDiscovery) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.AwsCloudMapServiceDiscovery" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_AwsCloudMapServiceDiscovery) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_AwsCloudMapServiceDiscovery) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_AwsCloudMapServiceDiscovery) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_AwsCloudMapServiceDiscovery) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_AwsCloudMapServiceDiscovery) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_AwsCloudMapServiceDiscovery) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go b/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go index 99966d2331..4e8238af2d 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_Backend AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.Backend) @@ -13,53 +13,17 @@ type VirtualNode_Backend struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backend.html#cfn-appmesh-virtualnode-backend-virtualservice VirtualService *VirtualNode_VirtualServiceBackend `json:"VirtualService,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_Backend) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.Backend" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_Backend) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_Backend) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_Backend) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_Backend) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_Backend) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_Backend) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go b/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go index 052ae77977..6125769bf0 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_DnsServiceDiscovery AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.DnsServiceDiscovery) @@ -13,53 +13,17 @@ type VirtualNode_DnsServiceDiscovery struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-hostname Hostname string `json:"Hostname,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_DnsServiceDiscovery) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.DnsServiceDiscovery" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_DnsServiceDiscovery) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_DnsServiceDiscovery) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_DnsServiceDiscovery) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_DnsServiceDiscovery) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_DnsServiceDiscovery) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_DnsServiceDiscovery) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go b/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go index fbef524655..86e9f3c453 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_FileAccessLog AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.FileAccessLog) @@ -13,53 +13,17 @@ type VirtualNode_FileAccessLog struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-fileaccesslog.html#cfn-appmesh-virtualnode-fileaccesslog-path Path string `json:"Path,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_FileAccessLog) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.FileAccessLog" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_FileAccessLog) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_FileAccessLog) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_FileAccessLog) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_FileAccessLog) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_FileAccessLog) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_FileAccessLog) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go b/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go index c185c02b2f..71aa9794e1 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_HealthCheck AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.HealthCheck) @@ -43,53 +43,17 @@ type VirtualNode_HealthCheck struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-unhealthythreshold UnhealthyThreshold int `json:"UnhealthyThreshold"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_HealthCheck) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.HealthCheck" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_HealthCheck) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_HealthCheck) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_HealthCheck) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_HealthCheck) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_HealthCheck) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go b/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go index adf5365ffe..0f8bc25124 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_Listener AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.Listener) @@ -18,53 +18,17 @@ type VirtualNode_Listener struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-portmapping PortMapping *VirtualNode_PortMapping `json:"PortMapping,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_Listener) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.Listener" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_Listener) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_Listener) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_Listener) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_Listener) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_Listener) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_Listener) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go b/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go index 510d6b2e43..75a1405f53 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_Logging AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.Logging) @@ -13,53 +13,17 @@ type VirtualNode_Logging struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-logging.html#cfn-appmesh-virtualnode-logging-accesslog AccessLog *VirtualNode_AccessLog `json:"AccessLog,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_Logging) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.Logging" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_Logging) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_Logging) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_Logging) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_Logging) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_Logging) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_Logging) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go b/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go index 4d01ea71e2..9b4b490877 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_PortMapping AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.PortMapping) @@ -18,53 +18,17 @@ type VirtualNode_PortMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-protocol Protocol string `json:"Protocol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_PortMapping) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.PortMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_PortMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_PortMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_PortMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_PortMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_PortMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_PortMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go b/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go index a4414a97ec..54e890e1ba 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_ServiceDiscovery AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.ServiceDiscovery) @@ -18,53 +18,17 @@ type VirtualNode_ServiceDiscovery struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-servicediscovery.html#cfn-appmesh-virtualnode-servicediscovery-dns DNS *VirtualNode_DnsServiceDiscovery `json:"DNS,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_ServiceDiscovery) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.ServiceDiscovery" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_ServiceDiscovery) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_ServiceDiscovery) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_ServiceDiscovery) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_ServiceDiscovery) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_ServiceDiscovery) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_ServiceDiscovery) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go index af02ba3dfc..7a522cb790 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_VirtualNodeSpec AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.VirtualNodeSpec) @@ -28,53 +28,17 @@ type VirtualNode_VirtualNodeSpec struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-servicediscovery ServiceDiscovery *VirtualNode_ServiceDiscovery `json:"ServiceDiscovery,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_VirtualNodeSpec) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.VirtualNodeSpec" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_VirtualNodeSpec) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_VirtualNodeSpec) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_VirtualNodeSpec) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_VirtualNodeSpec) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_VirtualNodeSpec) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_VirtualNodeSpec) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go index 0d9e8d3c48..27216fd942 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualNode_VirtualServiceBackend AWS CloudFormation Resource (AWS::AppMesh::VirtualNode.VirtualServiceBackend) @@ -13,53 +13,17 @@ type VirtualNode_VirtualServiceBackend struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualservicebackend.html#cfn-appmesh-virtualnode-virtualservicebackend-virtualservicename VirtualServiceName string `json:"VirtualServiceName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualNode_VirtualServiceBackend) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualNode.VirtualServiceBackend" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_VirtualServiceBackend) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualNode_VirtualServiceBackend) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_VirtualServiceBackend) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualNode_VirtualServiceBackend) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_VirtualServiceBackend) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualNode_VirtualServiceBackend) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter.go b/cloudformation/appmesh/aws-appmesh-virtualrouter.go index 6dcb7fe9e5..3d19302058 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VirtualRouter AWS CloudFormation Resource (AWS::AppMesh::VirtualRouter) @@ -33,14 +33,14 @@ type VirtualRouter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-virtualroutername VirtualRouterName string `json:"VirtualRouterName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *VirtualRouter) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualRouter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VirtualRouter) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r VirtualRouter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *VirtualRouter) UnmarshalJSON(b []byte) error { *r = VirtualRouter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go b/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go index 77ec0b04a9..bbc626d694 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualRouter_PortMapping AWS CloudFormation Resource (AWS::AppMesh::VirtualRouter.PortMapping) @@ -18,53 +18,17 @@ type VirtualRouter_PortMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html#cfn-appmesh-virtualrouter-portmapping-protocol Protocol string `json:"Protocol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualRouter_PortMapping) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualRouter.PortMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter_PortMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter_PortMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter_PortMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter_PortMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter_PortMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter_PortMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go index fd9366dc65..0054895fbd 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualRouter_VirtualRouterListener AWS CloudFormation Resource (AWS::AppMesh::VirtualRouter.VirtualRouterListener) @@ -13,53 +13,17 @@ type VirtualRouter_VirtualRouterListener struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-virtualrouterlistener.html#cfn-appmesh-virtualrouter-virtualrouterlistener-portmapping PortMapping *VirtualRouter_PortMapping `json:"PortMapping,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualRouter_VirtualRouterListener) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualRouter.VirtualRouterListener" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter_VirtualRouterListener) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter_VirtualRouterListener) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter_VirtualRouterListener) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter_VirtualRouterListener) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter_VirtualRouterListener) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter_VirtualRouterListener) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go index 1585841463..b8c1ef0cbb 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualRouter_VirtualRouterSpec AWS CloudFormation Resource (AWS::AppMesh::VirtualRouter.VirtualRouterSpec) @@ -13,53 +13,17 @@ type VirtualRouter_VirtualRouterSpec struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-virtualrouterspec.html#cfn-appmesh-virtualrouter-virtualrouterspec-listeners Listeners []VirtualRouter_VirtualRouterListener `json:"Listeners,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualRouter_VirtualRouterSpec) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualRouter.VirtualRouterSpec" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter_VirtualRouterSpec) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualRouter_VirtualRouterSpec) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter_VirtualRouterSpec) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualRouter_VirtualRouterSpec) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter_VirtualRouterSpec) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualRouter_VirtualRouterSpec) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice.go b/cloudformation/appmesh/aws-appmesh-virtualservice.go index e411ab1511..7c1895e02e 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VirtualService AWS CloudFormation Resource (AWS::AppMesh::VirtualService) @@ -33,14 +33,14 @@ type VirtualService struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualservice.html#cfn-appmesh-virtualservice-virtualservicename VirtualServiceName string `json:"VirtualServiceName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *VirtualService) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualService" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VirtualService) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r VirtualService) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *VirtualService) UnmarshalJSON(b []byte) error { *r = VirtualService(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go index 410ca705e1..0e3640aed4 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualService_VirtualNodeServiceProvider AWS CloudFormation Resource (AWS::AppMesh::VirtualService.VirtualNodeServiceProvider) @@ -13,53 +13,17 @@ type VirtualService_VirtualNodeServiceProvider struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualnodeserviceprovider.html#cfn-appmesh-virtualservice-virtualnodeserviceprovider-virtualnodename VirtualNodeName string `json:"VirtualNodeName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualService_VirtualNodeServiceProvider) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualService.VirtualNodeServiceProvider" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualNodeServiceProvider) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualNodeServiceProvider) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualNodeServiceProvider) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualNodeServiceProvider) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualNodeServiceProvider) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualNodeServiceProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go index 0545117817..080bd583a6 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualService_VirtualRouterServiceProvider AWS CloudFormation Resource (AWS::AppMesh::VirtualService.VirtualRouterServiceProvider) @@ -13,53 +13,17 @@ type VirtualService_VirtualRouterServiceProvider struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualrouterserviceprovider.html#cfn-appmesh-virtualservice-virtualrouterserviceprovider-virtualroutername VirtualRouterName string `json:"VirtualRouterName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualService_VirtualRouterServiceProvider) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualService.VirtualRouterServiceProvider" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualRouterServiceProvider) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualRouterServiceProvider) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualRouterServiceProvider) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualRouterServiceProvider) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualRouterServiceProvider) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualRouterServiceProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go index 87bf890a36..01ee549239 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualService_VirtualServiceProvider AWS CloudFormation Resource (AWS::AppMesh::VirtualService.VirtualServiceProvider) @@ -18,53 +18,17 @@ type VirtualService_VirtualServiceProvider struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualserviceprovider.html#cfn-appmesh-virtualservice-virtualserviceprovider-virtualrouter VirtualRouter *VirtualService_VirtualRouterServiceProvider `json:"VirtualRouter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualService_VirtualServiceProvider) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualService.VirtualServiceProvider" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualServiceProvider) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualServiceProvider) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualServiceProvider) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualServiceProvider) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualServiceProvider) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualServiceProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go index 65e1c62e06..8f6f53d62a 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go @@ -1,7 +1,7 @@ package appmesh import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VirtualService_VirtualServiceSpec AWS CloudFormation Resource (AWS::AppMesh::VirtualService.VirtualServiceSpec) @@ -13,53 +13,17 @@ type VirtualService_VirtualServiceSpec struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualservicespec.html#cfn-appmesh-virtualservice-virtualservicespec-provider Provider *VirtualService_VirtualServiceProvider `json:"Provider,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VirtualService_VirtualServiceSpec) AWSCloudFormationType() string { return "AWS::AppMesh::VirtualService.VirtualServiceSpec" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualServiceSpec) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VirtualService_VirtualServiceSpec) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualServiceSpec) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VirtualService_VirtualServiceSpec) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualServiceSpec) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VirtualService_VirtualServiceSpec) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-directoryconfig.go b/cloudformation/appstream/aws-appstream-directoryconfig.go index 3c150f9804..ed61d74bc0 100644 --- a/cloudformation/appstream/aws-appstream-directoryconfig.go +++ b/cloudformation/appstream/aws-appstream-directoryconfig.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DirectoryConfig AWS CloudFormation Resource (AWS::AppStream::DirectoryConfig) @@ -27,14 +27,14 @@ type DirectoryConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-directoryconfig.html#cfn-appstream-directoryconfig-serviceaccountcredentials ServiceAccountCredentials *DirectoryConfig_ServiceAccountCredentials `json:"ServiceAccountCredentials,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *DirectoryConfig) AWSCloudFormationType() string { return "AWS::AppStream::DirectoryConfig" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DirectoryConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DirectoryConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DirectoryConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DirectoryConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DirectoryConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DirectoryConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DirectoryConfig) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r DirectoryConfig) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *DirectoryConfig) UnmarshalJSON(b []byte) error { *r = DirectoryConfig(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go b/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go index bd56cddf91..fd37854883 100644 --- a/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go +++ b/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DirectoryConfig_ServiceAccountCredentials AWS CloudFormation Resource (AWS::AppStream::DirectoryConfig.ServiceAccountCredentials) @@ -18,53 +18,17 @@ type DirectoryConfig_ServiceAccountCredentials struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-serviceaccountcredentials.html#cfn-appstream-directoryconfig-serviceaccountcredentials-accountpassword AccountPassword string `json:"AccountPassword,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DirectoryConfig_ServiceAccountCredentials) AWSCloudFormationType() string { return "AWS::AppStream::DirectoryConfig.ServiceAccountCredentials" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DirectoryConfig_ServiceAccountCredentials) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DirectoryConfig_ServiceAccountCredentials) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DirectoryConfig_ServiceAccountCredentials) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DirectoryConfig_ServiceAccountCredentials) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DirectoryConfig_ServiceAccountCredentials) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DirectoryConfig_ServiceAccountCredentials) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-fleet.go b/cloudformation/appstream/aws-appstream-fleet.go index 9f824e0735..d6902f488b 100644 --- a/cloudformation/appstream/aws-appstream-fleet.go +++ b/cloudformation/appstream/aws-appstream-fleet.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Fleet AWS CloudFormation Resource (AWS::AppStream::Fleet) @@ -88,14 +88,14 @@ type Fleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-fleet.html#cfn-appstream-fleet-vpcconfig VpcConfig *Fleet_VpcConfig `json:"VpcConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -103,42 +103,6 @@ func (r *Fleet) AWSCloudFormationType() string { return "AWS::AppStream::Fleet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Fleet) MarshalJSON() ([]byte, error) { @@ -152,9 +116,9 @@ func (r Fleet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -183,13 +147,13 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { *r = Fleet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appstream/aws-appstream-fleet_computecapacity.go b/cloudformation/appstream/aws-appstream-fleet_computecapacity.go index 64d9457f8e..51fd5a7d4d 100644 --- a/cloudformation/appstream/aws-appstream-fleet_computecapacity.go +++ b/cloudformation/appstream/aws-appstream-fleet_computecapacity.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Fleet_ComputeCapacity AWS CloudFormation Resource (AWS::AppStream::Fleet.ComputeCapacity) @@ -13,53 +13,17 @@ type Fleet_ComputeCapacity struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-fleet-computecapacity.html#cfn-appstream-fleet-computecapacity-desiredinstances DesiredInstances int `json:"DesiredInstances"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Fleet_ComputeCapacity) AWSCloudFormationType() string { return "AWS::AppStream::Fleet.ComputeCapacity" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_ComputeCapacity) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_ComputeCapacity) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_ComputeCapacity) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_ComputeCapacity) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_ComputeCapacity) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_ComputeCapacity) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go b/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go index 032d598160..a2a3e22c56 100644 --- a/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go +++ b/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Fleet_DomainJoinInfo AWS CloudFormation Resource (AWS::AppStream::Fleet.DomainJoinInfo) @@ -18,53 +18,17 @@ type Fleet_DomainJoinInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-fleet-domainjoininfo.html#cfn-appstream-fleet-domainjoininfo-organizationalunitdistinguishedname OrganizationalUnitDistinguishedName string `json:"OrganizationalUnitDistinguishedName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Fleet_DomainJoinInfo) AWSCloudFormationType() string { return "AWS::AppStream::Fleet.DomainJoinInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_DomainJoinInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_DomainJoinInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_DomainJoinInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_DomainJoinInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_DomainJoinInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_DomainJoinInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go b/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go index 2182fe2a6f..2e1b441fd9 100644 --- a/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go +++ b/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Fleet_VpcConfig AWS CloudFormation Resource (AWS::AppStream::Fleet.VpcConfig) @@ -18,53 +18,17 @@ type Fleet_VpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-fleet-vpcconfig.html#cfn-appstream-fleet-vpcconfig-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Fleet_VpcConfig) AWSCloudFormationType() string { return "AWS::AppStream::Fleet.VpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_VpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_VpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_VpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_VpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_VpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-imagebuilder.go b/cloudformation/appstream/aws-appstream-imagebuilder.go index 7cf41772c0..509f20fa66 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder.go @@ -5,14 +5,19 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ImageBuilder AWS CloudFormation Resource (AWS::AppStream::ImageBuilder) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-imagebuilder.html type ImageBuilder struct { + // AccessEndpoints AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-imagebuilder.html#cfn-appstream-imagebuilder-accessendpoints + AccessEndpoints []ImageBuilder_AccessEndpoint `json:"AccessEndpoints,omitempty"` + // AppstreamAgentVersion AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-imagebuilder.html#cfn-appstream-imagebuilder-appstreamagentversion @@ -68,14 +73,14 @@ type ImageBuilder struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-imagebuilder.html#cfn-appstream-imagebuilder-vpcconfig VpcConfig *ImageBuilder_VpcConfig `json:"VpcConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +88,6 @@ func (r *ImageBuilder) AWSCloudFormationType() string { return "AWS::AppStream::ImageBuilder" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ImageBuilder) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ImageBuilder) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ImageBuilder) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ImageBuilder) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ImageBuilder) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ImageBuilder) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ImageBuilder) MarshalJSON() ([]byte, error) { @@ -132,9 +101,9 @@ func (r ImageBuilder) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +132,13 @@ func (r *ImageBuilder) UnmarshalJSON(b []byte) error { *r = ImageBuilder(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go b/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go new file mode 100644 index 0000000000..b9e55599b7 --- /dev/null +++ b/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go @@ -0,0 +1,34 @@ +package appstream + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ImageBuilder_AccessEndpoint AWS CloudFormation Resource (AWS::AppStream::ImageBuilder.AccessEndpoint) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-accessendpoint.html +type ImageBuilder_AccessEndpoint struct { + + // EndpointType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-accessendpoint.html#cfn-appstream-imagebuilder-accessendpoint-endpointtype + EndpointType string `json:"EndpointType,omitempty"` + + // VpceId AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-accessendpoint.html#cfn-appstream-imagebuilder-accessendpoint-vpceid + VpceId string `json:"VpceId,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *ImageBuilder_AccessEndpoint) AWSCloudFormationType() string { + return "AWS::AppStream::ImageBuilder.AccessEndpoint" +} diff --git a/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go b/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go index d2cf6a21fe..f0fee62e1e 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ImageBuilder_DomainJoinInfo AWS CloudFormation Resource (AWS::AppStream::ImageBuilder.DomainJoinInfo) @@ -18,53 +18,17 @@ type ImageBuilder_DomainJoinInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-domainjoininfo.html#cfn-appstream-imagebuilder-domainjoininfo-organizationalunitdistinguishedname OrganizationalUnitDistinguishedName string `json:"OrganizationalUnitDistinguishedName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ImageBuilder_DomainJoinInfo) AWSCloudFormationType() string { return "AWS::AppStream::ImageBuilder.DomainJoinInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ImageBuilder_DomainJoinInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ImageBuilder_DomainJoinInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ImageBuilder_DomainJoinInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ImageBuilder_DomainJoinInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ImageBuilder_DomainJoinInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ImageBuilder_DomainJoinInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go b/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go index ebfebb6ca0..f1c951abc5 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ImageBuilder_VpcConfig AWS CloudFormation Resource (AWS::AppStream::ImageBuilder.VpcConfig) @@ -18,53 +18,17 @@ type ImageBuilder_VpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-vpcconfig.html#cfn-appstream-imagebuilder-vpcconfig-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ImageBuilder_VpcConfig) AWSCloudFormationType() string { return "AWS::AppStream::ImageBuilder.VpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ImageBuilder_VpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ImageBuilder_VpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ImageBuilder_VpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ImageBuilder_VpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ImageBuilder_VpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ImageBuilder_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-stack.go b/cloudformation/appstream/aws-appstream-stack.go index 4401221d50..80846dd1b5 100644 --- a/cloudformation/appstream/aws-appstream-stack.go +++ b/cloudformation/appstream/aws-appstream-stack.go @@ -5,14 +5,19 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Stack AWS CloudFormation Resource (AWS::AppStream::Stack) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html type Stack struct { + // AccessEndpoints AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html#cfn-appstream-stack-accessendpoints + AccessEndpoints []Stack_AccessEndpoint `json:"AccessEndpoints,omitempty"` + // ApplicationSettings AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html#cfn-appstream-stack-applicationsettings @@ -38,6 +43,11 @@ type Stack struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html#cfn-appstream-stack-displayname DisplayName string `json:"DisplayName,omitempty"` + // EmbedHostDomains AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html#cfn-appstream-stack-embedhostdomains + EmbedHostDomains []string `json:"EmbedHostDomains,omitempty"` + // FeedbackURL AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html#cfn-appstream-stack-feedbackurl @@ -68,14 +78,14 @@ type Stack struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html#cfn-appstream-stack-usersettings UserSettings []Stack_UserSetting `json:"UserSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +93,6 @@ func (r *Stack) AWSCloudFormationType() string { return "AWS::AppStream::Stack" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Stack) MarshalJSON() ([]byte, error) { @@ -132,9 +106,9 @@ func (r Stack) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +137,13 @@ func (r *Stack) UnmarshalJSON(b []byte) error { *r = Stack(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appstream/aws-appstream-stack_accessendpoint.go b/cloudformation/appstream/aws-appstream-stack_accessendpoint.go new file mode 100644 index 0000000000..b64935b749 --- /dev/null +++ b/cloudformation/appstream/aws-appstream-stack_accessendpoint.go @@ -0,0 +1,34 @@ +package appstream + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Stack_AccessEndpoint AWS CloudFormation Resource (AWS::AppStream::Stack.AccessEndpoint) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-accessendpoint.html +type Stack_AccessEndpoint struct { + + // EndpointType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-accessendpoint.html#cfn-appstream-stack-accessendpoint-endpointtype + EndpointType string `json:"EndpointType,omitempty"` + + // VpceId AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-accessendpoint.html#cfn-appstream-stack-accessendpoint-vpceid + VpceId string `json:"VpceId,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Stack_AccessEndpoint) AWSCloudFormationType() string { + return "AWS::AppStream::Stack.AccessEndpoint" +} diff --git a/cloudformation/appstream/aws-appstream-stack_applicationsettings.go b/cloudformation/appstream/aws-appstream-stack_applicationsettings.go index dd167e1b26..9924a53c6f 100644 --- a/cloudformation/appstream/aws-appstream-stack_applicationsettings.go +++ b/cloudformation/appstream/aws-appstream-stack_applicationsettings.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_ApplicationSettings AWS CloudFormation Resource (AWS::AppStream::Stack.ApplicationSettings) @@ -18,53 +18,17 @@ type Stack_ApplicationSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-applicationsettings.html#cfn-appstream-stack-applicationsettings-settingsgroup SettingsGroup string `json:"SettingsGroup,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_ApplicationSettings) AWSCloudFormationType() string { return "AWS::AppStream::Stack.ApplicationSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_ApplicationSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_ApplicationSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_ApplicationSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_ApplicationSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_ApplicationSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_ApplicationSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-stack_storageconnector.go b/cloudformation/appstream/aws-appstream-stack_storageconnector.go index 07d16c63f0..17b54b9e55 100644 --- a/cloudformation/appstream/aws-appstream-stack_storageconnector.go +++ b/cloudformation/appstream/aws-appstream-stack_storageconnector.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_StorageConnector AWS CloudFormation Resource (AWS::AppStream::Stack.StorageConnector) @@ -23,53 +23,17 @@ type Stack_StorageConnector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-resourceidentifier ResourceIdentifier string `json:"ResourceIdentifier,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_StorageConnector) AWSCloudFormationType() string { return "AWS::AppStream::Stack.StorageConnector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_StorageConnector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_StorageConnector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_StorageConnector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_StorageConnector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_StorageConnector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_StorageConnector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-stack_usersetting.go b/cloudformation/appstream/aws-appstream-stack_usersetting.go index 208889a71f..bff58429ae 100644 --- a/cloudformation/appstream/aws-appstream-stack_usersetting.go +++ b/cloudformation/appstream/aws-appstream-stack_usersetting.go @@ -1,7 +1,7 @@ package appstream import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_UserSetting AWS CloudFormation Resource (AWS::AppStream::Stack.UserSetting) @@ -18,53 +18,17 @@ type Stack_UserSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.html#cfn-appstream-stack-usersetting-permission Permission string `json:"Permission,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_UserSetting) AWSCloudFormationType() string { return "AWS::AppStream::Stack.UserSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_UserSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_UserSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_UserSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_UserSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_UserSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_UserSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appstream/aws-appstream-stackfleetassociation.go b/cloudformation/appstream/aws-appstream-stackfleetassociation.go index c589c70d64..e57708d358 100644 --- a/cloudformation/appstream/aws-appstream-stackfleetassociation.go +++ b/cloudformation/appstream/aws-appstream-stackfleetassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StackFleetAssociation AWS CloudFormation Resource (AWS::AppStream::StackFleetAssociation) @@ -22,14 +22,14 @@ type StackFleetAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stackfleetassociation.html#cfn-appstream-stackfleetassociation-stackname StackName string `json:"StackName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *StackFleetAssociation) AWSCloudFormationType() string { return "AWS::AppStream::StackFleetAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StackFleetAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StackFleetAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StackFleetAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StackFleetAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StackFleetAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StackFleetAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 StackFleetAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r StackFleetAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *StackFleetAssociation) UnmarshalJSON(b []byte) error { *r = StackFleetAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appstream/aws-appstream-stackuserassociation.go b/cloudformation/appstream/aws-appstream-stackuserassociation.go index 64213712d2..ade4a4b2ba 100644 --- a/cloudformation/appstream/aws-appstream-stackuserassociation.go +++ b/cloudformation/appstream/aws-appstream-stackuserassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StackUserAssociation AWS CloudFormation Resource (AWS::AppStream::StackUserAssociation) @@ -32,14 +32,14 @@ type StackUserAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stackuserassociation.html#cfn-appstream-stackuserassociation-username UserName string `json:"UserName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *StackUserAssociation) AWSCloudFormationType() string { return "AWS::AppStream::StackUserAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StackUserAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StackUserAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StackUserAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StackUserAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StackUserAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StackUserAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 StackUserAssociation) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r StackUserAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *StackUserAssociation) UnmarshalJSON(b []byte) error { *r = StackUserAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appstream/aws-appstream-user.go b/cloudformation/appstream/aws-appstream-user.go index b33d5f36ec..2c7a2f92f4 100644 --- a/cloudformation/appstream/aws-appstream-user.go +++ b/cloudformation/appstream/aws-appstream-user.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // User AWS CloudFormation Resource (AWS::AppStream::User) @@ -37,14 +37,14 @@ type User struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-user.html#cfn-appstream-user-username UserName string `json:"UserName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *User) AWSCloudFormationType() string { return "AWS::AppStream::User" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 User) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r User) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *User) UnmarshalJSON(b []byte) error { *r = User(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-apicache.go b/cloudformation/appsync/aws-appsync-apicache.go new file mode 100644 index 0000000000..fda2d78352 --- /dev/null +++ b/cloudformation/appsync/aws-appsync-apicache.go @@ -0,0 +1,113 @@ +package appsync + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ApiCache AWS CloudFormation Resource (AWS::AppSync::ApiCache) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html +type ApiCache struct { + + // ApiCachingBehavior AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html#cfn-appsync-apicache-apicachingbehavior + ApiCachingBehavior string `json:"ApiCachingBehavior,omitempty"` + + // ApiId AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html#cfn-appsync-apicache-apiid + ApiId string `json:"ApiId,omitempty"` + + // AtRestEncryptionEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html#cfn-appsync-apicache-atrestencryptionenabled + AtRestEncryptionEnabled bool `json:"AtRestEncryptionEnabled,omitempty"` + + // TransitEncryptionEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html#cfn-appsync-apicache-transitencryptionenabled + TransitEncryptionEnabled bool `json:"TransitEncryptionEnabled,omitempty"` + + // Ttl AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html#cfn-appsync-apicache-ttl + Ttl float64 `json:"Ttl"` + + // Type AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apicache.html#cfn-appsync-apicache-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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *ApiCache) AWSCloudFormationType() string { + return "AWS::AppSync::ApiCache" +} + +// 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 ApiCache) MarshalJSON() ([]byte, error) { + type Properties ApiCache + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *ApiCache) UnmarshalJSON(b []byte) error { + type Properties ApiCache + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = ApiCache(*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) + } + return nil +} diff --git a/cloudformation/appsync/aws-appsync-apikey.go b/cloudformation/appsync/aws-appsync-apikey.go index 6c26607c6c..d9ee5abb66 100644 --- a/cloudformation/appsync/aws-appsync-apikey.go +++ b/cloudformation/appsync/aws-appsync-apikey.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApiKey AWS CloudFormation Resource (AWS::AppSync::ApiKey) @@ -27,14 +27,14 @@ type ApiKey struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-apikey.html#cfn-appsync-apikey-expires Expires float64 `json:"Expires,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ApiKey) AWSCloudFormationType() string { return "AWS::AppSync::ApiKey" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApiKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApiKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApiKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApiKey) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ApiKey) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ApiKey) UnmarshalJSON(b []byte) error { *r = ApiKey(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-datasource.go b/cloudformation/appsync/aws-appsync-datasource.go index 290f31206a..128209da7c 100644 --- a/cloudformation/appsync/aws-appsync-datasource.go +++ b/cloudformation/appsync/aws-appsync-datasource.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource AWS CloudFormation Resource (AWS::AppSync::DataSource) @@ -62,14 +62,14 @@ type DataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html#cfn-appsync-datasource-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *DataSource) AWSCloudFormationType() string { return "AWS::AppSync::DataSource" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DataSource) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r DataSource) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *DataSource) UnmarshalJSON(b []byte) error { *r = DataSource(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go b/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go index 98189d4752..b9cffc4e03 100644 --- a/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_AuthorizationConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.AuthorizationConfig) @@ -18,53 +18,17 @@ type DataSource_AuthorizationConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-authorizationconfig.html#cfn-appsync-datasource-authorizationconfig-awsiamconfig AwsIamConfig *DataSource_AwsIamConfig `json:"AwsIamConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_AuthorizationConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.AuthorizationConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_AuthorizationConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_AuthorizationConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_AuthorizationConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_AuthorizationConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_AuthorizationConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_AuthorizationConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go b/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go index aba9f0bd09..d4fcb33756 100644 --- a/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_AwsIamConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.AwsIamConfig) @@ -18,53 +18,17 @@ type DataSource_AwsIamConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-awsiamconfig.html#cfn-appsync-datasource-awsiamconfig-signingservicename SigningServiceName string `json:"SigningServiceName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_AwsIamConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.AwsIamConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_AwsIamConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_AwsIamConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_AwsIamConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_AwsIamConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_AwsIamConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_AwsIamConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go b/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go new file mode 100644 index 0000000000..74bd4f47f0 --- /dev/null +++ b/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go @@ -0,0 +1,39 @@ +package appsync + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// DataSource_DeltaSyncConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.DeltaSyncConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-deltasyncconfig.html +type DataSource_DeltaSyncConfig struct { + + // BaseTableTTL AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-deltasyncconfig.html#cfn-appsync-datasource-deltasyncconfig-basetablettl + BaseTableTTL string `json:"BaseTableTTL,omitempty"` + + // DeltaSyncTableName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-deltasyncconfig.html#cfn-appsync-datasource-deltasyncconfig-deltasynctablename + DeltaSyncTableName string `json:"DeltaSyncTableName,omitempty"` + + // DeltaSyncTableTTL AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-deltasyncconfig.html#cfn-appsync-datasource-deltasyncconfig-deltasynctablettl + DeltaSyncTableTTL string `json:"DeltaSyncTableTTL,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *DataSource_DeltaSyncConfig) AWSCloudFormationType() string { + return "AWS::AppSync::DataSource.DeltaSyncConfig" +} diff --git a/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go b/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go index 726c84b6db..4264e54809 100644 --- a/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_DynamoDBConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.DynamoDBConfig) @@ -13,6 +13,11 @@ type DataSource_DynamoDBConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-awsregion AwsRegion string `json:"AwsRegion,omitempty"` + // DeltaSyncConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-deltasyncconfig + DeltaSyncConfig *DataSource_DeltaSyncConfig `json:"DeltaSyncConfig,omitempty"` + // TableName AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-tablename @@ -23,53 +28,22 @@ type DataSource_DynamoDBConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-usecallercredentials UseCallerCredentials bool `json:"UseCallerCredentials,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // Versioned AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-dynamodbconfig.html#cfn-appsync-datasource-dynamodbconfig-versioned + Versioned bool `json:"Versioned,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_DynamoDBConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.DynamoDBConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_DynamoDBConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_DynamoDBConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_DynamoDBConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_DynamoDBConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_DynamoDBConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_DynamoDBConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go b/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go index 6960109033..64149ef1a1 100644 --- a/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_ElasticsearchConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.ElasticsearchConfig) @@ -18,53 +18,17 @@ type DataSource_ElasticsearchConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-elasticsearchconfig.html#cfn-appsync-datasource-elasticsearchconfig-endpoint Endpoint string `json:"Endpoint,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_ElasticsearchConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.ElasticsearchConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_ElasticsearchConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_ElasticsearchConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_ElasticsearchConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_ElasticsearchConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_ElasticsearchConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_ElasticsearchConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_httpconfig.go b/cloudformation/appsync/aws-appsync-datasource_httpconfig.go index 1aec7c119c..56b24d1cc9 100644 --- a/cloudformation/appsync/aws-appsync-datasource_httpconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_httpconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_HttpConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.HttpConfig) @@ -18,53 +18,17 @@ type DataSource_HttpConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-httpconfig.html#cfn-appsync-datasource-httpconfig-endpoint Endpoint string `json:"Endpoint,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_HttpConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.HttpConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_HttpConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_HttpConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_HttpConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_HttpConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_HttpConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_HttpConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go b/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go index 2d4e0c61bf..7db7cd06d6 100644 --- a/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_LambdaConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.LambdaConfig) @@ -13,53 +13,17 @@ type DataSource_LambdaConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-lambdaconfig.html#cfn-appsync-datasource-lambdaconfig-lambdafunctionarn LambdaFunctionArn string `json:"LambdaFunctionArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_LambdaConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.LambdaConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_LambdaConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_LambdaConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_LambdaConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_LambdaConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_LambdaConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_LambdaConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go b/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go index 04891332b6..2772c85776 100644 --- a/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_RdsHttpEndpointConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.RdsHttpEndpointConfig) @@ -33,53 +33,17 @@ type DataSource_RdsHttpEndpointConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-schema Schema string `json:"Schema,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_RdsHttpEndpointConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.RdsHttpEndpointConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_RdsHttpEndpointConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_RdsHttpEndpointConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_RdsHttpEndpointConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_RdsHttpEndpointConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_RdsHttpEndpointConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_RdsHttpEndpointConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go b/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go index a0e3b4832f..d83b4c6578 100644 --- a/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataSource_RelationalDatabaseConfig AWS CloudFormation Resource (AWS::AppSync::DataSource.RelationalDatabaseConfig) @@ -18,53 +18,17 @@ type DataSource_RelationalDatabaseConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-relationaldatabaseconfig.html#cfn-appsync-datasource-relationaldatabaseconfig-relationaldatabasesourcetype RelationalDatabaseSourceType string `json:"RelationalDatabaseSourceType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataSource_RelationalDatabaseConfig) AWSCloudFormationType() string { return "AWS::AppSync::DataSource.RelationalDatabaseConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_RelationalDatabaseConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataSource_RelationalDatabaseConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_RelationalDatabaseConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataSource_RelationalDatabaseConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_RelationalDatabaseConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataSource_RelationalDatabaseConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-functionconfiguration.go b/cloudformation/appsync/aws-appsync-functionconfiguration.go index 36de2176d2..dceba8508c 100644 --- a/cloudformation/appsync/aws-appsync-functionconfiguration.go +++ b/cloudformation/appsync/aws-appsync-functionconfiguration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionConfiguration AWS CloudFormation Resource (AWS::AppSync::FunctionConfiguration) @@ -57,14 +57,14 @@ type FunctionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-functionconfiguration.html#cfn-appsync-functionconfiguration-responsemappingtemplates3location ResponseMappingTemplateS3Location string `json:"ResponseMappingTemplateS3Location,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *FunctionConfiguration) AWSCloudFormationType() string { return "AWS::AppSync::FunctionConfiguration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FunctionConfiguration) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r FunctionConfiguration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *FunctionConfiguration) UnmarshalJSON(b []byte) error { *r = FunctionConfiguration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-graphqlapi.go b/cloudformation/appsync/aws-appsync-graphqlapi.go index 35170aa63b..5bebc4a15d 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi AWS CloudFormation Resource (AWS::AppSync::GraphQLApi) @@ -47,14 +47,14 @@ type GraphQLApi struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#cfn-appsync-graphqlapi-userpoolconfig UserPoolConfig *GraphQLApi_UserPoolConfig `json:"UserPoolConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *GraphQLApi) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GraphQLApi) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r GraphQLApi) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *GraphQLApi) UnmarshalJSON(b []byte) error { *r = GraphQLApi(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go index d282eee02f..366c5f9587 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_AdditionalAuthenticationProvider AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.AdditionalAuthenticationProvider) @@ -23,53 +23,17 @@ type GraphQLApi_AdditionalAuthenticationProvider struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-additionalauthenticationprovider.html#cfn-appsync-graphqlapi-additionalauthenticationprovider-userpoolconfig UserPoolConfig *GraphQLApi_CognitoUserPoolConfig `json:"UserPoolConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_AdditionalAuthenticationProvider) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.AdditionalAuthenticationProvider" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_AdditionalAuthenticationProvider) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_AdditionalAuthenticationProvider) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_AdditionalAuthenticationProvider) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_AdditionalAuthenticationProvider) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_AdditionalAuthenticationProvider) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_AdditionalAuthenticationProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go index 7932b96945..f5796e567f 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go @@ -1,60 +1,24 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_AdditionalAuthenticationProviders AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.AdditionalAuthenticationProviders) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-additionalauthenticationproviders.html type GraphQLApi_AdditionalAuthenticationProviders struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_AdditionalAuthenticationProviders) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.AdditionalAuthenticationProviders" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_AdditionalAuthenticationProviders) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_AdditionalAuthenticationProviders) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_AdditionalAuthenticationProviders) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_AdditionalAuthenticationProviders) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_AdditionalAuthenticationProviders) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_AdditionalAuthenticationProviders) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go index 0fb016428b..01bba80e99 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_CognitoUserPoolConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.CognitoUserPoolConfig) @@ -23,53 +23,17 @@ type GraphQLApi_CognitoUserPoolConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-cognitouserpoolconfig.html#cfn-appsync-graphqlapi-cognitouserpoolconfig-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_CognitoUserPoolConfig) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.CognitoUserPoolConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_CognitoUserPoolConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_CognitoUserPoolConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_CognitoUserPoolConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_CognitoUserPoolConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_CognitoUserPoolConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_CognitoUserPoolConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go index 8f7ad3641a..23ba93d245 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_LogConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.LogConfig) @@ -23,53 +23,17 @@ type GraphQLApi_LogConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html#cfn-appsync-graphqlapi-logconfig-fieldloglevel FieldLogLevel string `json:"FieldLogLevel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_LogConfig) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.LogConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_LogConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_LogConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_LogConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_LogConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_LogConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_LogConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go index 71ae83d3dc..4148837beb 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_OpenIDConnectConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.OpenIDConnectConfig) @@ -28,53 +28,17 @@ type GraphQLApi_OpenIDConnectConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-openidconnectconfig.html#cfn-appsync-graphqlapi-openidconnectconfig-issuer Issuer string `json:"Issuer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_OpenIDConnectConfig) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.OpenIDConnectConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_OpenIDConnectConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_OpenIDConnectConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_OpenIDConnectConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_OpenIDConnectConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_OpenIDConnectConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_OpenIDConnectConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_tags.go b/cloudformation/appsync/aws-appsync-graphqlapi_tags.go index 226e840b73..5e14d9cba5 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_tags.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_tags.go @@ -1,60 +1,24 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_Tags AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.Tags) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-tags.html type GraphQLApi_Tags struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_Tags) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.Tags" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_Tags) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_Tags) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_Tags) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_Tags) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_Tags) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_Tags) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go index 779237f33f..2afa34edaa 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLApi_UserPoolConfig AWS CloudFormation Resource (AWS::AppSync::GraphQLApi.UserPoolConfig) @@ -28,53 +28,17 @@ type GraphQLApi_UserPoolConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GraphQLApi_UserPoolConfig) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLApi.UserPoolConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_UserPoolConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLApi_UserPoolConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_UserPoolConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLApi_UserPoolConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_UserPoolConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLApi_UserPoolConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-graphqlschema.go b/cloudformation/appsync/aws-appsync-graphqlschema.go index e81eb49ca9..9800db2116 100644 --- a/cloudformation/appsync/aws-appsync-graphqlschema.go +++ b/cloudformation/appsync/aws-appsync-graphqlschema.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GraphQLSchema AWS CloudFormation Resource (AWS::AppSync::GraphQLSchema) @@ -27,14 +27,14 @@ type GraphQLSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlschema.html#cfn-appsync-graphqlschema-definitions3location DefinitionS3Location string `json:"DefinitionS3Location,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *GraphQLSchema) AWSCloudFormationType() string { return "AWS::AppSync::GraphQLSchema" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GraphQLSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GraphQLSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GraphQLSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GraphQLSchema) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r GraphQLSchema) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *GraphQLSchema) UnmarshalJSON(b []byte) error { *r = GraphQLSchema(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-resolver.go b/cloudformation/appsync/aws-appsync-resolver.go index f5bc32f8c8..0308cf5f72 100644 --- a/cloudformation/appsync/aws-appsync-resolver.go +++ b/cloudformation/appsync/aws-appsync-resolver.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Resolver AWS CloudFormation Resource (AWS::AppSync::Resolver) @@ -17,6 +17,11 @@ type Resolver struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-apiid ApiId string `json:"ApiId,omitempty"` + // CachingConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-cachingconfig + CachingConfig *Resolver_CachingConfig `json:"CachingConfig,omitempty"` + // DataSourceName AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-datasourcename @@ -57,19 +62,24 @@ type Resolver struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-responsemappingtemplates3location ResponseMappingTemplateS3Location string `json:"ResponseMappingTemplateS3Location,omitempty"` + // SyncConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-syncconfig + SyncConfig *Resolver_SyncConfig `json:"SyncConfig,omitempty"` + // TypeName AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-typename TypeName string `json:"TypeName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +87,6 @@ func (r *Resolver) AWSCloudFormationType() string { return "AWS::AppSync::Resolver" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resolver) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resolver) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resolver) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resolver) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resolver) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resolver) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Resolver) MarshalJSON() ([]byte, error) { @@ -126,9 +100,9 @@ func (r Resolver) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +131,13 @@ func (r *Resolver) UnmarshalJSON(b []byte) error { *r = Resolver(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go b/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go new file mode 100644 index 0000000000..6257ab60b7 --- /dev/null +++ b/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go @@ -0,0 +1,34 @@ +package appsync + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Resolver_CachingConfig AWS CloudFormation Resource (AWS::AppSync::Resolver.CachingConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-cachingconfig.html +type Resolver_CachingConfig struct { + + // CachingKeys AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-cachingconfig.html#cfn-appsync-resolver-cachingconfig-cachingkeys + CachingKeys []string `json:"CachingKeys,omitempty"` + + // Ttl AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-cachingconfig.html#cfn-appsync-resolver-cachingconfig-ttl + Ttl float64 `json:"Ttl,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Resolver_CachingConfig) AWSCloudFormationType() string { + return "AWS::AppSync::Resolver.CachingConfig" +} diff --git a/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go b/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go new file mode 100644 index 0000000000..859e700fad --- /dev/null +++ b/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go @@ -0,0 +1,29 @@ +package appsync + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Resolver_LambdaConflictHandlerConfig AWS CloudFormation Resource (AWS::AppSync::Resolver.LambdaConflictHandlerConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-lambdaconflicthandlerconfig.html +type Resolver_LambdaConflictHandlerConfig struct { + + // LambdaConflictHandlerArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-lambdaconflicthandlerconfig.html#cfn-appsync-resolver-lambdaconflicthandlerconfig-lambdaconflicthandlerarn + LambdaConflictHandlerArn string `json:"LambdaConflictHandlerArn,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Resolver_LambdaConflictHandlerConfig) AWSCloudFormationType() string { + return "AWS::AppSync::Resolver.LambdaConflictHandlerConfig" +} diff --git a/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go b/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go index 1121e0be40..71c90692b9 100644 --- a/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go +++ b/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go @@ -1,7 +1,7 @@ package appsync import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Resolver_PipelineConfig AWS CloudFormation Resource (AWS::AppSync::Resolver.PipelineConfig) @@ -13,53 +13,17 @@ type Resolver_PipelineConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-pipelineconfig.html#cfn-appsync-resolver-pipelineconfig-functions Functions []string `json:"Functions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Resolver_PipelineConfig) AWSCloudFormationType() string { return "AWS::AppSync::Resolver.PipelineConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resolver_PipelineConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resolver_PipelineConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resolver_PipelineConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resolver_PipelineConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resolver_PipelineConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resolver_PipelineConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/appsync/aws-appsync-resolver_syncconfig.go b/cloudformation/appsync/aws-appsync-resolver_syncconfig.go new file mode 100644 index 0000000000..69dadfb72a --- /dev/null +++ b/cloudformation/appsync/aws-appsync-resolver_syncconfig.go @@ -0,0 +1,39 @@ +package appsync + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Resolver_SyncConfig AWS CloudFormation Resource (AWS::AppSync::Resolver.SyncConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-syncconfig.html +type Resolver_SyncConfig struct { + + // ConflictDetection AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-syncconfig.html#cfn-appsync-resolver-syncconfig-conflictdetection + ConflictDetection string `json:"ConflictDetection,omitempty"` + + // ConflictHandler AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-syncconfig.html#cfn-appsync-resolver-syncconfig-conflicthandler + ConflictHandler string `json:"ConflictHandler,omitempty"` + + // LambdaConflictHandlerConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-syncconfig.html#cfn-appsync-resolver-syncconfig-lambdaconflicthandlerconfig + LambdaConflictHandlerConfig *Resolver_LambdaConflictHandlerConfig `json:"LambdaConflictHandlerConfig,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Resolver_SyncConfig) AWSCloudFormationType() string { + return "AWS::AppSync::Resolver.SyncConfig" +} diff --git a/cloudformation/ask/alexa-ask-skill.go b/cloudformation/ask/alexa-ask-skill.go index 1cdbbeb174..22c35b0634 100644 --- a/cloudformation/ask/alexa-ask-skill.go +++ b/cloudformation/ask/alexa-ask-skill.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Skill AWS CloudFormation Resource (Alexa::ASK::Skill) @@ -27,14 +27,14 @@ type Skill struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html#cfn-ask-skill-vendorid VendorId string `json:"VendorId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Skill) AWSCloudFormationType() string { return "Alexa::ASK::Skill" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Skill) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Skill) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Skill) UnmarshalJSON(b []byte) error { *r = Skill(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go b/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go index 25bacc31f3..047b624e08 100644 --- a/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go +++ b/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go @@ -1,7 +1,7 @@ package ask import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Skill_AuthenticationConfiguration AWS CloudFormation Resource (Alexa::ASK::Skill.AuthenticationConfiguration) @@ -23,53 +23,17 @@ type Skill_AuthenticationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-authenticationconfiguration.html#cfn-ask-skill-authenticationconfiguration-refreshtoken RefreshToken string `json:"RefreshToken,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Skill_AuthenticationConfiguration) AWSCloudFormationType() string { return "Alexa::ASK::Skill.AuthenticationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill_AuthenticationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill_AuthenticationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill_AuthenticationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill_AuthenticationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill_AuthenticationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill_AuthenticationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ask/alexa-ask-skill_overrides.go b/cloudformation/ask/alexa-ask-skill_overrides.go index e10e7e6a69..e5c750478f 100644 --- a/cloudformation/ask/alexa-ask-skill_overrides.go +++ b/cloudformation/ask/alexa-ask-skill_overrides.go @@ -1,7 +1,7 @@ package ask import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Skill_Overrides AWS CloudFormation Resource (Alexa::ASK::Skill.Overrides) @@ -13,53 +13,17 @@ type Skill_Overrides struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-overrides.html#cfn-ask-skill-overrides-manifest Manifest interface{} `json:"Manifest,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Skill_Overrides) AWSCloudFormationType() string { return "Alexa::ASK::Skill.Overrides" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill_Overrides) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill_Overrides) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill_Overrides) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill_Overrides) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill_Overrides) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill_Overrides) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ask/alexa-ask-skill_skillpackage.go b/cloudformation/ask/alexa-ask-skill_skillpackage.go index 9dbaba1c6e..cc7aa1a061 100644 --- a/cloudformation/ask/alexa-ask-skill_skillpackage.go +++ b/cloudformation/ask/alexa-ask-skill_skillpackage.go @@ -1,7 +1,7 @@ package ask import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Skill_SkillPackage AWS CloudFormation Resource (Alexa::ASK::Skill.SkillPackage) @@ -33,53 +33,17 @@ type Skill_SkillPackage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ask-skill-skillpackage.html#cfn-ask-skill-skillpackage-s3objectversion S3ObjectVersion string `json:"S3ObjectVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Skill_SkillPackage) AWSCloudFormationType() string { return "Alexa::ASK::Skill.SkillPackage" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill_SkillPackage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Skill_SkillPackage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill_SkillPackage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Skill_SkillPackage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill_SkillPackage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Skill_SkillPackage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/athena/aws-athena-namedquery.go b/cloudformation/athena/aws-athena-namedquery.go index 085a9ca602..0143f77f34 100644 --- a/cloudformation/athena/aws-athena-namedquery.go +++ b/cloudformation/athena/aws-athena-namedquery.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NamedQuery AWS CloudFormation Resource (AWS::Athena::NamedQuery) @@ -32,14 +32,14 @@ type NamedQuery struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-querystring QueryString string `json:"QueryString,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *NamedQuery) AWSCloudFormationType() string { return "AWS::Athena::NamedQuery" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NamedQuery) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NamedQuery) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NamedQuery) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NamedQuery) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NamedQuery) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NamedQuery) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NamedQuery) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r NamedQuery) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *NamedQuery) UnmarshalJSON(b []byte) error { *r = NamedQuery(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go index 694ea888fb..643f9961eb 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup) @@ -122,20 +122,20 @@ type AutoScalingGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-vpczoneidentifier VPCZoneIdentifier []string `json:"VPCZoneIdentifier,omitempty"` - // _updatePolicy represents a CloudFormation UpdatePolicy - _updatePolicy *policies.UpdatePolicy + // AWSCloudFormationUpdatePolicy represents a CloudFormation UpdatePolicy + AWSCloudFormationUpdatePolicy *policies.UpdatePolicy `json:"-"` - // _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *policies.CreationPolicy + // AWSCloudFormationCreationPolicy represents a CloudFormation CreationPolicy + AWSCloudFormationCreationPolicy *policies.CreationPolicy `json:"-"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -143,54 +143,6 @@ func (r *AutoScalingGroup) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - -// SetUpdatePolicy applies an AWS CloudFormation UpdatePolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html -func (r *AutoScalingGroup) SetUpdatePolicy(policy *policies.UpdatePolicy) { - r._updatePolicy = policy -} - -// SetCreationPolicy applies an AWS CloudFormation CreationPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html -func (r *AutoScalingGroup) SetCreationPolicy(policy *policies.CreationPolicy) { - r._creationPolicy = policy -} - // 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 AutoScalingGroup) MarshalJSON() ([]byte, error) { @@ -206,11 +158,11 @@ func (r AutoScalingGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, - UpdatePolicy: r._updatePolicy, - CreationPolicy: r._creationPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + UpdatePolicy: r.AWSCloudFormationUpdatePolicy, + CreationPolicy: r.AWSCloudFormationCreationPolicy, }) } @@ -239,13 +191,13 @@ func (r *AutoScalingGroup) UnmarshalJSON(b []byte) error { *r = AutoScalingGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go index 770a40f4d7..b3ad9d1eb3 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_InstancesDistribution AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.InstancesDistribution) @@ -38,53 +38,17 @@ type AutoScalingGroup_InstancesDistribution struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-spotmaxprice SpotMaxPrice string `json:"SpotMaxPrice,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_InstancesDistribution) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.InstancesDistribution" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_InstancesDistribution) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_InstancesDistribution) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_InstancesDistribution) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_InstancesDistribution) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_InstancesDistribution) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_InstancesDistribution) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go index eacd9b6e68..9b16450fd5 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_LaunchTemplate AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LaunchTemplate) @@ -18,53 +18,17 @@ type AutoScalingGroup_LaunchTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-launchtemplate.html#cfn-as-mixedinstancespolicy-overrides Overrides []AutoScalingGroup_LaunchTemplateOverrides `json:"Overrides,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_LaunchTemplate) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.LaunchTemplate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LaunchTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LaunchTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LaunchTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LaunchTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LaunchTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LaunchTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go index 396307f4cc..c6ba436070 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_LaunchTemplateOverrides AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LaunchTemplateOverrides) @@ -13,53 +13,17 @@ 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"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_LaunchTemplateOverrides) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.LaunchTemplateOverrides" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LaunchTemplateOverrides) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LaunchTemplateOverrides) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LaunchTemplateOverrides) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LaunchTemplateOverrides) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LaunchTemplateOverrides) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LaunchTemplateOverrides) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go index 1740816f1c..f2435abc22 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_LaunchTemplateSpecification AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LaunchTemplateSpecification) @@ -23,53 +23,17 @@ type AutoScalingGroup_LaunchTemplateSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_LaunchTemplateSpecification) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.LaunchTemplateSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LaunchTemplateSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LaunchTemplateSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LaunchTemplateSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LaunchTemplateSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LaunchTemplateSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go index 7e846f061f..fe1004650e 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_LifecycleHookSpecification AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.LifecycleHookSpecification) @@ -43,53 +43,17 @@ type AutoScalingGroup_LifecycleHookSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-lifecyclehookspecification.html#cfn-autoscaling-autoscalinggroup-lifecyclehookspecification-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_LifecycleHookSpecification) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.LifecycleHookSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LifecycleHookSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_LifecycleHookSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LifecycleHookSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_LifecycleHookSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LifecycleHookSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_LifecycleHookSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go index 49408274b9..65cf34ec08 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_MetricsCollection AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.MetricsCollection) @@ -18,53 +18,17 @@ type AutoScalingGroup_MetricsCollection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-metricscollection.html#cfn-as-metricscollection-metrics Metrics []string `json:"Metrics,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_MetricsCollection) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.MetricsCollection" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_MetricsCollection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_MetricsCollection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_MetricsCollection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_MetricsCollection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_MetricsCollection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_MetricsCollection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go index d0f83162a3..d3902ea417 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_MixedInstancesPolicy AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.MixedInstancesPolicy) @@ -18,53 +18,17 @@ type AutoScalingGroup_MixedInstancesPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-group-mixedinstancespolicy.html#cfn-as-mixedinstancespolicy-launchtemplate LaunchTemplate *AutoScalingGroup_LaunchTemplate `json:"LaunchTemplate,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_MixedInstancesPolicy) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.MixedInstancesPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_MixedInstancesPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_MixedInstancesPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_MixedInstancesPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_MixedInstancesPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_MixedInstancesPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_MixedInstancesPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go index f40a4ad9d5..484f46e9e8 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_NotificationConfiguration AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.NotificationConfiguration) @@ -18,53 +18,17 @@ type AutoScalingGroup_NotificationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-notificationconfigurations.html#cfn-autoscaling-autoscalinggroup-notificationconfigurations-topicarn TopicARN string `json:"TopicARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_NotificationConfiguration) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.NotificationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_NotificationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_NotificationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_NotificationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_NotificationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_NotificationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_NotificationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go index 1bf1929cd0..e105be2486 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AutoScalingGroup_TagProperty AWS CloudFormation Resource (AWS::AutoScaling::AutoScalingGroup.TagProperty) @@ -23,53 +23,17 @@ type AutoScalingGroup_TagProperty struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html#cfn-as-tags-Value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AutoScalingGroup_TagProperty) AWSCloudFormationType() string { return "AWS::AutoScaling::AutoScalingGroup.TagProperty" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_TagProperty) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AutoScalingGroup_TagProperty) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_TagProperty) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AutoScalingGroup_TagProperty) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_TagProperty) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AutoScalingGroup_TagProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go index 6c14fa261a..8ee3f767a6 100644 --- a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go +++ b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchConfiguration AWS CloudFormation Resource (AWS::AutoScaling::LaunchConfiguration) @@ -102,14 +102,14 @@ type LaunchConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-userdata UserData string `json:"UserData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -117,42 +117,6 @@ func (r *LaunchConfiguration) AWSCloudFormationType() string { return "AWS::AutoScaling::LaunchConfiguration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LaunchConfiguration) MarshalJSON() ([]byte, error) { @@ -166,9 +130,9 @@ func (r LaunchConfiguration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -197,13 +161,13 @@ func (r *LaunchConfiguration) UnmarshalJSON(b []byte) error { *r = LaunchConfiguration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go index 98b9734586..1824ab9068 100644 --- a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go +++ b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchConfiguration_BlockDevice AWS CloudFormation Resource (AWS::AutoScaling::LaunchConfiguration.BlockDevice) @@ -38,53 +38,17 @@ type LaunchConfiguration_BlockDevice struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchConfiguration_BlockDevice) AWSCloudFormationType() string { return "AWS::AutoScaling::LaunchConfiguration.BlockDevice" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchConfiguration_BlockDevice) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchConfiguration_BlockDevice) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchConfiguration_BlockDevice) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchConfiguration_BlockDevice) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchConfiguration_BlockDevice) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchConfiguration_BlockDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go index fc50284262..df41bd1192 100644 --- a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go +++ b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchConfiguration_BlockDeviceMapping AWS CloudFormation Resource (AWS::AutoScaling::LaunchConfiguration.BlockDeviceMapping) @@ -28,53 +28,17 @@ type LaunchConfiguration_BlockDeviceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-mapping.html#cfn-as-launchconfig-blockdev-mapping-virtualname VirtualName string `json:"VirtualName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchConfiguration_BlockDeviceMapping) AWSCloudFormationType() string { return "AWS::AutoScaling::LaunchConfiguration.BlockDeviceMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchConfiguration_BlockDeviceMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchConfiguration_BlockDeviceMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchConfiguration_BlockDeviceMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchConfiguration_BlockDeviceMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchConfiguration_BlockDeviceMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchConfiguration_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go b/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go index 3abb6b3031..463edeffb7 100644 --- a/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go +++ b/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LifecycleHook AWS CloudFormation Resource (AWS::AutoScaling::LifecycleHook) @@ -52,14 +52,14 @@ type LifecycleHook struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-lifecyclehook.html#cfn-as-lifecyclehook-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *LifecycleHook) AWSCloudFormationType() string { return "AWS::AutoScaling::LifecycleHook" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecycleHook) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecycleHook) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecycleHook) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecycleHook) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecycleHook) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecycleHook) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LifecycleHook) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r LifecycleHook) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *LifecycleHook) UnmarshalJSON(b []byte) error { *r = LifecycleHook(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go index 91c9e30200..cb2cc6e910 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy) @@ -62,14 +62,14 @@ type ScalingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration TargetTrackingConfiguration *ScalingPolicy_TargetTrackingConfiguration `json:"TargetTrackingConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *ScalingPolicy) AWSCloudFormationType() string { return "AWS::AutoScaling::ScalingPolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ScalingPolicy) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r ScalingPolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *ScalingPolicy) UnmarshalJSON(b []byte) error { *r = ScalingPolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go index 82816ede4f..9fb75a7ab0 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_CustomizedMetricSpecification AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.CustomizedMetricSpecification) @@ -33,53 +33,17 @@ type ScalingPolicy_CustomizedMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-customizedmetricspecification.html#cfn-autoscaling-scalingpolicy-customizedmetricspecification-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_CustomizedMetricSpecification) AWSCloudFormationType() string { return "AWS::AutoScaling::ScalingPolicy.CustomizedMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_CustomizedMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_CustomizedMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_CustomizedMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_CustomizedMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_CustomizedMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_CustomizedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go index 3d1824a859..a15f84b3e0 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_MetricDimension AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.MetricDimension) @@ -18,53 +18,17 @@ type ScalingPolicy_MetricDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-metricdimension.html#cfn-autoscaling-scalingpolicy-metricdimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_MetricDimension) AWSCloudFormationType() string { return "AWS::AutoScaling::ScalingPolicy.MetricDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_MetricDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_MetricDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_MetricDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_MetricDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_MetricDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go index 587475dccf..c801ac5405 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_PredefinedMetricSpecification AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.PredefinedMetricSpecification) @@ -18,53 +18,17 @@ type ScalingPolicy_PredefinedMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-predefinedmetricspecification.html#cfn-autoscaling-scalingpolicy-predefinedmetricspecification-resourcelabel ResourceLabel string `json:"ResourceLabel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_PredefinedMetricSpecification) AWSCloudFormationType() string { return "AWS::AutoScaling::ScalingPolicy.PredefinedMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_PredefinedMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_PredefinedMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_PredefinedMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_PredefinedMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_PredefinedMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_PredefinedMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go index a365c7b446..c3b5a10443 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_StepAdjustment AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.StepAdjustment) @@ -23,53 +23,17 @@ type ScalingPolicy_StepAdjustment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-stepadjustments.html#cfn-autoscaling-scalingpolicy-stepadjustment-scalingadjustment ScalingAdjustment int `json:"ScalingAdjustment"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_StepAdjustment) AWSCloudFormationType() string { return "AWS::AutoScaling::ScalingPolicy.StepAdjustment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_StepAdjustment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_StepAdjustment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_StepAdjustment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_StepAdjustment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_StepAdjustment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_StepAdjustment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go index b03407ca08..00beac5619 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go @@ -1,7 +1,7 @@ package autoscaling import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPolicy_TargetTrackingConfiguration AWS CloudFormation Resource (AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration) @@ -28,53 +28,17 @@ type ScalingPolicy_TargetTrackingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-scalingpolicy-targettrackingconfiguration.html#cfn-autoscaling-scalingpolicy-targettrackingconfiguration-targetvalue TargetValue float64 `json:"TargetValue"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPolicy_TargetTrackingConfiguration) AWSCloudFormationType() string { return "AWS::AutoScaling::ScalingPolicy.TargetTrackingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_TargetTrackingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPolicy_TargetTrackingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_TargetTrackingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPolicy_TargetTrackingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_TargetTrackingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPolicy_TargetTrackingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go b/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go index fb20f54bd2..4b9a51ceb6 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go +++ b/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScheduledAction AWS CloudFormation Resource (AWS::AutoScaling::ScheduledAction) @@ -47,14 +47,14 @@ type ScheduledAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-as-scheduledaction.html#cfn-as-scheduledaction-starttime StartTime string `json:"StartTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *ScheduledAction) AWSCloudFormationType() string { return "AWS::AutoScaling::ScheduledAction" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScheduledAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScheduledAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScheduledAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScheduledAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScheduledAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScheduledAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ScheduledAction) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r ScheduledAction) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *ScheduledAction) UnmarshalJSON(b []byte) error { *r = ScheduledAction(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go index cbe856ca50..f1311d2877 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan) @@ -22,14 +22,14 @@ type ScalingPlan struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html#cfn-autoscalingplans-scalingplan-scalinginstructions ScalingInstructions []ScalingPlan_ScalingInstruction `json:"ScalingInstructions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ScalingPlan) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ScalingPlan) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ScalingPlan) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ScalingPlan) UnmarshalJSON(b []byte) error { *r = ScalingPlan(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go index 510020e66c..497a337cd0 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_ApplicationSource AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.ApplicationSource) @@ -18,53 +18,17 @@ type ScalingPlan_ApplicationSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-applicationsource.html#cfn-autoscalingplans-scalingplan-applicationsource-tagfilters TagFilters []ScalingPlan_TagFilter `json:"TagFilters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_ApplicationSource) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.ApplicationSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_ApplicationSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_ApplicationSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_ApplicationSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_ApplicationSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_ApplicationSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_ApplicationSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go index b77894dc26..c54c8e6304 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_CustomizedLoadMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.CustomizedLoadMetricSpecification) @@ -33,53 +33,17 @@ type ScalingPlan_CustomizedLoadMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedloadmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedloadmetricspecification-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_CustomizedLoadMetricSpecification) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.CustomizedLoadMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_CustomizedLoadMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_CustomizedLoadMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_CustomizedLoadMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_CustomizedLoadMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_CustomizedLoadMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_CustomizedLoadMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go index e580bcffcc..cb55768dba 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_CustomizedScalingMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.CustomizedScalingMetricSpecification) @@ -33,53 +33,17 @@ type ScalingPlan_CustomizedScalingMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-customizedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-customizedscalingmetricspecification-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_CustomizedScalingMetricSpecification) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.CustomizedScalingMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_CustomizedScalingMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_CustomizedScalingMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_CustomizedScalingMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_CustomizedScalingMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_CustomizedScalingMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_CustomizedScalingMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go index accd19f43c..0377fed64d 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_MetricDimension AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.MetricDimension) @@ -18,53 +18,17 @@ type ScalingPlan_MetricDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-metricdimension.html#cfn-autoscalingplans-scalingplan-metricdimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_MetricDimension) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.MetricDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_MetricDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_MetricDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_MetricDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_MetricDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_MetricDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go index f808edd6f7..0d1d71e1e4 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_PredefinedLoadMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.PredefinedLoadMetricSpecification) @@ -18,53 +18,17 @@ type ScalingPlan_PredefinedLoadMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedloadmetricspecification.html#cfn-autoscalingplans-scalingplan-predefinedloadmetricspecification-resourcelabel ResourceLabel string `json:"ResourceLabel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_PredefinedLoadMetricSpecification) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.PredefinedLoadMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_PredefinedLoadMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_PredefinedLoadMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_PredefinedLoadMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_PredefinedLoadMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_PredefinedLoadMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_PredefinedLoadMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go index 6c5b58fdf6..1b483cc6bd 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_PredefinedScalingMetricSpecification AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.PredefinedScalingMetricSpecification) @@ -18,53 +18,17 @@ type ScalingPlan_PredefinedScalingMetricSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-predefinedscalingmetricspecification.html#cfn-autoscalingplans-scalingplan-predefinedscalingmetricspecification-resourcelabel ResourceLabel string `json:"ResourceLabel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_PredefinedScalingMetricSpecification) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.PredefinedScalingMetricSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_PredefinedScalingMetricSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_PredefinedScalingMetricSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_PredefinedScalingMetricSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_PredefinedScalingMetricSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_PredefinedScalingMetricSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_PredefinedScalingMetricSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go index f5c54fcdd7..a13016153a 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_ScalingInstruction AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.ScalingInstruction) @@ -78,53 +78,17 @@ type ScalingPlan_ScalingInstruction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html#cfn-autoscalingplans-scalingplan-scalinginstruction-targettrackingconfigurations TargetTrackingConfigurations []ScalingPlan_TargetTrackingConfiguration `json:"TargetTrackingConfigurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_ScalingInstruction) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.ScalingInstruction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_ScalingInstruction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_ScalingInstruction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_ScalingInstruction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_ScalingInstruction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_ScalingInstruction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_ScalingInstruction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go index cb5f066cc8..5be9849121 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_TagFilter AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.TagFilter) @@ -18,53 +18,17 @@ type ScalingPlan_TagFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-tagfilter.html#cfn-autoscalingplans-scalingplan-tagfilter-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_TagFilter) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.TagFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_TagFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_TagFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_TagFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_TagFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_TagFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go index d0996c6485..67b3d714e9 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go @@ -1,7 +1,7 @@ package autoscalingplans import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ScalingPlan_TargetTrackingConfiguration AWS CloudFormation Resource (AWS::AutoScalingPlans::ScalingPlan.TargetTrackingConfiguration) @@ -43,53 +43,17 @@ type ScalingPlan_TargetTrackingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-targettrackingconfiguration.html#cfn-autoscalingplans-scalingplan-targettrackingconfiguration-targetvalue TargetValue float64 `json:"TargetValue"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ScalingPlan_TargetTrackingConfiguration) AWSCloudFormationType() string { return "AWS::AutoScalingPlans::ScalingPlan.TargetTrackingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_TargetTrackingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ScalingPlan_TargetTrackingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_TargetTrackingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ScalingPlan_TargetTrackingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_TargetTrackingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ScalingPlan_TargetTrackingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/backup/aws-backup-backupplan.go b/cloudformation/backup/aws-backup-backupplan.go index 2a12529fa4..d0bd94fa9a 100644 --- a/cloudformation/backup/aws-backup-backupplan.go +++ b/cloudformation/backup/aws-backup-backupplan.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupPlan AWS CloudFormation Resource (AWS::Backup::BackupPlan) @@ -22,14 +22,14 @@ type BackupPlan struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupplan.html#cfn-backup-backupplan-backupplantags BackupPlanTags interface{} `json:"BackupPlanTags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *BackupPlan) AWSCloudFormationType() string { return "AWS::Backup::BackupPlan" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 BackupPlan) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r BackupPlan) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *BackupPlan) UnmarshalJSON(b []byte) error { *r = BackupPlan(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go b/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go index c87a3ae13c..6de2677fd4 100644 --- a/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go +++ b/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go @@ -1,7 +1,7 @@ package backup import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupPlan_BackupPlanResourceType AWS CloudFormation Resource (AWS::Backup::BackupPlan.BackupPlanResourceType) @@ -18,53 +18,17 @@ type BackupPlan_BackupPlanResourceType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupplan-backupplanresourcetype.html#cfn-backup-backupplan-backupplanresourcetype-backupplanrule BackupPlanRule []BackupPlan_BackupRuleResourceType `json:"BackupPlanRule,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *BackupPlan_BackupPlanResourceType) AWSCloudFormationType() string { return "AWS::Backup::BackupPlan.BackupPlanResourceType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan_BackupPlanResourceType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan_BackupPlanResourceType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan_BackupPlanResourceType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan_BackupPlanResourceType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan_BackupPlanResourceType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan_BackupPlanResourceType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go b/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go index 733cd066ae..1c33a1ed31 100644 --- a/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go +++ b/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go @@ -1,7 +1,7 @@ package backup import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupPlan_BackupRuleResourceType AWS CloudFormation Resource (AWS::Backup::BackupPlan.BackupRuleResourceType) @@ -43,53 +43,17 @@ type BackupPlan_BackupRuleResourceType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupplan-backupruleresourcetype.html#cfn-backup-backupplan-backupruleresourcetype-targetbackupvault TargetBackupVault string `json:"TargetBackupVault,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *BackupPlan_BackupRuleResourceType) AWSCloudFormationType() string { return "AWS::Backup::BackupPlan.BackupRuleResourceType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan_BackupRuleResourceType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan_BackupRuleResourceType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan_BackupRuleResourceType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan_BackupRuleResourceType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan_BackupRuleResourceType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan_BackupRuleResourceType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go b/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go index 9e29e30a4c..8f75bd34d4 100644 --- a/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go +++ b/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go @@ -1,7 +1,7 @@ package backup import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupPlan_LifecycleResourceType AWS CloudFormation Resource (AWS::Backup::BackupPlan.LifecycleResourceType) @@ -18,53 +18,17 @@ type BackupPlan_LifecycleResourceType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupplan-lifecycleresourcetype.html#cfn-backup-backupplan-lifecycleresourcetype-movetocoldstorageafterdays MoveToColdStorageAfterDays float64 `json:"MoveToColdStorageAfterDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *BackupPlan_LifecycleResourceType) AWSCloudFormationType() string { return "AWS::Backup::BackupPlan.LifecycleResourceType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan_LifecycleResourceType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupPlan_LifecycleResourceType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan_LifecycleResourceType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupPlan_LifecycleResourceType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan_LifecycleResourceType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupPlan_LifecycleResourceType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/backup/aws-backup-backupselection.go b/cloudformation/backup/aws-backup-backupselection.go index 577dfea902..0820adf615 100644 --- a/cloudformation/backup/aws-backup-backupselection.go +++ b/cloudformation/backup/aws-backup-backupselection.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupSelection AWS CloudFormation Resource (AWS::Backup::BackupSelection) @@ -22,14 +22,14 @@ type BackupSelection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupselection.html#cfn-backup-backupselection-backupselection BackupSelection *BackupSelection_BackupSelectionResourceType `json:"BackupSelection,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *BackupSelection) AWSCloudFormationType() string { return "AWS::Backup::BackupSelection" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupSelection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupSelection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupSelection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupSelection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupSelection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupSelection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 BackupSelection) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r BackupSelection) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *BackupSelection) UnmarshalJSON(b []byte) error { *r = BackupSelection(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go b/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go index 1967562126..2f80e96e9b 100644 --- a/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go +++ b/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go @@ -1,7 +1,7 @@ package backup import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupSelection_BackupSelectionResourceType AWS CloudFormation Resource (AWS::Backup::BackupSelection.BackupSelectionResourceType) @@ -28,53 +28,17 @@ type BackupSelection_BackupSelectionResourceType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-backupselectionresourcetype.html#cfn-backup-backupselection-backupselectionresourcetype-selectionname SelectionName string `json:"SelectionName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *BackupSelection_BackupSelectionResourceType) AWSCloudFormationType() string { return "AWS::Backup::BackupSelection.BackupSelectionResourceType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupSelection_BackupSelectionResourceType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupSelection_BackupSelectionResourceType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupSelection_BackupSelectionResourceType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupSelection_BackupSelectionResourceType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupSelection_BackupSelectionResourceType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupSelection_BackupSelectionResourceType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go b/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go index 121209fc89..7ccc647bae 100644 --- a/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go +++ b/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go @@ -1,7 +1,7 @@ package backup import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupSelection_ConditionResourceType AWS CloudFormation Resource (AWS::Backup::BackupSelection.ConditionResourceType) @@ -23,53 +23,17 @@ type BackupSelection_ConditionResourceType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditionresourcetype.html#cfn-backup-backupselection-conditionresourcetype-conditionvalue ConditionValue string `json:"ConditionValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *BackupSelection_ConditionResourceType) AWSCloudFormationType() string { return "AWS::Backup::BackupSelection.ConditionResourceType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupSelection_ConditionResourceType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupSelection_ConditionResourceType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupSelection_ConditionResourceType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupSelection_ConditionResourceType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupSelection_ConditionResourceType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupSelection_ConditionResourceType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/backup/aws-backup-backupvault.go b/cloudformation/backup/aws-backup-backupvault.go index 48366470e4..a9951fa2b0 100644 --- a/cloudformation/backup/aws-backup-backupvault.go +++ b/cloudformation/backup/aws-backup-backupvault.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupVault AWS CloudFormation Resource (AWS::Backup::BackupVault) @@ -37,14 +37,14 @@ type BackupVault struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupvault.html#cfn-backup-backupvault-notifications Notifications *BackupVault_NotificationObjectType `json:"Notifications,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *BackupVault) AWSCloudFormationType() string { return "AWS::Backup::BackupVault" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupVault) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupVault) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupVault) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupVault) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupVault) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupVault) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 BackupVault) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r BackupVault) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *BackupVault) UnmarshalJSON(b []byte) error { *r = BackupVault(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go b/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go index 93611c5c1d..e247863229 100644 --- a/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go +++ b/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go @@ -1,7 +1,7 @@ package backup import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BackupVault_NotificationObjectType AWS CloudFormation Resource (AWS::Backup::BackupVault.NotificationObjectType) @@ -18,53 +18,17 @@ type BackupVault_NotificationObjectType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupvault-notificationobjecttype.html#cfn-backup-backupvault-notificationobjecttype-snstopicarn SNSTopicArn string `json:"SNSTopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *BackupVault_NotificationObjectType) AWSCloudFormationType() string { return "AWS::Backup::BackupVault.NotificationObjectType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupVault_NotificationObjectType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BackupVault_NotificationObjectType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupVault_NotificationObjectType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BackupVault_NotificationObjectType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupVault_NotificationObjectType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BackupVault_NotificationObjectType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-computeenvironment.go b/cloudformation/batch/aws-batch-computeenvironment.go index d481c363a1..9d22ca1c2a 100644 --- a/cloudformation/batch/aws-batch-computeenvironment.go +++ b/cloudformation/batch/aws-batch-computeenvironment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ComputeEnvironment AWS CloudFormation Resource (AWS::Batch::ComputeEnvironment) @@ -37,14 +37,14 @@ type ComputeEnvironment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *ComputeEnvironment) AWSCloudFormationType() string { return "AWS::Batch::ComputeEnvironment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ComputeEnvironment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ComputeEnvironment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ComputeEnvironment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ComputeEnvironment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ComputeEnvironment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ComputeEnvironment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ComputeEnvironment) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r ComputeEnvironment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *ComputeEnvironment) UnmarshalJSON(b []byte) error { *r = ComputeEnvironment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/batch/aws-batch-computeenvironment_computeresources.go b/cloudformation/batch/aws-batch-computeenvironment_computeresources.go index f784224425..75edad0c33 100644 --- a/cloudformation/batch/aws-batch-computeenvironment_computeresources.go +++ b/cloudformation/batch/aws-batch-computeenvironment_computeresources.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ComputeEnvironment_ComputeResources AWS CloudFormation Resource (AWS::Batch::ComputeEnvironment.ComputeResources) @@ -88,53 +88,17 @@ type ComputeEnvironment_ComputeResources struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ComputeEnvironment_ComputeResources) AWSCloudFormationType() string { return "AWS::Batch::ComputeEnvironment.ComputeResources" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ComputeEnvironment_ComputeResources) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ComputeEnvironment_ComputeResources) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ComputeEnvironment_ComputeResources) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ComputeEnvironment_ComputeResources) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ComputeEnvironment_ComputeResources) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ComputeEnvironment_ComputeResources) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go b/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go index 4042da7b22..b761bf3be7 100644 --- a/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go +++ b/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ComputeEnvironment_LaunchTemplateSpecification AWS CloudFormation Resource (AWS::Batch::ComputeEnvironment.LaunchTemplateSpecification) @@ -23,53 +23,17 @@ type ComputeEnvironment_LaunchTemplateSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-launchtemplatespecification.html#cfn-batch-computeenvironment-launchtemplatespecification-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ComputeEnvironment_LaunchTemplateSpecification) AWSCloudFormationType() string { return "AWS::Batch::ComputeEnvironment.LaunchTemplateSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ComputeEnvironment_LaunchTemplateSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ComputeEnvironment_LaunchTemplateSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ComputeEnvironment_LaunchTemplateSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ComputeEnvironment_LaunchTemplateSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ComputeEnvironment_LaunchTemplateSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ComputeEnvironment_LaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition.go b/cloudformation/batch/aws-batch-jobdefinition.go index e961c5340a..efe90e9b11 100644 --- a/cloudformation/batch/aws-batch-jobdefinition.go +++ b/cloudformation/batch/aws-batch-jobdefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition AWS CloudFormation Resource (AWS::Batch::JobDefinition) @@ -47,14 +47,14 @@ type JobDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *JobDefinition) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 JobDefinition) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r JobDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *JobDefinition) UnmarshalJSON(b []byte) error { *r = JobDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go b/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go index e5bd1682fd..67d9031cc7 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go +++ b/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_ContainerProperties AWS CloudFormation Resource (AWS::Batch::JobDefinition.ContainerProperties) @@ -83,53 +83,17 @@ type JobDefinition_ContainerProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-volumes Volumes []JobDefinition_Volumes `json:"Volumes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_ContainerProperties) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.ContainerProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_ContainerProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_ContainerProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_ContainerProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_ContainerProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_ContainerProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_ContainerProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_device.go b/cloudformation/batch/aws-batch-jobdefinition_device.go index 33c70f36af..57da35d996 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_device.go +++ b/cloudformation/batch/aws-batch-jobdefinition_device.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_Device AWS CloudFormation Resource (AWS::Batch::JobDefinition.Device) @@ -23,53 +23,17 @@ type JobDefinition_Device struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-device.html#cfn-batch-jobdefinition-device-permissions Permissions []string `json:"Permissions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_Device) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.Device" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Device) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Device) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Device) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Device) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Device) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Device) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_environment.go b/cloudformation/batch/aws-batch-jobdefinition_environment.go index 5de2ac8a45..80786822d7 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_environment.go +++ b/cloudformation/batch/aws-batch-jobdefinition_environment.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_Environment AWS CloudFormation Resource (AWS::Batch::JobDefinition.Environment) @@ -18,53 +18,17 @@ type JobDefinition_Environment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html#cfn-batch-jobdefinition-environment-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_Environment) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.Environment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Environment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Environment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Environment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Environment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Environment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go b/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go index 8451fa1c76..a434bd4e42 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go +++ b/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_LinuxParameters AWS CloudFormation Resource (AWS::Batch::JobDefinition.LinuxParameters) @@ -13,53 +13,17 @@ type JobDefinition_LinuxParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-linuxparameters.html#cfn-batch-jobdefinition-containerproperties-linuxparameters-devices Devices []JobDefinition_Device `json:"Devices,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_LinuxParameters) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.LinuxParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_LinuxParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_LinuxParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_LinuxParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_LinuxParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_LinuxParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_LinuxParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go b/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go index 5853921e0c..3beb8d160f 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go +++ b/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_MountPoints AWS CloudFormation Resource (AWS::Batch::JobDefinition.MountPoints) @@ -23,53 +23,17 @@ type JobDefinition_MountPoints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-mountpoints.html#cfn-batch-jobdefinition-mountpoints-sourcevolume SourceVolume string `json:"SourceVolume,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_MountPoints) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.MountPoints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_MountPoints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_MountPoints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_MountPoints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_MountPoints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_MountPoints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_MountPoints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go b/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go index d8278e7aaa..74bfa6e546 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go +++ b/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_NodeProperties AWS CloudFormation Resource (AWS::Batch::JobDefinition.NodeProperties) @@ -23,53 +23,17 @@ type JobDefinition_NodeProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html#cfn-batch-jobdefinition-nodeproperties-numnodes NumNodes int `json:"NumNodes"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_NodeProperties) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.NodeProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_NodeProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_NodeProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_NodeProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_NodeProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_NodeProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_NodeProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go b/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go index 0a98e7edee..ea6495ce3a 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go +++ b/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_NodeRangeProperty AWS CloudFormation Resource (AWS::Batch::JobDefinition.NodeRangeProperty) @@ -18,53 +18,17 @@ type JobDefinition_NodeRangeProperty struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html#cfn-batch-jobdefinition-noderangeproperty-targetnodes TargetNodes string `json:"TargetNodes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_NodeRangeProperty) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.NodeRangeProperty" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_NodeRangeProperty) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_NodeRangeProperty) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_NodeRangeProperty) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_NodeRangeProperty) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_NodeRangeProperty) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_NodeRangeProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go b/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go index edbc448efd..a1571afa58 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go +++ b/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_ResourceRequirement AWS CloudFormation Resource (AWS::Batch::JobDefinition.ResourceRequirement) @@ -18,53 +18,17 @@ type JobDefinition_ResourceRequirement struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-resourcerequirement.html#cfn-batch-jobdefinition-resourcerequirement-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_ResourceRequirement) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.ResourceRequirement" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_ResourceRequirement) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_ResourceRequirement) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_ResourceRequirement) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_ResourceRequirement) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_ResourceRequirement) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_ResourceRequirement) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go b/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go index 5f06fbca06..96eb04474a 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go +++ b/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_RetryStrategy AWS CloudFormation Resource (AWS::Batch::JobDefinition.RetryStrategy) @@ -13,53 +13,17 @@ type JobDefinition_RetryStrategy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-retrystrategy.html#cfn-batch-jobdefinition-retrystrategy-attempts Attempts int `json:"Attempts,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_RetryStrategy) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.RetryStrategy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_RetryStrategy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_RetryStrategy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_RetryStrategy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_RetryStrategy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_RetryStrategy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_RetryStrategy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_timeout.go b/cloudformation/batch/aws-batch-jobdefinition_timeout.go index 0bc80f6bcc..11889ab9ba 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_timeout.go +++ b/cloudformation/batch/aws-batch-jobdefinition_timeout.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_Timeout AWS CloudFormation Resource (AWS::Batch::JobDefinition.Timeout) @@ -13,53 +13,17 @@ type JobDefinition_Timeout struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-timeout.html#cfn-batch-jobdefinition-timeout-attemptdurationseconds AttemptDurationSeconds int `json:"AttemptDurationSeconds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_Timeout) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.Timeout" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Timeout) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Timeout) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Timeout) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Timeout) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Timeout) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Timeout) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_ulimit.go b/cloudformation/batch/aws-batch-jobdefinition_ulimit.go index 6a596be694..d0a56f4a58 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_ulimit.go +++ b/cloudformation/batch/aws-batch-jobdefinition_ulimit.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_Ulimit AWS CloudFormation Resource (AWS::Batch::JobDefinition.Ulimit) @@ -23,53 +23,17 @@ type JobDefinition_Ulimit struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ulimit.html#cfn-batch-jobdefinition-ulimit-softlimit SoftLimit int `json:"SoftLimit"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_Ulimit) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.Ulimit" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Ulimit) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Ulimit) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Ulimit) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Ulimit) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Ulimit) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Ulimit) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_volumes.go b/cloudformation/batch/aws-batch-jobdefinition_volumes.go index 876c59c3e3..806e6e36f3 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_volumes.go +++ b/cloudformation/batch/aws-batch-jobdefinition_volumes.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_Volumes AWS CloudFormation Resource (AWS::Batch::JobDefinition.Volumes) @@ -18,53 +18,17 @@ type JobDefinition_Volumes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumes.html#cfn-batch-jobdefinition-volumes-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_Volumes) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.Volumes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Volumes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_Volumes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Volumes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_Volumes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Volumes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_Volumes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go b/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go index 6bb0753926..6db165f201 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go +++ b/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobDefinition_VolumesHost AWS CloudFormation Resource (AWS::Batch::JobDefinition.VolumesHost) @@ -13,53 +13,17 @@ type JobDefinition_VolumesHost struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-volumeshost.html#cfn-batch-jobdefinition-volumeshost-sourcepath SourcePath string `json:"SourcePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobDefinition_VolumesHost) AWSCloudFormationType() string { return "AWS::Batch::JobDefinition.VolumesHost" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_VolumesHost) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobDefinition_VolumesHost) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_VolumesHost) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobDefinition_VolumesHost) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_VolumesHost) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobDefinition_VolumesHost) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/batch/aws-batch-jobqueue.go b/cloudformation/batch/aws-batch-jobqueue.go index 579f5ec325..9b4da25876 100644 --- a/cloudformation/batch/aws-batch-jobqueue.go +++ b/cloudformation/batch/aws-batch-jobqueue.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobQueue AWS CloudFormation Resource (AWS::Batch::JobQueue) @@ -32,14 +32,14 @@ type JobQueue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-state State string `json:"State,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *JobQueue) AWSCloudFormationType() string { return "AWS::Batch::JobQueue" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobQueue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobQueue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobQueue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobQueue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobQueue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobQueue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 JobQueue) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r JobQueue) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *JobQueue) UnmarshalJSON(b []byte) error { *r = JobQueue(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go b/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go index f725255616..f3540fd891 100644 --- a/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go +++ b/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go @@ -1,7 +1,7 @@ package batch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // JobQueue_ComputeEnvironmentOrder AWS CloudFormation Resource (AWS::Batch::JobQueue.ComputeEnvironmentOrder) @@ -18,53 +18,17 @@ type JobQueue_ComputeEnvironmentOrder struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-computeenvironmentorder.html#cfn-batch-jobqueue-computeenvironmentorder-order Order int `json:"Order"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *JobQueue_ComputeEnvironmentOrder) AWSCloudFormationType() string { return "AWS::Batch::JobQueue.ComputeEnvironmentOrder" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobQueue_ComputeEnvironmentOrder) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *JobQueue_ComputeEnvironmentOrder) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobQueue_ComputeEnvironmentOrder) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *JobQueue_ComputeEnvironmentOrder) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobQueue_ComputeEnvironmentOrder) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *JobQueue_ComputeEnvironmentOrder) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget.go b/cloudformation/budgets/aws-budgets-budget.go index ca09bb6ad7..9bbb34277b 100644 --- a/cloudformation/budgets/aws-budgets-budget.go +++ b/cloudformation/budgets/aws-budgets-budget.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget AWS CloudFormation Resource (AWS::Budgets::Budget) @@ -22,14 +22,14 @@ type Budget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-notificationswithsubscribers NotificationsWithSubscribers []Budget_NotificationWithSubscribers `json:"NotificationsWithSubscribers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Budget) AWSCloudFormationType() string { return "AWS::Budgets::Budget" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Budget) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Budget) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Budget) UnmarshalJSON(b []byte) error { *r = Budget(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/budgets/aws-budgets-budget_budgetdata.go b/cloudformation/budgets/aws-budgets-budget_budgetdata.go index 652a73e709..01feb34c5f 100644 --- a/cloudformation/budgets/aws-budgets-budget_budgetdata.go +++ b/cloudformation/budgets/aws-budgets-budget_budgetdata.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_BudgetData AWS CloudFormation Resource (AWS::Budgets::Budget.BudgetData) @@ -48,53 +48,17 @@ type Budget_BudgetData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-budgetdata.html#cfn-budgets-budget-budgetdata-timeunit TimeUnit string `json:"TimeUnit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_BudgetData) AWSCloudFormationType() string { return "AWS::Budgets::Budget.BudgetData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_BudgetData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_BudgetData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_BudgetData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_BudgetData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_BudgetData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_BudgetData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget_costtypes.go b/cloudformation/budgets/aws-budgets-budget_costtypes.go index c16922c968..887ea93c4a 100644 --- a/cloudformation/budgets/aws-budgets-budget_costtypes.go +++ b/cloudformation/budgets/aws-budgets-budget_costtypes.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_CostTypes AWS CloudFormation Resource (AWS::Budgets::Budget.CostTypes) @@ -63,53 +63,17 @@ type Budget_CostTypes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-costtypes.html#cfn-budgets-budget-costtypes-useblended UseBlended bool `json:"UseBlended,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_CostTypes) AWSCloudFormationType() string { return "AWS::Budgets::Budget.CostTypes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_CostTypes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_CostTypes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_CostTypes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_CostTypes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_CostTypes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_CostTypes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget_notification.go b/cloudformation/budgets/aws-budgets-budget_notification.go index 1f9c563b1d..64db02a12b 100644 --- a/cloudformation/budgets/aws-budgets-budget_notification.go +++ b/cloudformation/budgets/aws-budgets-budget_notification.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_Notification AWS CloudFormation Resource (AWS::Budgets::Budget.Notification) @@ -28,53 +28,17 @@ type Budget_Notification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-thresholdtype ThresholdType string `json:"ThresholdType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_Notification) AWSCloudFormationType() string { return "AWS::Budgets::Budget.Notification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_Notification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_Notification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_Notification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_Notification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_Notification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_Notification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go b/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go index 8b01d2c002..35c5d6c6ec 100644 --- a/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go +++ b/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_NotificationWithSubscribers AWS CloudFormation Resource (AWS::Budgets::Budget.NotificationWithSubscribers) @@ -18,53 +18,17 @@ type Budget_NotificationWithSubscribers struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notificationwithsubscribers.html#cfn-budgets-budget-notificationwithsubscribers-subscribers Subscribers []Budget_Subscriber `json:"Subscribers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_NotificationWithSubscribers) AWSCloudFormationType() string { return "AWS::Budgets::Budget.NotificationWithSubscribers" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_NotificationWithSubscribers) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_NotificationWithSubscribers) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_NotificationWithSubscribers) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_NotificationWithSubscribers) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_NotificationWithSubscribers) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_NotificationWithSubscribers) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget_spend.go b/cloudformation/budgets/aws-budgets-budget_spend.go index aa84057c48..f33e218755 100644 --- a/cloudformation/budgets/aws-budgets-budget_spend.go +++ b/cloudformation/budgets/aws-budgets-budget_spend.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_Spend AWS CloudFormation Resource (AWS::Budgets::Budget.Spend) @@ -18,53 +18,17 @@ type Budget_Spend struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-spend.html#cfn-budgets-budget-spend-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_Spend) AWSCloudFormationType() string { return "AWS::Budgets::Budget.Spend" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_Spend) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_Spend) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_Spend) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_Spend) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_Spend) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_Spend) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget_subscriber.go b/cloudformation/budgets/aws-budgets-budget_subscriber.go index 5ea4d65fd0..fe74f0129c 100644 --- a/cloudformation/budgets/aws-budgets-budget_subscriber.go +++ b/cloudformation/budgets/aws-budgets-budget_subscriber.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_Subscriber AWS CloudFormation Resource (AWS::Budgets::Budget.Subscriber) @@ -18,53 +18,17 @@ type Budget_Subscriber struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-subscriber.html#cfn-budgets-budget-subscriber-subscriptiontype SubscriptionType string `json:"SubscriptionType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_Subscriber) AWSCloudFormationType() string { return "AWS::Budgets::Budget.Subscriber" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_Subscriber) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_Subscriber) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_Subscriber) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_Subscriber) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_Subscriber) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_Subscriber) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/budgets/aws-budgets-budget_timeperiod.go b/cloudformation/budgets/aws-budgets-budget_timeperiod.go index 67e75758be..f11b283f66 100644 --- a/cloudformation/budgets/aws-budgets-budget_timeperiod.go +++ b/cloudformation/budgets/aws-budgets-budget_timeperiod.go @@ -1,7 +1,7 @@ package budgets import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Budget_TimePeriod AWS CloudFormation Resource (AWS::Budgets::Budget.TimePeriod) @@ -18,53 +18,17 @@ type Budget_TimePeriod struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-timeperiod.html#cfn-budgets-budget-timeperiod-start Start string `json:"Start,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Budget_TimePeriod) AWSCloudFormationType() string { return "AWS::Budgets::Budget.TimePeriod" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_TimePeriod) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Budget_TimePeriod) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_TimePeriod) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Budget_TimePeriod) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_TimePeriod) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Budget_TimePeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/certificatemanager/aws-certificatemanager-certificate.go b/cloudformation/certificatemanager/aws-certificatemanager-certificate.go index 13956750d6..146710bf0a 100644 --- a/cloudformation/certificatemanager/aws-certificatemanager-certificate.go +++ b/cloudformation/certificatemanager/aws-certificatemanager-certificate.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Certificate AWS CloudFormation Resource (AWS::CertificateManager::Certificate) @@ -38,14 +38,14 @@ type Certificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-validationmethod ValidationMethod string `json:"ValidationMethod,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Certificate) AWSCloudFormationType() string { return "AWS::CertificateManager::Certificate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Certificate) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Certificate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { *r = Certificate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go b/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go index 9f235f362c..9cb2fbedca 100644 --- a/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go +++ b/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go @@ -1,7 +1,7 @@ package certificatemanager import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Certificate_DomainValidationOption AWS CloudFormation Resource (AWS::CertificateManager::Certificate.DomainValidationOption) @@ -18,53 +18,17 @@ type Certificate_DomainValidationOption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html#cfn-certificatemanager-certificate-domainvalidationoption-validationdomain ValidationDomain string `json:"ValidationDomain,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Certificate_DomainValidationOption) AWSCloudFormationType() string { return "AWS::CertificateManager::Certificate.DomainValidationOption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate_DomainValidationOption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate_DomainValidationOption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate_DomainValidationOption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate_DomainValidationOption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate_DomainValidationOption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate_DomainValidationOption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloud9/aws-cloud9-environmentec2.go b/cloudformation/cloud9/aws-cloud9-environmentec2.go index 5298ca8bbd..0af2c7594e 100644 --- a/cloudformation/cloud9/aws-cloud9-environmentec2.go +++ b/cloudformation/cloud9/aws-cloud9-environmentec2.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EnvironmentEC2 AWS CloudFormation Resource (AWS::Cloud9::EnvironmentEC2) @@ -47,14 +47,14 @@ 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"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *EnvironmentEC2) AWSCloudFormationType() string { return "AWS::Cloud9::EnvironmentEC2" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EnvironmentEC2) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EnvironmentEC2) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EnvironmentEC2) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EnvironmentEC2) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EnvironmentEC2) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EnvironmentEC2) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EnvironmentEC2) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r EnvironmentEC2) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *EnvironmentEC2) UnmarshalJSON(b []byte) error { *r = EnvironmentEC2(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go b/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go index 98760f7d6d..2a209fae83 100644 --- a/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go +++ b/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go @@ -1,7 +1,7 @@ package cloud9 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EnvironmentEC2_Repository AWS CloudFormation Resource (AWS::Cloud9::EnvironmentEC2.Repository) @@ -18,53 +18,17 @@ type EnvironmentEC2_Repository struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-repositoryurl RepositoryUrl string `json:"RepositoryUrl,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EnvironmentEC2_Repository) AWSCloudFormationType() string { return "AWS::Cloud9::EnvironmentEC2.Repository" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EnvironmentEC2_Repository) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EnvironmentEC2_Repository) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EnvironmentEC2_Repository) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EnvironmentEC2_Repository) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EnvironmentEC2_Repository) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EnvironmentEC2_Repository) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudformation/aws-cloudformation-customresource.go b/cloudformation/cloudformation/aws-cloudformation-customresource.go index ee6bbebd66..cba800514b 100644 --- a/cloudformation/cloudformation/aws-cloudformation-customresource.go +++ b/cloudformation/cloudformation/aws-cloudformation-customresource.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CustomResource AWS CloudFormation Resource (AWS::CloudFormation::CustomResource) @@ -17,14 +17,14 @@ type CustomResource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html#cfn-customresource-servicetoken ServiceToken string `json:"ServiceToken,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *CustomResource) AWSCloudFormationType() string { return "AWS::CloudFormation::CustomResource" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomResource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomResource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomResource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomResource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomResource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomResource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CustomResource) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r CustomResource) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *CustomResource) UnmarshalJSON(b []byte) error { *r = CustomResource(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-macro.go b/cloudformation/cloudformation/aws-cloudformation-macro.go index 5b161825f2..9abc501f3c 100644 --- a/cloudformation/cloudformation/aws-cloudformation-macro.go +++ b/cloudformation/cloudformation/aws-cloudformation-macro.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Macro AWS CloudFormation Resource (AWS::CloudFormation::Macro) @@ -37,14 +37,14 @@ type Macro struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Macro) AWSCloudFormationType() string { return "AWS::CloudFormation::Macro" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Macro) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Macro) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Macro) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Macro) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Macro) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Macro) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Macro) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Macro) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Macro) UnmarshalJSON(b []byte) error { *r = Macro(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-stack.go b/cloudformation/cloudformation/aws-cloudformation-stack.go index 751c923433..5e0c3f504f 100644 --- a/cloudformation/cloudformation/aws-cloudformation-stack.go +++ b/cloudformation/cloudformation/aws-cloudformation-stack.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Stack AWS CloudFormation Resource (AWS::CloudFormation::Stack) @@ -38,14 +38,14 @@ type Stack struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html#cfn-cloudformation-stack-timeoutinminutes TimeoutInMinutes int `json:"TimeoutInMinutes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Stack) AWSCloudFormationType() string { return "AWS::CloudFormation::Stack" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Stack) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Stack) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Stack) UnmarshalJSON(b []byte) error { *r = Stack(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-waitcondition.go b/cloudformation/cloudformation/aws-cloudformation-waitcondition.go index ef7a154d51..f90f019ea7 100644 --- a/cloudformation/cloudformation/aws-cloudformation-waitcondition.go +++ b/cloudformation/cloudformation/aws-cloudformation-waitcondition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WaitCondition AWS CloudFormation Resource (AWS::CloudFormation::WaitCondition) @@ -27,17 +27,17 @@ type WaitCondition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html#cfn-waitcondition-timeout Timeout string `json:"Timeout,omitempty"` - // _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *policies.CreationPolicy + // AWSCloudFormationCreationPolicy represents a CloudFormation CreationPolicy + AWSCloudFormationCreationPolicy *policies.CreationPolicy `json:"-"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -45,48 +45,6 @@ func (r *WaitCondition) AWSCloudFormationType() string { return "AWS::CloudFormation::WaitCondition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WaitCondition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WaitCondition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WaitCondition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WaitCondition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WaitCondition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WaitCondition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - -// SetCreationPolicy applies an AWS CloudFormation CreationPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html -func (r *WaitCondition) SetCreationPolicy(policy *policies.CreationPolicy) { - r._creationPolicy = policy -} - // 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 WaitCondition) MarshalJSON() ([]byte, error) { @@ -102,11 +60,11 @@ func (r WaitCondition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, - CreationPolicy: r._creationPolicy, + CreationPolicy: r.AWSCloudFormationCreationPolicy, }) } @@ -135,13 +93,13 @@ func (r *WaitCondition) UnmarshalJSON(b []byte) error { *r = WaitCondition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go b/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go index 5400a34655..0995bb73c9 100644 --- a/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go +++ b/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go @@ -5,21 +5,21 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WaitConditionHandle AWS CloudFormation Resource (AWS::CloudFormation::WaitConditionHandle) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitconditionhandle.html type WaitConditionHandle struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -27,42 +27,6 @@ func (r *WaitConditionHandle) AWSCloudFormationType() string { return "AWS::CloudFormation::WaitConditionHandle" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WaitConditionHandle) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WaitConditionHandle) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WaitConditionHandle) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WaitConditionHandle) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WaitConditionHandle) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WaitConditionHandle) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 WaitConditionHandle) MarshalJSON() ([]byte, error) { @@ -76,9 +40,9 @@ func (r WaitConditionHandle) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -107,13 +71,13 @@ func (r *WaitConditionHandle) UnmarshalJSON(b []byte) error { *r = WaitConditionHandle(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudformation/tag.go b/cloudformation/cloudformation/tag.go index 0882fcb079..17e0242dcc 100644 --- a/cloudformation/cloudformation/tag.go +++ b/cloudformation/cloudformation/tag.go @@ -1,7 +1,7 @@ package cloudformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Tag AWS CloudFormation Resource (Tag) @@ -18,53 +18,17 @@ type Tag struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html#cfn-resource-tags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Tag) AWSCloudFormationType() string { return "Tag" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Tag) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Tag) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Tag) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Tag) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Tag) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Tag) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go index cea01ce47e..e64a432752 100644 --- a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go +++ b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CloudFrontOriginAccessIdentity AWS CloudFormation Resource (AWS::CloudFront::CloudFrontOriginAccessIdentity) @@ -17,14 +17,14 @@ type CloudFrontOriginAccessIdentity struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig CloudFrontOriginAccessIdentityConfig *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig `json:"CloudFrontOriginAccessIdentityConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *CloudFrontOriginAccessIdentity) AWSCloudFormationType() string { return "AWS::CloudFront::CloudFrontOriginAccessIdentity" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFrontOriginAccessIdentity) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFrontOriginAccessIdentity) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFrontOriginAccessIdentity) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFrontOriginAccessIdentity) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFrontOriginAccessIdentity) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFrontOriginAccessIdentity) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CloudFrontOriginAccessIdentity) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r CloudFrontOriginAccessIdentity) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *CloudFrontOriginAccessIdentity) UnmarshalJSON(b []byte) error { *r = CloudFrontOriginAccessIdentity(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go index b8668d9668..808890ca2f 100644 --- a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig AWS CloudFormation Resource (AWS::CloudFront::CloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfig) @@ -13,53 +13,17 @@ type CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig struct // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig-comment Comment string `json:"Comment,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) AWSCloudFormationType() string { return "AWS::CloudFront::CloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution.go b/cloudformation/cloudfront/aws-cloudfront-distribution.go index 2aa133c89b..a1272533e6 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Distribution AWS CloudFormation Resource (AWS::CloudFront::Distribution) @@ -23,14 +23,14 @@ type Distribution struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +38,6 @@ func (r *Distribution) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Distribution) MarshalJSON() ([]byte, error) { @@ -87,9 +51,9 @@ func (r Distribution) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +82,13 @@ func (r *Distribution) UnmarshalJSON(b []byte) error { *r = Distribution(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go b/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go index eea154ddf4..c49bf24687 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_CacheBehavior AWS CloudFormation Resource (AWS::CloudFront::Distribution.CacheBehavior) @@ -78,53 +78,17 @@ type Distribution_CacheBehavior struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy ViewerProtocolPolicy string `json:"ViewerProtocolPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_CacheBehavior) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.CacheBehavior" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_CacheBehavior) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_CacheBehavior) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_CacheBehavior) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_CacheBehavior) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_CacheBehavior) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_CacheBehavior) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go b/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go index d9e4f7df64..b941286cba 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_Cookies AWS CloudFormation Resource (AWS::CloudFront::Distribution.Cookies) @@ -18,53 +18,17 @@ type Distribution_Cookies struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames WhitelistedNames []string `json:"WhitelistedNames,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_Cookies) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.Cookies" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Cookies) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Cookies) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Cookies) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Cookies) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Cookies) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Cookies) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go b/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go index f4bf790b93..d8094bc0cb 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_CustomErrorResponse AWS CloudFormation Resource (AWS::CloudFront::Distribution.CustomErrorResponse) @@ -28,53 +28,17 @@ type Distribution_CustomErrorResponse struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsepagepath ResponsePagePath string `json:"ResponsePagePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_CustomErrorResponse) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.CustomErrorResponse" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_CustomErrorResponse) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_CustomErrorResponse) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_CustomErrorResponse) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_CustomErrorResponse) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_CustomErrorResponse) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_CustomErrorResponse) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go b/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go index 480ff460e6..16f1d312d7 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_CustomOriginConfig AWS CloudFormation Resource (AWS::CloudFront::Distribution.CustomOriginConfig) @@ -38,53 +38,17 @@ type Distribution_CustomOriginConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols OriginSSLProtocols []string `json:"OriginSSLProtocols,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_CustomOriginConfig) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.CustomOriginConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_CustomOriginConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_CustomOriginConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_CustomOriginConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_CustomOriginConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_CustomOriginConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_CustomOriginConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go b/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go index caabdd5ed4..9f2b0e367d 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_DefaultCacheBehavior AWS CloudFormation Resource (AWS::CloudFront::Distribution.DefaultCacheBehavior) @@ -73,53 +73,17 @@ type Distribution_DefaultCacheBehavior struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-viewerprotocolpolicy ViewerProtocolPolicy string `json:"ViewerProtocolPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_DefaultCacheBehavior) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.DefaultCacheBehavior" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_DefaultCacheBehavior) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_DefaultCacheBehavior) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_DefaultCacheBehavior) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_DefaultCacheBehavior) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_DefaultCacheBehavior) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_DefaultCacheBehavior) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go b/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go index 42be6f7081..0d17d2fb91 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_DistributionConfig AWS CloudFormation Resource (AWS::CloudFront::Distribution.DistributionConfig) @@ -83,53 +83,17 @@ type Distribution_DistributionConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid WebACLId string `json:"WebACLId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_DistributionConfig) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.DistributionConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_DistributionConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_DistributionConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_DistributionConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_DistributionConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_DistributionConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_DistributionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go b/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go index bffcad898d..113b6e8183 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_ForwardedValues AWS CloudFormation Resource (AWS::CloudFront::Distribution.ForwardedValues) @@ -28,53 +28,17 @@ type Distribution_ForwardedValues struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystringcachekeys QueryStringCacheKeys []string `json:"QueryStringCacheKeys,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_ForwardedValues) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.ForwardedValues" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_ForwardedValues) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_ForwardedValues) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_ForwardedValues) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_ForwardedValues) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_ForwardedValues) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_ForwardedValues) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go b/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go index ffd350840e..a0cda9c7be 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_GeoRestriction AWS CloudFormation Resource (AWS::CloudFront::Distribution.GeoRestriction) @@ -18,53 +18,17 @@ type Distribution_GeoRestriction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-restrictiontype RestrictionType string `json:"RestrictionType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_GeoRestriction) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.GeoRestriction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_GeoRestriction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_GeoRestriction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_GeoRestriction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_GeoRestriction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_GeoRestriction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_GeoRestriction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go b/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go index 993b4cada4..cd1a062f70 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_LambdaFunctionAssociation AWS CloudFormation Resource (AWS::CloudFront::Distribution.LambdaFunctionAssociation) @@ -18,53 +18,17 @@ type Distribution_LambdaFunctionAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn LambdaFunctionARN string `json:"LambdaFunctionARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_LambdaFunctionAssociation) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.LambdaFunctionAssociation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_LambdaFunctionAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_LambdaFunctionAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_LambdaFunctionAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_LambdaFunctionAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_LambdaFunctionAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_LambdaFunctionAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go b/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go index f5b7507c79..3c5eaaa865 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_Logging AWS CloudFormation Resource (AWS::CloudFront::Distribution.Logging) @@ -23,53 +23,17 @@ type Distribution_Logging struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-prefix Prefix string `json:"Prefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_Logging) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.Logging" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Logging) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Logging) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Logging) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Logging) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Logging) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Logging) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go b/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go index bfc65ef40f..b26527ec11 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_Origin AWS CloudFormation Resource (AWS::CloudFront::Distribution.Origin) @@ -38,53 +38,17 @@ type Distribution_Origin struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-s3originconfig S3OriginConfig *Distribution_S3OriginConfig `json:"S3OriginConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_Origin) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.Origin" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Origin) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Origin) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Origin) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Origin) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Origin) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Origin) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go b/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go index 957b792515..84f76a30ca 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_OriginCustomHeader AWS CloudFormation Resource (AWS::CloudFront::Distribution.OriginCustomHeader) @@ -18,53 +18,17 @@ type Distribution_OriginCustomHeader struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headervalue HeaderValue string `json:"HeaderValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_OriginCustomHeader) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.OriginCustomHeader" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_OriginCustomHeader) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_OriginCustomHeader) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_OriginCustomHeader) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_OriginCustomHeader) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_OriginCustomHeader) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_OriginCustomHeader) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go b/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go index 515e78ec20..09ae98a900 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_Restrictions AWS CloudFormation Resource (AWS::CloudFront::Distribution.Restrictions) @@ -13,53 +13,17 @@ type Distribution_Restrictions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction GeoRestriction *Distribution_GeoRestriction `json:"GeoRestriction,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_Restrictions) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.Restrictions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Restrictions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_Restrictions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Restrictions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_Restrictions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Restrictions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_Restrictions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go b/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go index 921eeb56f1..b6b57ef7bf 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_S3OriginConfig AWS CloudFormation Resource (AWS::CloudFront::Distribution.S3OriginConfig) @@ -13,53 +13,17 @@ type Distribution_S3OriginConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originaccessidentity OriginAccessIdentity string `json:"OriginAccessIdentity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_S3OriginConfig) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.S3OriginConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_S3OriginConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_S3OriginConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_S3OriginConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_S3OriginConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_S3OriginConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_S3OriginConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go b/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go index b9dbb5edae..5246777426 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Distribution_ViewerCertificate AWS CloudFormation Resource (AWS::CloudFront::Distribution.ViewerCertificate) @@ -33,53 +33,17 @@ type Distribution_ViewerCertificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod SslSupportMethod string `json:"SslSupportMethod,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Distribution_ViewerCertificate) AWSCloudFormationType() string { return "AWS::CloudFront::Distribution.ViewerCertificate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_ViewerCertificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Distribution_ViewerCertificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_ViewerCertificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Distribution_ViewerCertificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_ViewerCertificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Distribution_ViewerCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go index f4b308f88d..d8a7a2da55 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // StreamingDistribution AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution) @@ -23,14 +23,14 @@ type StreamingDistribution struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +38,6 @@ func (r *StreamingDistribution) AWSCloudFormationType() string { return "AWS::CloudFront::StreamingDistribution" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 StreamingDistribution) MarshalJSON() ([]byte, error) { @@ -87,9 +51,9 @@ func (r StreamingDistribution) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +82,13 @@ func (r *StreamingDistribution) UnmarshalJSON(b []byte) error { *r = StreamingDistribution(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go index 4f0f9c9c75..e5b8f5ca26 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StreamingDistribution_Logging AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.Logging) @@ -23,53 +23,17 @@ type StreamingDistribution_Logging struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-prefix Prefix string `json:"Prefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *StreamingDistribution_Logging) AWSCloudFormationType() string { return "AWS::CloudFront::StreamingDistribution.Logging" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_Logging) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_Logging) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_Logging) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_Logging) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_Logging) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_Logging) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go index f6dda786b1..07401e7ddb 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StreamingDistribution_S3Origin AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.S3Origin) @@ -18,53 +18,17 @@ type StreamingDistribution_S3Origin struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-originaccessidentity OriginAccessIdentity string `json:"OriginAccessIdentity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *StreamingDistribution_S3Origin) AWSCloudFormationType() string { return "AWS::CloudFront::StreamingDistribution.S3Origin" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_S3Origin) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_S3Origin) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_S3Origin) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_S3Origin) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_S3Origin) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_S3Origin) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go index 262dcf46ff..d912301218 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StreamingDistribution_StreamingDistributionConfig AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.StreamingDistributionConfig) @@ -43,53 +43,17 @@ type StreamingDistribution_StreamingDistributionConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-trustedsigners TrustedSigners *StreamingDistribution_TrustedSigners `json:"TrustedSigners,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *StreamingDistribution_StreamingDistributionConfig) AWSCloudFormationType() string { return "AWS::CloudFront::StreamingDistribution.StreamingDistributionConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_StreamingDistributionConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_StreamingDistributionConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_StreamingDistributionConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_StreamingDistributionConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_StreamingDistributionConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_StreamingDistributionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go index df15e70f10..f30a7bdc6a 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go @@ -1,7 +1,7 @@ package cloudfront import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StreamingDistribution_TrustedSigners AWS CloudFormation Resource (AWS::CloudFront::StreamingDistribution.TrustedSigners) @@ -18,53 +18,17 @@ type StreamingDistribution_TrustedSigners struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-enabled Enabled bool `json:"Enabled"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *StreamingDistribution_TrustedSigners) AWSCloudFormationType() string { return "AWS::CloudFront::StreamingDistribution.TrustedSigners" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_TrustedSigners) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamingDistribution_TrustedSigners) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_TrustedSigners) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamingDistribution_TrustedSigners) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_TrustedSigners) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamingDistribution_TrustedSigners) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudtrail/aws-cloudtrail-trail.go b/cloudformation/cloudtrail/aws-cloudtrail-trail.go index 820f71354a..1e2929c992 100644 --- a/cloudformation/cloudtrail/aws-cloudtrail-trail.go +++ b/cloudformation/cloudtrail/aws-cloudtrail-trail.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Trail AWS CloudFormation Resource (AWS::CloudTrail::Trail) @@ -78,14 +78,14 @@ type Trail struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-trailname TrailName string `json:"TrailName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -93,42 +93,6 @@ func (r *Trail) AWSCloudFormationType() string { return "AWS::CloudTrail::Trail" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trail) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trail) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trail) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trail) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trail) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trail) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Trail) MarshalJSON() ([]byte, error) { @@ -142,9 +106,9 @@ func (r Trail) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -173,13 +137,13 @@ func (r *Trail) UnmarshalJSON(b []byte) error { *r = Trail(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go b/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go index 8504cefca5..b904d10c1e 100644 --- a/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go +++ b/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go @@ -1,7 +1,7 @@ package cloudtrail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trail_DataResource AWS CloudFormation Resource (AWS::CloudTrail::Trail.DataResource) @@ -18,53 +18,17 @@ type Trail_DataResource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html#cfn-cloudtrail-trail-dataresource-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Trail_DataResource) AWSCloudFormationType() string { return "AWS::CloudTrail::Trail.DataResource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trail_DataResource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trail_DataResource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trail_DataResource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trail_DataResource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trail_DataResource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trail_DataResource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go b/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go index 7b93757dca..a72af0da11 100644 --- a/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go +++ b/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go @@ -1,7 +1,7 @@ package cloudtrail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trail_EventSelector AWS CloudFormation Resource (AWS::CloudTrail::Trail.EventSelector) @@ -23,53 +23,17 @@ type Trail_EventSelector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html#cfn-cloudtrail-trail-eventselector-readwritetype ReadWriteType string `json:"ReadWriteType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Trail_EventSelector) AWSCloudFormationType() string { return "AWS::CloudTrail::Trail.EventSelector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trail_EventSelector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trail_EventSelector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trail_EventSelector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trail_EventSelector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trail_EventSelector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trail_EventSelector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm.go index f900e9c1ae..2bab500c3b 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alarm AWS CloudFormation Resource (AWS::CloudWatch::Alarm) @@ -117,14 +117,14 @@ type Alarm struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -132,42 +132,6 @@ func (r *Alarm) AWSCloudFormationType() string { return "AWS::CloudWatch::Alarm" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Alarm) MarshalJSON() ([]byte, error) { @@ -181,9 +145,9 @@ func (r Alarm) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -212,13 +176,13 @@ func (r *Alarm) UnmarshalJSON(b []byte) error { *r = Alarm(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go index b0d85df192..21088e4acf 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alarm_Dimension AWS CloudFormation Resource (AWS::CloudWatch::Alarm.Dimension) @@ -18,53 +18,17 @@ type Alarm_Dimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html#cfn-cloudwatch-alarm-dimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alarm_Dimension) AWSCloudFormationType() string { return "AWS::CloudWatch::Alarm.Dimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_Dimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_Dimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_Dimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_Dimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_Dimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_Dimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go index 0ad93d892b..f9d77f10a7 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alarm_Metric AWS CloudFormation Resource (AWS::CloudWatch::Alarm.Metric) @@ -23,53 +23,17 @@ type Alarm_Metric struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace Namespace string `json:"Namespace,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alarm_Metric) AWSCloudFormationType() string { return "AWS::CloudWatch::Alarm.Metric" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_Metric) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_Metric) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_Metric) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_Metric) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_Metric) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_Metric) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go index d47f1e0e3f..ef170f6b81 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alarm_MetricDataQuery AWS CloudFormation Resource (AWS::CloudWatch::Alarm.MetricDataQuery) @@ -33,53 +33,17 @@ type Alarm_MetricDataQuery struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-returndata ReturnData bool `json:"ReturnData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alarm_MetricDataQuery) AWSCloudFormationType() string { return "AWS::CloudWatch::Alarm.MetricDataQuery" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_MetricDataQuery) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_MetricDataQuery) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_MetricDataQuery) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_MetricDataQuery) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_MetricDataQuery) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_MetricDataQuery) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go index 001ed6e9bb..c4d65b99ce 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alarm_MetricStat AWS CloudFormation Resource (AWS::CloudWatch::Alarm.MetricStat) @@ -28,53 +28,17 @@ type Alarm_MetricStat struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html#cfn-cloudwatch-alarm-metricstat-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alarm_MetricStat) AWSCloudFormationType() string { return "AWS::CloudWatch::Alarm.MetricStat" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_MetricStat) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alarm_MetricStat) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_MetricStat) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alarm_MetricStat) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_MetricStat) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alarm_MetricStat) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go index ee68923fe4..b613808a04 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AnomalyDetector AWS CloudFormation Resource (AWS::CloudWatch::AnomalyDetector) @@ -37,14 +37,14 @@ type AnomalyDetector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat Stat string `json:"Stat,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *AnomalyDetector) AWSCloudFormationType() string { return "AWS::CloudWatch::AnomalyDetector" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 AnomalyDetector) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r AnomalyDetector) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *AnomalyDetector) UnmarshalJSON(b []byte) error { *r = AnomalyDetector(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go index fb6eb19c48..a8f762da4a 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AnomalyDetector_Configuration AWS CloudFormation Resource (AWS::CloudWatch::AnomalyDetector.Configuration) @@ -18,53 +18,17 @@ type AnomalyDetector_Configuration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-metrictimezone MetricTimeZone string `json:"MetricTimeZone,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AnomalyDetector_Configuration) AWSCloudFormationType() string { return "AWS::CloudWatch::AnomalyDetector.Configuration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector_Configuration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector_Configuration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector_Configuration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector_Configuration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector_Configuration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go index 8380047d52..e743d14d07 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AnomalyDetector_Dimension AWS CloudFormation Resource (AWS::CloudWatch::AnomalyDetector.Dimension) @@ -18,53 +18,17 @@ type AnomalyDetector_Dimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-dimension.html#cfn-cloudwatch-anomalydetector-dimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AnomalyDetector_Dimension) AWSCloudFormationType() string { return "AWS::CloudWatch::AnomalyDetector.Dimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector_Dimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector_Dimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector_Dimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector_Dimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector_Dimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector_Dimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go index a627d45f32..556b3fcd86 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go @@ -1,7 +1,7 @@ package cloudwatch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AnomalyDetector_Range AWS CloudFormation Resource (AWS::CloudWatch::AnomalyDetector.Range) @@ -18,53 +18,17 @@ type AnomalyDetector_Range struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime StartTime string `json:"StartTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AnomalyDetector_Range) AWSCloudFormationType() string { return "AWS::CloudWatch::AnomalyDetector.Range" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector_Range) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AnomalyDetector_Range) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector_Range) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AnomalyDetector_Range) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector_Range) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AnomalyDetector_Range) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go b/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go index 117d138df6..6a3abcc8eb 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dashboard AWS CloudFormation Resource (AWS::CloudWatch::Dashboard) @@ -22,14 +22,14 @@ type Dashboard struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardname DashboardName string `json:"DashboardName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Dashboard) AWSCloudFormationType() string { return "AWS::CloudWatch::Dashboard" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dashboard) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dashboard) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dashboard) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dashboard) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dashboard) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dashboard) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Dashboard) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Dashboard) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Dashboard) UnmarshalJSON(b []byte) error { *r = Dashboard(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go b/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go new file mode 100644 index 0000000000..dc102c8143 --- /dev/null +++ b/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go @@ -0,0 +1,98 @@ +package cloudwatch + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// InsightRule AWS CloudFormation Resource (AWS::CloudWatch::InsightRule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html +type InsightRule struct { + + // RuleBody AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody + RuleBody string `json:"RuleBody,omitempty"` + + // RuleName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename + RuleName string `json:"RuleName,omitempty"` + + // RuleState AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate + RuleState string `json:"RuleState,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *InsightRule) AWSCloudFormationType() string { + return "AWS::CloudWatch::InsightRule" +} + +// 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 InsightRule) MarshalJSON() ([]byte, error) { + type Properties InsightRule + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *InsightRule) UnmarshalJSON(b []byte) error { + type Properties InsightRule + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = InsightRule(*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) + } + return nil +} diff --git a/cloudformation/codebuild/aws-codebuild-project.go b/cloudformation/codebuild/aws-codebuild-project.go index 1fbb55888e..e94ae348fb 100644 --- a/cloudformation/codebuild/aws-codebuild-project.go +++ b/cloudformation/codebuild/aws-codebuild-project.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Project AWS CloudFormation Resource (AWS::CodeBuild::Project) @@ -108,14 +108,14 @@ type Project struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-vpcconfig VpcConfig *Project_VpcConfig `json:"VpcConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -123,42 +123,6 @@ func (r *Project) AWSCloudFormationType() string { return "AWS::CodeBuild::Project" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Project) MarshalJSON() ([]byte, error) { @@ -172,9 +136,9 @@ func (r Project) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -203,13 +167,13 @@ func (r *Project) UnmarshalJSON(b []byte) error { *r = Project(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codebuild/aws-codebuild-project_artifacts.go b/cloudformation/codebuild/aws-codebuild-project_artifacts.go index 6a6b6b14c9..e09f2d3b85 100644 --- a/cloudformation/codebuild/aws-codebuild-project_artifacts.go +++ b/cloudformation/codebuild/aws-codebuild-project_artifacts.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_Artifacts AWS CloudFormation Resource (AWS::CodeBuild::Project.Artifacts) @@ -53,53 +53,17 @@ type Project_Artifacts struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_Artifacts) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.Artifacts" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_Artifacts) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_Artifacts) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_Artifacts) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_Artifacts) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_Artifacts) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_Artifacts) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go b/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go index 85b30de1cc..af4aa3ebe2 100644 --- a/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_CloudWatchLogsConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.CloudWatchLogsConfig) @@ -23,53 +23,17 @@ type Project_CloudWatchLogsConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-streamname StreamName string `json:"StreamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_CloudWatchLogsConfig) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.CloudWatchLogsConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_CloudWatchLogsConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_CloudWatchLogsConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_CloudWatchLogsConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_CloudWatchLogsConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_CloudWatchLogsConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_CloudWatchLogsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_environment.go b/cloudformation/codebuild/aws-codebuild-project_environment.go index 6ac4d92b3b..d785632257 100644 --- a/cloudformation/codebuild/aws-codebuild-project_environment.go +++ b/cloudformation/codebuild/aws-codebuild-project_environment.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_Environment AWS CloudFormation Resource (AWS::CodeBuild::Project.Environment) @@ -48,53 +48,17 @@ type Project_Environment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_Environment) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.Environment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_Environment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_Environment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_Environment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_Environment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_Environment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go b/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go index 91a1aa6a51..370b7b8da8 100644 --- a/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go +++ b/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_EnvironmentVariable AWS CloudFormation Resource (AWS::CodeBuild::Project.EnvironmentVariable) @@ -23,53 +23,17 @@ type Project_EnvironmentVariable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_EnvironmentVariable) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.EnvironmentVariable" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_EnvironmentVariable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_EnvironmentVariable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_EnvironmentVariable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_EnvironmentVariable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_EnvironmentVariable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_EnvironmentVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_filtergroup.go b/cloudformation/codebuild/aws-codebuild-project_filtergroup.go index 79ad11034c..52856dd754 100644 --- a/cloudformation/codebuild/aws-codebuild-project_filtergroup.go +++ b/cloudformation/codebuild/aws-codebuild-project_filtergroup.go @@ -1,60 +1,24 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_FilterGroup AWS CloudFormation Resource (AWS::CodeBuild::Project.FilterGroup) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-filtergroup.html type Project_FilterGroup struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_FilterGroup) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.FilterGroup" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_FilterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_FilterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_FilterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_FilterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_FilterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_FilterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go b/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go index 078f9e63e3..358e39542c 100644 --- a/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_GitSubmodulesConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.GitSubmodulesConfig) @@ -13,53 +13,17 @@ type Project_GitSubmodulesConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-gitsubmodulesconfig.html#cfn-codebuild-project-gitsubmodulesconfig-fetchsubmodules FetchSubmodules bool `json:"FetchSubmodules"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_GitSubmodulesConfig) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.GitSubmodulesConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_GitSubmodulesConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_GitSubmodulesConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_GitSubmodulesConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_GitSubmodulesConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_GitSubmodulesConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_GitSubmodulesConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_logsconfig.go b/cloudformation/codebuild/aws-codebuild-project_logsconfig.go index f1e54a6a93..98a990476c 100644 --- a/cloudformation/codebuild/aws-codebuild-project_logsconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_logsconfig.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_LogsConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.LogsConfig) @@ -18,53 +18,17 @@ type Project_LogsConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-s3logs S3Logs *Project_S3LogsConfig `json:"S3Logs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_LogsConfig) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.LogsConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_LogsConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_LogsConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_LogsConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_LogsConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_LogsConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_LogsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_projectcache.go b/cloudformation/codebuild/aws-codebuild-project_projectcache.go index 896d84a32a..fb52688331 100644 --- a/cloudformation/codebuild/aws-codebuild-project_projectcache.go +++ b/cloudformation/codebuild/aws-codebuild-project_projectcache.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_ProjectCache AWS CloudFormation Resource (AWS::CodeBuild::Project.ProjectCache) @@ -23,53 +23,17 @@ type Project_ProjectCache struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_ProjectCache) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.ProjectCache" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_ProjectCache) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_ProjectCache) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_ProjectCache) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_ProjectCache) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_ProjectCache) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_ProjectCache) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go b/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go index 425f40bd7d..1fd59093b0 100644 --- a/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go +++ b/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_ProjectSourceVersion AWS CloudFormation Resource (AWS::CodeBuild::Project.ProjectSourceVersion) @@ -18,53 +18,17 @@ type Project_ProjectSourceVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html#cfn-codebuild-project-projectsourceversion-sourceversion SourceVersion string `json:"SourceVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_ProjectSourceVersion) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.ProjectSourceVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_ProjectSourceVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_ProjectSourceVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_ProjectSourceVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_ProjectSourceVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_ProjectSourceVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_ProjectSourceVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go b/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go index cabf6f783f..a91ee01cd2 100644 --- a/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go +++ b/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_ProjectTriggers AWS CloudFormation Resource (AWS::CodeBuild::Project.ProjectTriggers) @@ -18,53 +18,17 @@ type Project_ProjectTriggers struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-webhook Webhook bool `json:"Webhook,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_ProjectTriggers) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.ProjectTriggers" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_ProjectTriggers) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_ProjectTriggers) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_ProjectTriggers) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_ProjectTriggers) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_ProjectTriggers) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_ProjectTriggers) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_registrycredential.go b/cloudformation/codebuild/aws-codebuild-project_registrycredential.go index 473775aaca..1b78116b90 100644 --- a/cloudformation/codebuild/aws-codebuild-project_registrycredential.go +++ b/cloudformation/codebuild/aws-codebuild-project_registrycredential.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_RegistryCredential AWS CloudFormation Resource (AWS::CodeBuild::Project.RegistryCredential) @@ -18,53 +18,17 @@ type Project_RegistryCredential struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html#cfn-codebuild-project-registrycredential-credentialprovider CredentialProvider string `json:"CredentialProvider,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_RegistryCredential) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.RegistryCredential" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_RegistryCredential) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_RegistryCredential) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_RegistryCredential) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_RegistryCredential) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_RegistryCredential) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_RegistryCredential) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go b/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go index 594c04d277..29ebcf580c 100644 --- a/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_S3LogsConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.S3LogsConfig) @@ -23,53 +23,17 @@ type Project_S3LogsConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-status Status string `json:"Status,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_S3LogsConfig) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.S3LogsConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_S3LogsConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_S3LogsConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_S3LogsConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_S3LogsConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_S3LogsConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_S3LogsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_source.go b/cloudformation/codebuild/aws-codebuild-project_source.go index b801a0a95f..90564185d7 100644 --- a/cloudformation/codebuild/aws-codebuild-project_source.go +++ b/cloudformation/codebuild/aws-codebuild-project_source.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_Source AWS CloudFormation Resource (AWS::CodeBuild::Project.Source) @@ -53,53 +53,17 @@ type Project_Source struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_Source) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.Source" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_Source) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_Source) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_Source) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_Source) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_Source) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_sourceauth.go b/cloudformation/codebuild/aws-codebuild-project_sourceauth.go index 4f6866665e..c77168208c 100644 --- a/cloudformation/codebuild/aws-codebuild-project_sourceauth.go +++ b/cloudformation/codebuild/aws-codebuild-project_sourceauth.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_SourceAuth AWS CloudFormation Resource (AWS::CodeBuild::Project.SourceAuth) @@ -18,53 +18,17 @@ type Project_SourceAuth struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_SourceAuth) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.SourceAuth" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_SourceAuth) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_SourceAuth) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_SourceAuth) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_SourceAuth) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_SourceAuth) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_SourceAuth) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go b/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go index 207480aad1..47f7798de6 100644 --- a/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_VpcConfig AWS CloudFormation Resource (AWS::CodeBuild::Project.VpcConfig) @@ -23,53 +23,17 @@ type Project_VpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_VpcConfig) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.VpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_VpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_VpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_VpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_VpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_VpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go b/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go index e4e676dead..07364d655a 100644 --- a/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go +++ b/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go @@ -1,7 +1,7 @@ package codebuild import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_WebhookFilter AWS CloudFormation Resource (AWS::CodeBuild::Project.WebhookFilter) @@ -23,53 +23,17 @@ type Project_WebhookFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_WebhookFilter) AWSCloudFormationType() string { return "AWS::CodeBuild::Project.WebhookFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_WebhookFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_WebhookFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_WebhookFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_WebhookFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_WebhookFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_WebhookFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codebuild/aws-codebuild-sourcecredential.go b/cloudformation/codebuild/aws-codebuild-sourcecredential.go index e2ad2b7211..21567d468e 100644 --- a/cloudformation/codebuild/aws-codebuild-sourcecredential.go +++ b/cloudformation/codebuild/aws-codebuild-sourcecredential.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SourceCredential AWS CloudFormation Resource (AWS::CodeBuild::SourceCredential) @@ -32,14 +32,14 @@ type SourceCredential struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *SourceCredential) AWSCloudFormationType() string { return "AWS::CodeBuild::SourceCredential" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SourceCredential) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SourceCredential) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SourceCredential) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SourceCredential) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SourceCredential) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SourceCredential) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SourceCredential) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r SourceCredential) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *SourceCredential) UnmarshalJSON(b []byte) error { *r = SourceCredential(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codecommit/aws-codecommit-repository.go b/cloudformation/codecommit/aws-codecommit-repository.go index d969d6b3b7..8807c46d3f 100644 --- a/cloudformation/codecommit/aws-codecommit-repository.go +++ b/cloudformation/codecommit/aws-codecommit-repository.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Repository AWS CloudFormation Resource (AWS::CodeCommit::Repository) @@ -38,14 +38,14 @@ type Repository struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-triggers Triggers []Repository_RepositoryTrigger `json:"Triggers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Repository) AWSCloudFormationType() string { return "AWS::CodeCommit::Repository" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Repository) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Repository) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Repository) UnmarshalJSON(b []byte) error { *r = Repository(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codecommit/aws-codecommit-repository_code.go b/cloudformation/codecommit/aws-codecommit-repository_code.go index d1f97c2dc1..149886e295 100644 --- a/cloudformation/codecommit/aws-codecommit-repository_code.go +++ b/cloudformation/codecommit/aws-codecommit-repository_code.go @@ -1,7 +1,7 @@ package codecommit import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Repository_Code AWS CloudFormation Resource (AWS::CodeCommit::Repository.Code) @@ -13,53 +13,17 @@ type Repository_Code struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-code.html#cfn-codecommit-repository-code-s3 S3 *Repository_S3 `json:"S3,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Repository_Code) AWSCloudFormationType() string { return "AWS::CodeCommit::Repository.Code" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_Code) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_Code) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_Code) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_Code) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_Code) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_Code) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go b/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go index 4de45fda47..28b4007c1e 100644 --- a/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go +++ b/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go @@ -1,7 +1,7 @@ package codecommit import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Repository_RepositoryTrigger AWS CloudFormation Resource (AWS::CodeCommit::Repository.RepositoryTrigger) @@ -33,53 +33,17 @@ type Repository_RepositoryTrigger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-repositorytrigger.html#cfn-codecommit-repository-repositorytrigger-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Repository_RepositoryTrigger) AWSCloudFormationType() string { return "AWS::CodeCommit::Repository.RepositoryTrigger" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_RepositoryTrigger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_RepositoryTrigger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_RepositoryTrigger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_RepositoryTrigger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_RepositoryTrigger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_RepositoryTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codecommit/aws-codecommit-repository_s3.go b/cloudformation/codecommit/aws-codecommit-repository_s3.go index 35ce12a915..b2a8800f1b 100644 --- a/cloudformation/codecommit/aws-codecommit-repository_s3.go +++ b/cloudformation/codecommit/aws-codecommit-repository_s3.go @@ -1,7 +1,7 @@ package codecommit import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Repository_S3 AWS CloudFormation Resource (AWS::CodeCommit::Repository.S3) @@ -23,53 +23,17 @@ type Repository_S3 struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codecommit-repository-s3.html#cfn-codecommit-repository-s3-objectversion ObjectVersion string `json:"ObjectVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Repository_S3) AWSCloudFormationType() string { return "AWS::CodeCommit::Repository.S3" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_S3) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_S3) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_S3) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_S3) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_S3) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_S3) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-application.go b/cloudformation/codedeploy/aws-codedeploy-application.go index f990a5a448..e49cc6bdfd 100644 --- a/cloudformation/codedeploy/aws-codedeploy-application.go +++ b/cloudformation/codedeploy/aws-codedeploy-application.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application AWS CloudFormation Resource (AWS::CodeDeploy::Application) @@ -22,14 +22,14 @@ type Application struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html#cfn-codedeploy-application-computeplatform ComputePlatform string `json:"ComputePlatform,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Application) AWSCloudFormationType() string { return "AWS::CodeDeploy::Application" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Application) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Application) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Application) UnmarshalJSON(b []byte) error { *r = Application(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go index 5dcd658a5f..74b39f274a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentConfig AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentConfig) @@ -22,14 +22,14 @@ type DeploymentConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts MinimumHealthyHosts *DeploymentConfig_MinimumHealthyHosts `json:"MinimumHealthyHosts,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *DeploymentConfig) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentConfig" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DeploymentConfig) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r DeploymentConfig) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *DeploymentConfig) UnmarshalJSON(b []byte) error { *r = DeploymentConfig(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go index 162fe588fb..4939e506fc 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentConfig_MinimumHealthyHosts AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHosts) @@ -18,53 +18,17 @@ type DeploymentConfig_MinimumHealthyHosts struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-value Value int `json:"Value"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentConfig_MinimumHealthyHosts) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentConfig.MinimumHealthyHosts" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentConfig_MinimumHealthyHosts) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentConfig_MinimumHealthyHosts) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentConfig_MinimumHealthyHosts) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentConfig_MinimumHealthyHosts) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentConfig_MinimumHealthyHosts) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentConfig_MinimumHealthyHosts) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go index 50115a1b3d..dddec17af8 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup) @@ -87,14 +87,14 @@ type DeploymentGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-triggerconfigurations TriggerConfigurations []DeploymentGroup_TriggerConfig `json:"TriggerConfigurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -102,42 +102,6 @@ func (r *DeploymentGroup) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DeploymentGroup) MarshalJSON() ([]byte, error) { @@ -151,9 +115,9 @@ func (r DeploymentGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -182,13 +146,13 @@ func (r *DeploymentGroup) UnmarshalJSON(b []byte) error { *r = DeploymentGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go index 06806feb99..9045fce659 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_Alarm AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.Alarm) @@ -13,53 +13,17 @@ type DeploymentGroup_Alarm struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarm.html#cfn-codedeploy-deploymentgroup-alarm-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_Alarm) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.Alarm" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_Alarm) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_Alarm) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_Alarm) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_Alarm) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_Alarm) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_Alarm) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go index 9822dc8ceb..bdd0308844 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_AlarmConfiguration AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.AlarmConfiguration) @@ -23,53 +23,17 @@ type DeploymentGroup_AlarmConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-alarmconfiguration.html#cfn-codedeploy-deploymentgroup-alarmconfiguration-ignorepollalarmfailure IgnorePollAlarmFailure bool `json:"IgnorePollAlarmFailure,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_AlarmConfiguration) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.AlarmConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_AlarmConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_AlarmConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_AlarmConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_AlarmConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_AlarmConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_AlarmConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go index 2c2d524c47..737f2b0b9b 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_AutoRollbackConfiguration AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.AutoRollbackConfiguration) @@ -18,53 +18,17 @@ type DeploymentGroup_AutoRollbackConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-autorollbackconfiguration.html#cfn-codedeploy-deploymentgroup-autorollbackconfiguration-events Events []string `json:"Events,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_AutoRollbackConfiguration) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.AutoRollbackConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_AutoRollbackConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_AutoRollbackConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_AutoRollbackConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_AutoRollbackConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_AutoRollbackConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_AutoRollbackConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go index e11505529a..87353b0798 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_Deployment AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.Deployment) @@ -23,53 +23,17 @@ type DeploymentGroup_Deployment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision Revision *DeploymentGroup_RevisionLocation `json:"Revision,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_Deployment) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.Deployment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_Deployment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_Deployment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_Deployment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_Deployment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_Deployment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_Deployment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go index f1f5a4dc96..353cc4288a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_DeploymentStyle AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.DeploymentStyle) @@ -18,53 +18,17 @@ type DeploymentGroup_DeploymentStyle struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deploymentstyle.html#cfn-codedeploy-deploymentgroup-deploymentstyle-deploymenttype DeploymentType string `json:"DeploymentType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_DeploymentStyle) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.DeploymentStyle" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_DeploymentStyle) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_DeploymentStyle) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_DeploymentStyle) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_DeploymentStyle) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_DeploymentStyle) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_DeploymentStyle) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go index c202c439db..2dfd9225e1 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_EC2TagFilter AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.EC2TagFilter) @@ -23,53 +23,17 @@ type DeploymentGroup_EC2TagFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilter.html#cfn-codedeploy-deploymentgroup-ec2tagfilter-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_EC2TagFilter) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.EC2TagFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_EC2TagFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_EC2TagFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_EC2TagFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_EC2TagFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_EC2TagFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_EC2TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go index bbce5f0ebc..3299cf9e09 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_EC2TagSet AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.EC2TagSet) @@ -13,53 +13,17 @@ type DeploymentGroup_EC2TagSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagset.html#cfn-codedeploy-deploymentgroup-ec2tagset-ec2tagsetlist Ec2TagSetList []DeploymentGroup_EC2TagSetListObject `json:"Ec2TagSetList,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_EC2TagSet) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.EC2TagSet" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_EC2TagSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_EC2TagSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_EC2TagSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_EC2TagSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_EC2TagSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_EC2TagSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go index 94db48d2d6..f90c934aa3 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_EC2TagSetListObject AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.EC2TagSetListObject) @@ -13,53 +13,17 @@ type DeploymentGroup_EC2TagSetListObject struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagsetlistobject.html#cfn-codedeploy-deploymentgroup-ec2tagsetlistobject-ec2taggroup Ec2TagGroup []DeploymentGroup_EC2TagFilter `json:"Ec2TagGroup,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_EC2TagSetListObject) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.EC2TagSetListObject" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_EC2TagSetListObject) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_EC2TagSetListObject) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_EC2TagSetListObject) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_EC2TagSetListObject) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_EC2TagSetListObject) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_EC2TagSetListObject) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go index 928b0f3320..6a0dea3fb4 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_ELBInfo AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.ELBInfo) @@ -13,53 +13,17 @@ type DeploymentGroup_ELBInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-elbinfo.html#cfn-codedeploy-deploymentgroup-elbinfo-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_ELBInfo) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.ELBInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_ELBInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_ELBInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_ELBInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_ELBInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_ELBInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_ELBInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go index b089e6fbf7..783fe07e8a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_GitHubLocation AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.GitHubLocation) @@ -18,53 +18,17 @@ type DeploymentGroup_GitHubLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-repository Repository string `json:"Repository,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_GitHubLocation) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.GitHubLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_GitHubLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_GitHubLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_GitHubLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_GitHubLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_GitHubLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_GitHubLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go index 4ee9bf5ea0..7fd8d06838 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_LoadBalancerInfo AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.LoadBalancerInfo) @@ -18,53 +18,17 @@ type DeploymentGroup_LoadBalancerInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-loadbalancerinfo.html#cfn-codedeploy-deploymentgroup-loadbalancerinfo-targetgroupinfolist TargetGroupInfoList []DeploymentGroup_TargetGroupInfo `json:"TargetGroupInfoList,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_LoadBalancerInfo) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.LoadBalancerInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_LoadBalancerInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_LoadBalancerInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_LoadBalancerInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_LoadBalancerInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_LoadBalancerInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_LoadBalancerInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go index 4119bb1ef9..a402a9a23a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_OnPremisesTagSet AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSet) @@ -13,53 +13,17 @@ type DeploymentGroup_OnPremisesTagSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagset.html#cfn-codedeploy-deploymentgroup-onpremisestagset-onpremisestagsetlist OnPremisesTagSetList []DeploymentGroup_OnPremisesTagSetListObject `json:"OnPremisesTagSetList,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_OnPremisesTagSet) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSet" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_OnPremisesTagSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_OnPremisesTagSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_OnPremisesTagSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_OnPremisesTagSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_OnPremisesTagSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_OnPremisesTagSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go index e91625f403..5d3afc320b 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_OnPremisesTagSetListObject AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSetListObject) @@ -13,53 +13,17 @@ type DeploymentGroup_OnPremisesTagSetListObject struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisestagsetlistobject.html#cfn-codedeploy-deploymentgroup-onpremisestagsetlistobject-onpremisestaggroup OnPremisesTagGroup []DeploymentGroup_TagFilter `json:"OnPremisesTagGroup,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_OnPremisesTagSetListObject) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.OnPremisesTagSetListObject" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_OnPremisesTagSetListObject) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_OnPremisesTagSetListObject) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_OnPremisesTagSetListObject) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_OnPremisesTagSetListObject) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_OnPremisesTagSetListObject) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_OnPremisesTagSetListObject) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go index 31118b03ac..d7cffb47a8 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_RevisionLocation AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.RevisionLocation) @@ -23,53 +23,17 @@ type DeploymentGroup_RevisionLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location S3Location *DeploymentGroup_S3Location `json:"S3Location,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_RevisionLocation) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.RevisionLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_RevisionLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_RevisionLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_RevisionLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_RevisionLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_RevisionLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_RevisionLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go index 26bb5dfcd6..dd2a7f03ab 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_S3Location AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.S3Location) @@ -33,53 +33,17 @@ type DeploymentGroup_S3Location struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-value Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_S3Location) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.S3Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_S3Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_S3Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_S3Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_S3Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_S3Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go index 5aadcf86c5..20ee0a5293 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_TagFilter AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TagFilter) @@ -23,53 +23,17 @@ type DeploymentGroup_TagFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-tagfilter.html#cfn-codedeploy-deploymentgroup-tagfilter-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_TagFilter) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.TagFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_TagFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_TagFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_TagFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_TagFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_TagFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go index c4fa5cc376..b4aa7d5f8c 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_TargetGroupInfo AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TargetGroupInfo) @@ -13,53 +13,17 @@ type DeploymentGroup_TargetGroupInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-targetgroupinfo.html#cfn-codedeploy-deploymentgroup-targetgroupinfo-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_TargetGroupInfo) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.TargetGroupInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_TargetGroupInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_TargetGroupInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_TargetGroupInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_TargetGroupInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_TargetGroupInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_TargetGroupInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go index 0378c978b2..a71414203a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go @@ -1,7 +1,7 @@ package codedeploy import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeploymentGroup_TriggerConfig AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TriggerConfig) @@ -23,53 +23,17 @@ type DeploymentGroup_TriggerConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggertargetarn TriggerTargetArn string `json:"TriggerTargetArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeploymentGroup_TriggerConfig) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.TriggerConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_TriggerConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeploymentGroup_TriggerConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_TriggerConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeploymentGroup_TriggerConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_TriggerConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeploymentGroup_TriggerConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype.go index 54a7a82c8d..e8bf9cfbc9 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // CustomActionType AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType) @@ -42,19 +43,24 @@ type CustomActionType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-settings Settings *CustomActionType_Settings `json:"Settings,omitempty"` + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-tags + Tags []tags.Tag `json:"Tags,omitempty"` + // Version AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-customactiontype.html#cfn-codepipeline-customactiontype-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +68,6 @@ func (r *CustomActionType) AWSCloudFormationType() string { return "AWS::CodePipeline::CustomActionType" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CustomActionType) MarshalJSON() ([]byte, error) { @@ -111,9 +81,9 @@ func (r CustomActionType) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +112,13 @@ func (r *CustomActionType) UnmarshalJSON(b []byte) error { *r = CustomActionType(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go index b694660993..c1d22d6ae1 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CustomActionType_ArtifactDetails AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType.ArtifactDetails) @@ -18,53 +18,17 @@ type CustomActionType_ArtifactDetails struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-artifactdetails.html#cfn-codepipeline-customactiontype-artifactdetails-minimumcount MinimumCount int `json:"MinimumCount"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CustomActionType_ArtifactDetails) AWSCloudFormationType() string { return "AWS::CodePipeline::CustomActionType.ArtifactDetails" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType_ArtifactDetails) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType_ArtifactDetails) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType_ArtifactDetails) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType_ArtifactDetails) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType_ArtifactDetails) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType_ArtifactDetails) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go index ad2cb37b27..199606417e 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CustomActionType_ConfigurationProperties AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType.ConfigurationProperties) @@ -43,53 +43,17 @@ type CustomActionType_ConfigurationProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-configurationproperties.html#cfn-codepipeline-customactiontype-configurationproperties-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CustomActionType_ConfigurationProperties) AWSCloudFormationType() string { return "AWS::CodePipeline::CustomActionType.ConfigurationProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType_ConfigurationProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType_ConfigurationProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType_ConfigurationProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType_ConfigurationProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType_ConfigurationProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType_ConfigurationProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go index 73442a8800..41761208bb 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CustomActionType_Settings AWS CloudFormation Resource (AWS::CodePipeline::CustomActionType.Settings) @@ -28,53 +28,17 @@ type CustomActionType_Settings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-customactiontype-settings.html#cfn-codepipeline-customactiontype-settings-thirdpartyconfigurationurl ThirdPartyConfigurationUrl string `json:"ThirdPartyConfigurationUrl,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CustomActionType_Settings) AWSCloudFormationType() string { return "AWS::CodePipeline::CustomActionType.Settings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType_Settings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomActionType_Settings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType_Settings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomActionType_Settings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType_Settings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomActionType_Settings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline.go b/cloudformation/codepipeline/aws-codepipeline-pipeline.go index fa0d17fa0c..2edd10cbfa 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Pipeline AWS CloudFormation Resource (AWS::CodePipeline::Pipeline) @@ -47,14 +48,19 @@ type Pipeline struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-stages Stages []Pipeline_StageDeclaration `json:"Stages,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#cfn-codepipeline-pipeline-tags + Tags []tags.Tag `json:"Tags,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +68,6 @@ func (r *Pipeline) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Pipeline) MarshalJSON() ([]byte, error) { @@ -111,9 +81,9 @@ func (r Pipeline) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +112,13 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { *r = Pipeline(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go index 37cf7fbbd8..bb83526d35 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ActionDeclaration AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ActionDeclaration) @@ -28,6 +28,11 @@ type Pipeline_ActionDeclaration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-name Name string `json:"Name,omitempty"` + // Namespace AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-actiondeclaration-namespace + Namespace string `json:"Namespace,omitempty"` + // OutputArtifacts AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-outputartifacts @@ -48,53 +53,17 @@ type Pipeline_ActionDeclaration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-runorder RunOrder int `json:"RunOrder,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ActionDeclaration) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.ActionDeclaration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ActionDeclaration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ActionDeclaration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ActionDeclaration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ActionDeclaration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ActionDeclaration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ActionDeclaration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go index 2494685fd0..cc435de9f1 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ActionTypeId AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ActionTypeId) @@ -28,53 +28,17 @@ type Pipeline_ActionTypeId struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-actiontypeid.html#cfn-codepipeline-pipeline-stages-actions-actiontypeid-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ActionTypeId) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.ActionTypeId" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ActionTypeId) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ActionTypeId) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ActionTypeId) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ActionTypeId) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ActionTypeId) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ActionTypeId) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go index d27db97687..a862822072 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ArtifactStore AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ArtifactStore) @@ -23,53 +23,17 @@ type Pipeline_ArtifactStore struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ArtifactStore) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.ArtifactStore" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ArtifactStore) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ArtifactStore) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ArtifactStore) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ArtifactStore) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ArtifactStore) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ArtifactStore) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go index d252bda168..d831d555b8 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ArtifactStoreMap AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.ArtifactStoreMap) @@ -18,53 +18,17 @@ type Pipeline_ArtifactStoreMap struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstoremap.html#cfn-codepipeline-pipeline-artifactstoremap-region Region string `json:"Region,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ArtifactStoreMap) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.ArtifactStoreMap" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ArtifactStoreMap) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ArtifactStoreMap) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ArtifactStoreMap) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ArtifactStoreMap) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ArtifactStoreMap) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ArtifactStoreMap) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go index 60d693fd69..1a14dfac6c 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_BlockerDeclaration AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.BlockerDeclaration) @@ -18,53 +18,17 @@ type Pipeline_BlockerDeclaration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-blockers.html#cfn-codepipeline-pipeline-stages-blockers-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_BlockerDeclaration) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.BlockerDeclaration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_BlockerDeclaration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_BlockerDeclaration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_BlockerDeclaration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_BlockerDeclaration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_BlockerDeclaration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_BlockerDeclaration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go index 6118b3b6fb..87e690aefe 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_EncryptionKey AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.EncryptionKey) @@ -18,53 +18,17 @@ type Pipeline_EncryptionKey struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore-encryptionkey.html#cfn-codepipeline-pipeline-artifactstore-encryptionkey-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_EncryptionKey) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.EncryptionKey" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_EncryptionKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_EncryptionKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_EncryptionKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_EncryptionKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_EncryptionKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_EncryptionKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go index a403bfcf25..7084d24f21 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_InputArtifact AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.InputArtifact) @@ -13,53 +13,17 @@ type Pipeline_InputArtifact struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-inputartifacts.html#cfn-codepipeline-pipeline-stages-actions-inputartifacts-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_InputArtifact) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.InputArtifact" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_InputArtifact) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_InputArtifact) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_InputArtifact) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_InputArtifact) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_InputArtifact) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_InputArtifact) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go index abc37722d4..2faac859f7 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_OutputArtifact AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.OutputArtifact) @@ -13,53 +13,17 @@ type Pipeline_OutputArtifact struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions-outputartifacts.html#cfn-codepipeline-pipeline-stages-actions-outputartifacts-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_OutputArtifact) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.OutputArtifact" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_OutputArtifact) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_OutputArtifact) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_OutputArtifact) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_OutputArtifact) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_OutputArtifact) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_OutputArtifact) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go index 57fc6ab3ef..d20151747e 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_StageDeclaration AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.StageDeclaration) @@ -23,53 +23,17 @@ type Pipeline_StageDeclaration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages.html#cfn-codepipeline-pipeline-stages-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_StageDeclaration) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.StageDeclaration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_StageDeclaration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_StageDeclaration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_StageDeclaration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_StageDeclaration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_StageDeclaration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_StageDeclaration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go index 25974f72d7..c3346f3e21 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_StageTransition AWS CloudFormation Resource (AWS::CodePipeline::Pipeline.StageTransition) @@ -18,53 +18,17 @@ type Pipeline_StageTransition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-disableinboundstagetransitions.html#cfn-codepipeline-pipeline-disableinboundstagetransitions-stagename StageName string `json:"StageName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_StageTransition) AWSCloudFormationType() string { return "AWS::CodePipeline::Pipeline.StageTransition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_StageTransition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_StageTransition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_StageTransition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_StageTransition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_StageTransition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_StageTransition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-webhook.go b/cloudformation/codepipeline/aws-codepipeline-webhook.go index cfb2866c00..f967b83df2 100644 --- a/cloudformation/codepipeline/aws-codepipeline-webhook.go +++ b/cloudformation/codepipeline/aws-codepipeline-webhook.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Webhook AWS CloudFormation Resource (AWS::CodePipeline::Webhook) @@ -52,14 +52,14 @@ type Webhook struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html#cfn-codepipeline-webhook-targetpipelineversion TargetPipelineVersion int `json:"TargetPipelineVersion"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *Webhook) AWSCloudFormationType() string { return "AWS::CodePipeline::Webhook" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Webhook) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Webhook) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Webhook) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Webhook) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Webhook) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Webhook) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Webhook) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r Webhook) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *Webhook) UnmarshalJSON(b []byte) error { *r = Webhook(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go index a158e80f5e..c37af7a99e 100644 --- a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go +++ b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Webhook_WebhookAuthConfiguration AWS CloudFormation Resource (AWS::CodePipeline::Webhook.WebhookAuthConfiguration) @@ -18,53 +18,17 @@ type Webhook_WebhookAuthConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookauthconfiguration.html#cfn-codepipeline-webhook-webhookauthconfiguration-secrettoken SecretToken string `json:"SecretToken,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Webhook_WebhookAuthConfiguration) AWSCloudFormationType() string { return "AWS::CodePipeline::Webhook.WebhookAuthConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Webhook_WebhookAuthConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Webhook_WebhookAuthConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Webhook_WebhookAuthConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Webhook_WebhookAuthConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Webhook_WebhookAuthConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Webhook_WebhookAuthConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go index 671f059ee3..4adf72d750 100644 --- a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go +++ b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go @@ -1,7 +1,7 @@ package codepipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Webhook_WebhookFilterRule AWS CloudFormation Resource (AWS::CodePipeline::Webhook.WebhookFilterRule) @@ -18,53 +18,17 @@ type Webhook_WebhookFilterRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-webhook-webhookfilterrule.html#cfn-codepipeline-webhook-webhookfilterrule-matchequals MatchEquals string `json:"MatchEquals,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Webhook_WebhookFilterRule) AWSCloudFormationType() string { return "AWS::CodePipeline::Webhook.WebhookFilterRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Webhook_WebhookFilterRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Webhook_WebhookFilterRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Webhook_WebhookFilterRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Webhook_WebhookFilterRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Webhook_WebhookFilterRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Webhook_WebhookFilterRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codestar/aws-codestar-githubrepository.go b/cloudformation/codestar/aws-codestar-githubrepository.go index e305249253..a9b189d46e 100644 --- a/cloudformation/codestar/aws-codestar-githubrepository.go +++ b/cloudformation/codestar/aws-codestar-githubrepository.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GitHubRepository AWS CloudFormation Resource (AWS::CodeStar::GitHubRepository) @@ -47,14 +47,14 @@ type GitHubRepository struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestar-githubrepository.html#cfn-codestar-githubrepository-repositoryowner RepositoryOwner string `json:"RepositoryOwner,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *GitHubRepository) AWSCloudFormationType() string { return "AWS::CodeStar::GitHubRepository" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GitHubRepository) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GitHubRepository) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GitHubRepository) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GitHubRepository) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GitHubRepository) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GitHubRepository) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GitHubRepository) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r GitHubRepository) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *GitHubRepository) UnmarshalJSON(b []byte) error { *r = GitHubRepository(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/codestar/aws-codestar-githubrepository_code.go b/cloudformation/codestar/aws-codestar-githubrepository_code.go index d189bdbd6f..f404ae19eb 100644 --- a/cloudformation/codestar/aws-codestar-githubrepository_code.go +++ b/cloudformation/codestar/aws-codestar-githubrepository_code.go @@ -1,7 +1,7 @@ package codestar import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GitHubRepository_Code AWS CloudFormation Resource (AWS::CodeStar::GitHubRepository.Code) @@ -13,53 +13,17 @@ type GitHubRepository_Code struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestar-githubrepository-code.html#cfn-codestar-githubrepository-code-s3 S3 *GitHubRepository_S3 `json:"S3,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GitHubRepository_Code) AWSCloudFormationType() string { return "AWS::CodeStar::GitHubRepository.Code" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GitHubRepository_Code) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GitHubRepository_Code) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GitHubRepository_Code) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GitHubRepository_Code) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GitHubRepository_Code) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GitHubRepository_Code) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codestar/aws-codestar-githubrepository_s3.go b/cloudformation/codestar/aws-codestar-githubrepository_s3.go index 533700fe04..584b5679ca 100644 --- a/cloudformation/codestar/aws-codestar-githubrepository_s3.go +++ b/cloudformation/codestar/aws-codestar-githubrepository_s3.go @@ -1,7 +1,7 @@ package codestar import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GitHubRepository_S3 AWS CloudFormation Resource (AWS::CodeStar::GitHubRepository.S3) @@ -23,53 +23,17 @@ type GitHubRepository_S3 struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestar-githubrepository-s3.html#cfn-codestar-githubrepository-s3-objectversion ObjectVersion string `json:"ObjectVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GitHubRepository_S3) AWSCloudFormationType() string { return "AWS::CodeStar::GitHubRepository.S3" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GitHubRepository_S3) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GitHubRepository_S3) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GitHubRepository_S3) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GitHubRepository_S3) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GitHubRepository_S3) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GitHubRepository_S3) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go new file mode 100644 index 0000000000..333089f8ff --- /dev/null +++ b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go @@ -0,0 +1,118 @@ +package codestarnotifications + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// NotificationRule AWS CloudFormation Resource (AWS::CodeStarNotifications::NotificationRule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html +type NotificationRule struct { + + // DetailType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-detailtype + DetailType string `json:"DetailType,omitempty"` + + // EventTypeIds AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-eventtypeids + EventTypeIds []string `json:"EventTypeIds,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-name + Name string `json:"Name,omitempty"` + + // Resource AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-resource + Resource string `json:"Resource,omitempty"` + + // Status AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-status + Status string `json:"Status,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-tags + Tags interface{} `json:"Tags,omitempty"` + + // Targets AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-targets + Targets []NotificationRule_Target `json:"Targets,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *NotificationRule) AWSCloudFormationType() string { + return "AWS::CodeStarNotifications::NotificationRule" +} + +// 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 NotificationRule) MarshalJSON() ([]byte, error) { + type Properties NotificationRule + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *NotificationRule) UnmarshalJSON(b []byte) error { + type Properties NotificationRule + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = NotificationRule(*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) + } + return nil +} diff --git a/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go new file mode 100644 index 0000000000..054b44c06f --- /dev/null +++ b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go @@ -0,0 +1,34 @@ +package codestarnotifications + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// NotificationRule_Target AWS CloudFormation Resource (AWS::CodeStarNotifications::NotificationRule.Target) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html +type NotificationRule_Target struct { + + // TargetAddress AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html#cfn-codestarnotifications-notificationrule-target-targetaddress + TargetAddress string `json:"TargetAddress,omitempty"` + + // TargetType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html#cfn-codestarnotifications-notificationrule-target-targettype + TargetType string `json:"TargetType,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *NotificationRule_Target) AWSCloudFormationType() string { + return "AWS::CodeStarNotifications::NotificationRule.Target" +} diff --git a/cloudformation/cognito/aws-cognito-identitypool.go b/cloudformation/cognito/aws-cognito-identitypool.go index 3a2154b4d4..2435ea352b 100644 --- a/cloudformation/cognito/aws-cognito-identitypool.go +++ b/cloudformation/cognito/aws-cognito-identitypool.go @@ -5,13 +5,18 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPool AWS CloudFormation Resource (AWS::Cognito::IdentityPool) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html type IdentityPool struct { + // AllowClassicFlow AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-allowclassicflow + AllowClassicFlow bool `json:"AllowClassicFlow,omitempty"` + // AllowUnauthenticatedIdentities AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-allowunauthenticatedidentities @@ -62,14 +67,14 @@ type IdentityPool struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html#cfn-cognito-identitypool-supportedloginproviders SupportedLoginProviders interface{} `json:"SupportedLoginProviders,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +82,6 @@ func (r *IdentityPool) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPool" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 IdentityPool) MarshalJSON() ([]byte, error) { @@ -126,9 +95,9 @@ func (r IdentityPool) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +126,13 @@ func (r *IdentityPool) UnmarshalJSON(b []byte) error { *r = IdentityPool(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go b/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go index 507c57a243..d761f13057 100644 --- a/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go +++ b/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPool_CognitoIdentityProvider AWS CloudFormation Resource (AWS::Cognito::IdentityPool.CognitoIdentityProvider) @@ -23,53 +23,17 @@ type IdentityPool_CognitoIdentityProvider struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitoidentityprovider.html#cfn-cognito-identitypool-cognitoidentityprovider-serversidetokencheck ServerSideTokenCheck bool `json:"ServerSideTokenCheck,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IdentityPool_CognitoIdentityProvider) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPool.CognitoIdentityProvider" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool_CognitoIdentityProvider) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool_CognitoIdentityProvider) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool_CognitoIdentityProvider) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool_CognitoIdentityProvider) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool_CognitoIdentityProvider) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool_CognitoIdentityProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go b/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go index 2b0afb1aec..82c120a88f 100644 --- a/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go +++ b/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPool_CognitoStreams AWS CloudFormation Resource (AWS::Cognito::IdentityPool.CognitoStreams) @@ -23,53 +23,17 @@ type IdentityPool_CognitoStreams struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html#cfn-cognito-identitypool-cognitostreams-streamingstatus StreamingStatus string `json:"StreamingStatus,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IdentityPool_CognitoStreams) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPool.CognitoStreams" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool_CognitoStreams) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool_CognitoStreams) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool_CognitoStreams) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool_CognitoStreams) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool_CognitoStreams) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool_CognitoStreams) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-identitypool_pushsync.go b/cloudformation/cognito/aws-cognito-identitypool_pushsync.go index efa5168611..eb6aa6b9ff 100644 --- a/cloudformation/cognito/aws-cognito-identitypool_pushsync.go +++ b/cloudformation/cognito/aws-cognito-identitypool_pushsync.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPool_PushSync AWS CloudFormation Resource (AWS::Cognito::IdentityPool.PushSync) @@ -18,53 +18,17 @@ type IdentityPool_PushSync struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-pushsync.html#cfn-cognito-identitypool-pushsync-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IdentityPool_PushSync) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPool.PushSync" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool_PushSync) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPool_PushSync) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool_PushSync) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPool_PushSync) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool_PushSync) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPool_PushSync) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go index fae3ff6ad2..f88ece6492 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPoolRoleAttachment AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment) @@ -27,14 +27,14 @@ type IdentityPoolRoleAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html#cfn-cognito-identitypoolroleattachment-roles Roles interface{} `json:"Roles,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *IdentityPoolRoleAttachment) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPoolRoleAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 IdentityPoolRoleAttachment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r IdentityPoolRoleAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *IdentityPoolRoleAttachment) UnmarshalJSON(b []byte) error { *r = IdentityPoolRoleAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go index 3c81dd950e..f198cf1ba2 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPoolRoleAttachment_MappingRule AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment.MappingRule) @@ -28,53 +28,17 @@ type IdentityPoolRoleAttachment_MappingRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-mappingrule.html#cfn-cognito-identitypoolroleattachment-mappingrule-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IdentityPoolRoleAttachment_MappingRule) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPoolRoleAttachment.MappingRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment_MappingRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment_MappingRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment_MappingRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment_MappingRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment_MappingRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment_MappingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go index ffde2815a1..2efc546b2f 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPoolRoleAttachment_RoleMapping AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment.RoleMapping) @@ -28,53 +28,17 @@ type IdentityPoolRoleAttachment_RoleMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html#cfn-cognito-identitypoolroleattachment-rolemapping-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IdentityPoolRoleAttachment_RoleMapping) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPoolRoleAttachment.RoleMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment_RoleMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment_RoleMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment_RoleMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment_RoleMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment_RoleMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment_RoleMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go index d05fe48555..83afbb552a 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IdentityPoolRoleAttachment_RulesConfigurationType AWS CloudFormation Resource (AWS::Cognito::IdentityPoolRoleAttachment.RulesConfigurationType) @@ -13,53 +13,17 @@ type IdentityPoolRoleAttachment_RulesConfigurationType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rulesconfigurationtype.html#cfn-cognito-identitypoolroleattachment-rulesconfigurationtype-rules Rules []IdentityPoolRoleAttachment_MappingRule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IdentityPoolRoleAttachment_RulesConfigurationType) AWSCloudFormationType() string { return "AWS::Cognito::IdentityPoolRoleAttachment.RulesConfigurationType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment_RulesConfigurationType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IdentityPoolRoleAttachment_RulesConfigurationType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment_RulesConfigurationType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IdentityPoolRoleAttachment_RulesConfigurationType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment_RulesConfigurationType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IdentityPoolRoleAttachment_RulesConfigurationType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool.go b/cloudformation/cognito/aws-cognito-userpool.go index 6d6feeb304..1bf4193bda 100644 --- a/cloudformation/cognito/aws-cognito-userpool.go +++ b/cloudformation/cognito/aws-cognito-userpool.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool AWS CloudFormation Resource (AWS::Cognito::UserPool) @@ -112,14 +112,14 @@ type UserPool struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-verificationmessagetemplate VerificationMessageTemplate *UserPool_VerificationMessageTemplate `json:"VerificationMessageTemplate,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -127,42 +127,6 @@ func (r *UserPool) AWSCloudFormationType() string { return "AWS::Cognito::UserPool" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPool) MarshalJSON() ([]byte, error) { @@ -176,9 +140,9 @@ func (r UserPool) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -207,13 +171,13 @@ func (r *UserPool) UnmarshalJSON(b []byte) error { *r = UserPool(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go b/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go index e7b1c09cfc..66f101d1d4 100644 --- a/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go +++ b/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_AdminCreateUserConfig AWS CloudFormation Resource (AWS::Cognito::UserPool.AdminCreateUserConfig) @@ -23,53 +23,17 @@ type UserPool_AdminCreateUserConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-admincreateuserconfig.html#cfn-cognito-userpool-admincreateuserconfig-unusedaccountvaliditydays UnusedAccountValidityDays int `json:"UnusedAccountValidityDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_AdminCreateUserConfig) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.AdminCreateUserConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_AdminCreateUserConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_AdminCreateUserConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_AdminCreateUserConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_AdminCreateUserConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_AdminCreateUserConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_AdminCreateUserConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go b/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go index 8fa3348c41..d13cd12b7d 100644 --- a/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_DeviceConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPool.DeviceConfiguration) @@ -18,53 +18,17 @@ type UserPool_DeviceConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html#cfn-cognito-userpool-deviceconfiguration-deviceonlyrememberedonuserprompt DeviceOnlyRememberedOnUserPrompt bool `json:"DeviceOnlyRememberedOnUserPrompt,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_DeviceConfiguration) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.DeviceConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_DeviceConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_DeviceConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_DeviceConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_DeviceConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_DeviceConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_DeviceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go b/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go index 617c121e68..7099c4b215 100644 --- a/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go @@ -1,18 +1,28 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_EmailConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPool.EmailConfiguration) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html type UserPool_EmailConfiguration struct { + // ConfigurationSet AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-configurationset + ConfigurationSet string `json:"ConfigurationSet,omitempty"` + // EmailSendingAccount AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-emailsendingaccount EmailSendingAccount string `json:"EmailSendingAccount,omitempty"` + // From AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-from + From string `json:"From,omitempty"` + // ReplyToEmailAddress AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-replytoemailaddress @@ -23,53 +33,17 @@ type UserPool_EmailConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-emailconfiguration.html#cfn-cognito-userpool-emailconfiguration-sourcearn SourceArn string `json:"SourceArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_EmailConfiguration) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.EmailConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_EmailConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_EmailConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_EmailConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_EmailConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_EmailConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_EmailConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go b/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go index f2b9125244..a556009064 100644 --- a/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go +++ b/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_InviteMessageTemplate AWS CloudFormation Resource (AWS::Cognito::UserPool.InviteMessageTemplate) @@ -23,53 +23,17 @@ type UserPool_InviteMessageTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-invitemessagetemplate.html#cfn-cognito-userpool-invitemessagetemplate-smsmessage SMSMessage string `json:"SMSMessage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_InviteMessageTemplate) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.InviteMessageTemplate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_InviteMessageTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_InviteMessageTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_InviteMessageTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_InviteMessageTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_InviteMessageTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_InviteMessageTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go b/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go index 03f526524a..3a39d00bef 100644 --- a/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go +++ b/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_LambdaConfig AWS CloudFormation Resource (AWS::Cognito::UserPool.LambdaConfig) @@ -58,53 +58,17 @@ type UserPool_LambdaConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-lambdaconfig.html#cfn-cognito-userpool-lambdaconfig-verifyauthchallengeresponse VerifyAuthChallengeResponse string `json:"VerifyAuthChallengeResponse,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_LambdaConfig) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.LambdaConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_LambdaConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_LambdaConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_LambdaConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_LambdaConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_LambdaConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_LambdaConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go b/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go index 5eb1987ca7..e9a22db2a0 100644 --- a/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go +++ b/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_NumberAttributeConstraints AWS CloudFormation Resource (AWS::Cognito::UserPool.NumberAttributeConstraints) @@ -18,53 +18,17 @@ type UserPool_NumberAttributeConstraints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-numberattributeconstraints.html#cfn-cognito-userpool-numberattributeconstraints-minvalue MinValue string `json:"MinValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_NumberAttributeConstraints) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.NumberAttributeConstraints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_NumberAttributeConstraints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_NumberAttributeConstraints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_NumberAttributeConstraints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_NumberAttributeConstraints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_NumberAttributeConstraints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_NumberAttributeConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go b/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go index a57d36f435..b3b7a38db1 100644 --- a/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go +++ b/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_PasswordPolicy AWS CloudFormation Resource (AWS::Cognito::UserPool.PasswordPolicy) @@ -38,53 +38,17 @@ type UserPool_PasswordPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-passwordpolicy.html#cfn-cognito-userpool-passwordpolicy-temporarypasswordvaliditydays TemporaryPasswordValidityDays int `json:"TemporaryPasswordValidityDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_PasswordPolicy) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.PasswordPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_PasswordPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_PasswordPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_PasswordPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_PasswordPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_PasswordPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_PasswordPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_policies.go b/cloudformation/cognito/aws-cognito-userpool_policies.go index 54a2cfc48e..6760544387 100644 --- a/cloudformation/cognito/aws-cognito-userpool_policies.go +++ b/cloudformation/cognito/aws-cognito-userpool_policies.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_Policies AWS CloudFormation Resource (AWS::Cognito::UserPool.Policies) @@ -13,53 +13,17 @@ type UserPool_Policies struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html#cfn-cognito-userpool-policies-passwordpolicy PasswordPolicy *UserPool_PasswordPolicy `json:"PasswordPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_Policies) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.Policies" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_Policies) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_Policies) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_Policies) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_Policies) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_Policies) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_Policies) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go b/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go index cd947fd36d..7a67ca9384 100644 --- a/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go +++ b/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_SchemaAttribute AWS CloudFormation Resource (AWS::Cognito::UserPool.SchemaAttribute) @@ -43,53 +43,17 @@ type UserPool_SchemaAttribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-schemaattribute.html#cfn-cognito-userpool-schemaattribute-stringattributeconstraints StringAttributeConstraints *UserPool_StringAttributeConstraints `json:"StringAttributeConstraints,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_SchemaAttribute) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.SchemaAttribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_SchemaAttribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_SchemaAttribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_SchemaAttribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_SchemaAttribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_SchemaAttribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_SchemaAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go b/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go index e9145f5436..7ecebc68a4 100644 --- a/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_SmsConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPool.SmsConfiguration) @@ -18,53 +18,17 @@ type UserPool_SmsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-smsconfiguration.html#cfn-cognito-userpool-smsconfiguration-snscallerarn SnsCallerArn string `json:"SnsCallerArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_SmsConfiguration) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.SmsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_SmsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_SmsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_SmsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_SmsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_SmsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_SmsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go b/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go index 97f4c71924..9b00cdbf3c 100644 --- a/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go +++ b/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_StringAttributeConstraints AWS CloudFormation Resource (AWS::Cognito::UserPool.StringAttributeConstraints) @@ -18,53 +18,17 @@ type UserPool_StringAttributeConstraints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-stringattributeconstraints.html#cfn-cognito-userpool-stringattributeconstraints-minlength MinLength string `json:"MinLength,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_StringAttributeConstraints) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.StringAttributeConstraints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_StringAttributeConstraints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_StringAttributeConstraints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_StringAttributeConstraints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_StringAttributeConstraints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_StringAttributeConstraints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_StringAttributeConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go b/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go index 43b510909b..cfe145fd5e 100644 --- a/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go +++ b/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_UserPoolAddOns AWS CloudFormation Resource (AWS::Cognito::UserPool.UserPoolAddOns) @@ -13,53 +13,17 @@ type UserPool_UserPoolAddOns struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-userpooladdons.html#cfn-cognito-userpool-userpooladdons-advancedsecuritymode AdvancedSecurityMode string `json:"AdvancedSecurityMode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_UserPoolAddOns) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.UserPoolAddOns" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_UserPoolAddOns) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_UserPoolAddOns) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_UserPoolAddOns) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_UserPoolAddOns) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_UserPoolAddOns) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_UserPoolAddOns) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go b/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go index 2689e08e0b..4529d3eb23 100644 --- a/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go +++ b/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPool_VerificationMessageTemplate AWS CloudFormation Resource (AWS::Cognito::UserPool.VerificationMessageTemplate) @@ -38,53 +38,17 @@ type UserPool_VerificationMessageTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-verificationmessagetemplate.html#cfn-cognito-userpool-verificationmessagetemplate-smsmessage SmsMessage string `json:"SmsMessage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPool_VerificationMessageTemplate) AWSCloudFormationType() string { return "AWS::Cognito::UserPool.VerificationMessageTemplate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_VerificationMessageTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPool_VerificationMessageTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_VerificationMessageTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPool_VerificationMessageTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_VerificationMessageTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPool_VerificationMessageTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolclient.go b/cloudformation/cognito/aws-cognito-userpoolclient.go index a983ea74f5..28faec7afa 100644 --- a/cloudformation/cognito/aws-cognito-userpoolclient.go +++ b/cloudformation/cognito/aws-cognito-userpoolclient.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolClient AWS CloudFormation Resource (AWS::Cognito::UserPoolClient) @@ -62,6 +62,11 @@ type UserPoolClient struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-logouturls LogoutURLs []string `json:"LogoutURLs,omitempty"` + // PreventUserExistenceErrors AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-preventuserexistenceerrors + PreventUserExistenceErrors string `json:"PreventUserExistenceErrors,omitempty"` + // ReadAttributes AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-readattributes @@ -87,14 +92,14 @@ type UserPoolClient struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html#cfn-cognito-userpoolclient-writeattributes WriteAttributes []string `json:"WriteAttributes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -102,42 +107,6 @@ func (r *UserPoolClient) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolClient" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolClient) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolClient) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolClient) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolClient) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolClient) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolClient) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolClient) MarshalJSON() ([]byte, error) { @@ -151,9 +120,9 @@ func (r UserPoolClient) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -182,13 +151,13 @@ func (r *UserPoolClient) UnmarshalJSON(b []byte) error { *r = UserPoolClient(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go b/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go index 6b6a7b0c18..8e3287b0be 100644 --- a/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolClient_AnalyticsConfiguration AWS CloudFormation Resource (AWS::Cognito::UserPoolClient.AnalyticsConfiguration) @@ -28,53 +28,17 @@ type UserPoolClient_AnalyticsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolclient-analyticsconfiguration.html#cfn-cognito-userpoolclient-analyticsconfiguration-userdatashared UserDataShared bool `json:"UserDataShared,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolClient_AnalyticsConfiguration) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolClient.AnalyticsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolClient_AnalyticsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolClient_AnalyticsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolClient_AnalyticsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolClient_AnalyticsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolClient_AnalyticsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolClient_AnalyticsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpooldomain.go b/cloudformation/cognito/aws-cognito-userpooldomain.go index 97a57ed13d..c1dcbb6001 100644 --- a/cloudformation/cognito/aws-cognito-userpooldomain.go +++ b/cloudformation/cognito/aws-cognito-userpooldomain.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolDomain AWS CloudFormation Resource (AWS::Cognito::UserPoolDomain) @@ -27,14 +27,14 @@ type UserPoolDomain struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooldomain.html#cfn-cognito-userpooldomain-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *UserPoolDomain) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolDomain" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolDomain) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolDomain) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolDomain) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolDomain) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolDomain) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolDomain) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolDomain) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r UserPoolDomain) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *UserPoolDomain) UnmarshalJSON(b []byte) error { *r = UserPoolDomain(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go b/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go index 2e4f966f8c..6d10df62e2 100644 --- a/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go +++ b/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolDomain_CustomDomainConfigType AWS CloudFormation Resource (AWS::Cognito::UserPoolDomain.CustomDomainConfigType) @@ -13,53 +13,17 @@ type UserPoolDomain_CustomDomainConfigType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooldomain-customdomainconfigtype.html#cfn-cognito-userpooldomain-customdomainconfigtype-certificatearn CertificateArn string `json:"CertificateArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolDomain_CustomDomainConfigType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolDomain.CustomDomainConfigType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolDomain_CustomDomainConfigType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolDomain_CustomDomainConfigType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolDomain_CustomDomainConfigType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolDomain_CustomDomainConfigType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolDomain_CustomDomainConfigType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolDomain_CustomDomainConfigType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolgroup.go b/cloudformation/cognito/aws-cognito-userpoolgroup.go index 4f1d9fc6c2..9bafe725ac 100644 --- a/cloudformation/cognito/aws-cognito-userpoolgroup.go +++ b/cloudformation/cognito/aws-cognito-userpoolgroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolGroup AWS CloudFormation Resource (AWS::Cognito::UserPoolGroup) @@ -37,14 +37,14 @@ type UserPoolGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html#cfn-cognito-userpoolgroup-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *UserPoolGroup) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolGroup) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r UserPoolGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *UserPoolGroup) UnmarshalJSON(b []byte) error { *r = UserPoolGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go b/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go index 3fa990e23b..33d631cfe3 100644 --- a/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go +++ b/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolIdentityProvider AWS CloudFormation Resource (AWS::Cognito::UserPoolIdentityProvider) @@ -42,14 +42,14 @@ type UserPoolIdentityProvider struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolidentityprovider.html#cfn-cognito-userpoolidentityprovider-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *UserPoolIdentityProvider) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolIdentityProvider" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolIdentityProvider) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolIdentityProvider) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolIdentityProvider) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolIdentityProvider) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolIdentityProvider) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolIdentityProvider) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolIdentityProvider) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r UserPoolIdentityProvider) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *UserPoolIdentityProvider) UnmarshalJSON(b []byte) error { *r = UserPoolIdentityProvider(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolresourceserver.go b/cloudformation/cognito/aws-cognito-userpoolresourceserver.go index e82b7dfc43..7cb1773380 100644 --- a/cloudformation/cognito/aws-cognito-userpoolresourceserver.go +++ b/cloudformation/cognito/aws-cognito-userpoolresourceserver.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolResourceServer AWS CloudFormation Resource (AWS::Cognito::UserPoolResourceServer) @@ -32,14 +32,14 @@ type UserPoolResourceServer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *UserPoolResourceServer) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolResourceServer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolResourceServer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolResourceServer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolResourceServer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolResourceServer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolResourceServer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolResourceServer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolResourceServer) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r UserPoolResourceServer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *UserPoolResourceServer) UnmarshalJSON(b []byte) error { *r = UserPoolResourceServer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go b/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go index d0a7a4963c..4372a25df1 100644 --- a/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go +++ b/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolResourceServer_ResourceServerScopeType AWS CloudFormation Resource (AWS::Cognito::UserPoolResourceServer.ResourceServerScopeType) @@ -18,53 +18,17 @@ type UserPoolResourceServer_ResourceServerScopeType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolresourceserver-resourceserverscopetype.html#cfn-cognito-userpoolresourceserver-resourceserverscopetype-scopename ScopeName string `json:"ScopeName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolResourceServer_ResourceServerScopeType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolResourceServer.ResourceServerScopeType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolResourceServer_ResourceServerScopeType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolResourceServer_ResourceServerScopeType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolResourceServer_ResourceServerScopeType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolResourceServer_ResourceServerScopeType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolResourceServer_ResourceServerScopeType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolResourceServer_ResourceServerScopeType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go index ff04dbb7be..a282761db4 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment) @@ -37,14 +37,14 @@ type UserPoolRiskConfigurationAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolriskconfigurationattachment.html#cfn-cognito-userpoolriskconfigurationattachment-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *UserPoolRiskConfigurationAttachment) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolRiskConfigurationAttachment) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r UserPoolRiskConfigurationAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *UserPoolRiskConfigurationAttachment) UnmarshalJSON(b []byte) error { *r = UserPoolRiskConfigurationAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go index 9f8b547e7e..eef0b5dcf2 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverActionsType) @@ -23,53 +23,17 @@ type UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractionstype-mediumaction MediumAction *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType `json:"MediumAction,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverActionsType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go index 96b827bfb3..ef36b7b67e 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_AccountTakeoverActionType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverActionType) @@ -18,53 +18,17 @@ type UserPoolRiskConfigurationAttachment_AccountTakeoverActionType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-notify Notify bool `json:"Notify"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverActionType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverActionType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go index b261f000ea..c1b7cea036 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationType) @@ -18,53 +18,17 @@ type UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType st // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoverriskconfigurationtype-notifyconfiguration NotifyConfiguration *UserPoolRiskConfigurationAttachment_NotifyConfigurationType `json:"NotifyConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go index 9990f94909..98e8948de2 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsType) @@ -13,53 +13,17 @@ type UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType struc // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsactionstype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsactionstype-eventaction EventAction string `json:"EventAction,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go index 543d7c02c6..129a821511 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationType) @@ -18,53 +18,17 @@ type UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfiguration // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-compromisedcredentialsriskconfigurationtype-eventfilter EventFilter []string `json:"EventFilter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfigurationType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go index 0af2c240c8..0c5272ff39 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_NotifyConfigurationType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.NotifyConfigurationType) @@ -38,53 +38,17 @@ type UserPoolRiskConfigurationAttachment_NotifyConfigurationType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyconfigurationtype-sourcearn SourceArn string `json:"SourceArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.NotifyConfigurationType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_NotifyConfigurationType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go index 749b17b629..2dd9791f26 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_NotifyEmailType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.NotifyEmailType) @@ -23,53 +23,17 @@ type UserPoolRiskConfigurationAttachment_NotifyEmailType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-notifyemailtype.html#cfn-cognito-userpoolriskconfigurationattachment-notifyemailtype-textbody TextBody string `json:"TextBody,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.NotifyEmailType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_NotifyEmailType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go index 4ccbcceed5..6d4e1af50f 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType AWS CloudFormation Resource (AWS::Cognito::UserPoolRiskConfigurationAttachment.RiskExceptionConfigurationType) @@ -18,53 +18,17 @@ type UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype.html#cfn-cognito-userpoolriskconfigurationattachment-riskexceptionconfigurationtype-skippediprangelist SkippedIPRangeList []string `json:"SkippedIPRangeList,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolRiskConfigurationAttachment.RiskExceptionConfigurationType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go b/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go index fe7c393f6e..264c3383bc 100644 --- a/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go +++ b/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolUICustomizationAttachment AWS CloudFormation Resource (AWS::Cognito::UserPoolUICustomizationAttachment) @@ -27,14 +27,14 @@ type UserPoolUICustomizationAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluicustomizationattachment.html#cfn-cognito-userpooluicustomizationattachment-userpoolid UserPoolId string `json:"UserPoolId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *UserPoolUICustomizationAttachment) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolUICustomizationAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUICustomizationAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUICustomizationAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUICustomizationAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUICustomizationAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUICustomizationAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUICustomizationAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolUICustomizationAttachment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r UserPoolUICustomizationAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *UserPoolUICustomizationAttachment) UnmarshalJSON(b []byte) error { *r = UserPoolUICustomizationAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpooluser.go b/cloudformation/cognito/aws-cognito-userpooluser.go index bfef4b98ab..a234e6e933 100644 --- a/cloudformation/cognito/aws-cognito-userpooluser.go +++ b/cloudformation/cognito/aws-cognito-userpooluser.go @@ -5,13 +5,18 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolUser AWS CloudFormation Resource (AWS::Cognito::UserPoolUser) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html type UserPoolUser struct { + // ClientMetadata AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-clientmetadata + ClientMetadata interface{} `json:"ClientMetadata,omitempty"` + // DesiredDeliveryMediums AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-desireddeliverymediums @@ -47,14 +52,14 @@ type UserPoolUser struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpooluser.html#cfn-cognito-userpooluser-validationdata ValidationData []UserPoolUser_AttributeType `json:"ValidationData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +67,6 @@ func (r *UserPoolUser) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolUser" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUser) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUser) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUser) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUser) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUser) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUser) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolUser) MarshalJSON() ([]byte, error) { @@ -111,9 +80,9 @@ func (r UserPoolUser) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +111,13 @@ func (r *UserPoolUser) UnmarshalJSON(b []byte) error { *r = UserPoolUser(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go b/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go index 1efffb532c..82f0bfc665 100644 --- a/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go +++ b/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go @@ -1,7 +1,7 @@ package cognito import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolUser_AttributeType AWS CloudFormation Resource (AWS::Cognito::UserPoolUser.AttributeType) @@ -18,53 +18,17 @@ type UserPoolUser_AttributeType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html#cfn-cognito-userpooluser-attributetype-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *UserPoolUser_AttributeType) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolUser.AttributeType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUser_AttributeType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUser_AttributeType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUser_AttributeType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUser_AttributeType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUser_AttributeType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUser_AttributeType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go b/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go index 139492ccf4..934ce8edf7 100644 --- a/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go +++ b/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserPoolUserToGroupAttachment AWS CloudFormation Resource (AWS::Cognito::UserPoolUserToGroupAttachment) @@ -27,14 +27,14 @@ type UserPoolUserToGroupAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolusertogroupattachment.html#cfn-cognito-userpoolusertogroupattachment-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *UserPoolUserToGroupAttachment) AWSCloudFormationType() string { return "AWS::Cognito::UserPoolUserToGroupAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUserToGroupAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserPoolUserToGroupAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUserToGroupAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserPoolUserToGroupAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUserToGroupAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserPoolUserToGroupAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserPoolUserToGroupAttachment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r UserPoolUserToGroupAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *UserPoolUserToGroupAttachment) UnmarshalJSON(b []byte) error { *r = UserPoolUserToGroupAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-aggregationauthorization.go b/cloudformation/config/aws-config-aggregationauthorization.go index 1302dac45c..360457fd11 100644 --- a/cloudformation/config/aws-config-aggregationauthorization.go +++ b/cloudformation/config/aws-config-aggregationauthorization.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AggregationAuthorization AWS CloudFormation Resource (AWS::Config::AggregationAuthorization) @@ -22,14 +22,14 @@ type AggregationAuthorization struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedawsregion AuthorizedAwsRegion string `json:"AuthorizedAwsRegion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *AggregationAuthorization) AWSCloudFormationType() string { return "AWS::Config::AggregationAuthorization" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AggregationAuthorization) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AggregationAuthorization) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AggregationAuthorization) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AggregationAuthorization) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AggregationAuthorization) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AggregationAuthorization) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 AggregationAuthorization) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r AggregationAuthorization) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *AggregationAuthorization) UnmarshalJSON(b []byte) error { *r = AggregationAuthorization(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-configrule.go b/cloudformation/config/aws-config-configrule.go index fcfa2590ef..d655eceab7 100644 --- a/cloudformation/config/aws-config-configrule.go +++ b/cloudformation/config/aws-config-configrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigRule AWS CloudFormation Resource (AWS::Config::ConfigRule) @@ -42,14 +42,14 @@ type ConfigRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html#cfn-config-configrule-source Source *ConfigRule_Source `json:"Source,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *ConfigRule) AWSCloudFormationType() string { return "AWS::Config::ConfigRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigRule) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r ConfigRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *ConfigRule) UnmarshalJSON(b []byte) error { *r = ConfigRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-configrule_scope.go b/cloudformation/config/aws-config-configrule_scope.go index 555c48e9ed..ac019b674e 100644 --- a/cloudformation/config/aws-config-configrule_scope.go +++ b/cloudformation/config/aws-config-configrule_scope.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigRule_Scope AWS CloudFormation Resource (AWS::Config::ConfigRule.Scope) @@ -28,53 +28,17 @@ type ConfigRule_Scope struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-scope.html#cfn-config-configrule-scope-tagvalue TagValue string `json:"TagValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigRule_Scope) AWSCloudFormationType() string { return "AWS::Config::ConfigRule.Scope" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule_Scope) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule_Scope) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule_Scope) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule_Scope) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule_Scope) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule_Scope) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-configrule_source.go b/cloudformation/config/aws-config-configrule_source.go index 37fea2f5fc..040c0698e1 100644 --- a/cloudformation/config/aws-config-configrule_source.go +++ b/cloudformation/config/aws-config-configrule_source.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigRule_Source AWS CloudFormation Resource (AWS::Config::ConfigRule.Source) @@ -23,53 +23,17 @@ type ConfigRule_Source struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source.html#cfn-config-configrule-source-sourceidentifier SourceIdentifier string `json:"SourceIdentifier,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigRule_Source) AWSCloudFormationType() string { return "AWS::Config::ConfigRule.Source" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule_Source) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule_Source) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule_Source) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule_Source) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule_Source) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-configrule_sourcedetail.go b/cloudformation/config/aws-config-configrule_sourcedetail.go index 620dde29ff..425cae0bfa 100644 --- a/cloudformation/config/aws-config-configrule_sourcedetail.go +++ b/cloudformation/config/aws-config-configrule_sourcedetail.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigRule_SourceDetail AWS CloudFormation Resource (AWS::Config::ConfigRule.SourceDetail) @@ -23,53 +23,17 @@ type ConfigRule_SourceDetail struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configrule-source-sourcedetails.html#cfn-config-configrule-source-sourcedetail-messagetype MessageType string `json:"MessageType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigRule_SourceDetail) AWSCloudFormationType() string { return "AWS::Config::ConfigRule.SourceDetail" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule_SourceDetail) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigRule_SourceDetail) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule_SourceDetail) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigRule_SourceDetail) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule_SourceDetail) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigRule_SourceDetail) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-configurationaggregator.go b/cloudformation/config/aws-config-configurationaggregator.go index e804837061..d8de268041 100644 --- a/cloudformation/config/aws-config-configurationaggregator.go +++ b/cloudformation/config/aws-config-configurationaggregator.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationAggregator AWS CloudFormation Resource (AWS::Config::ConfigurationAggregator) @@ -27,14 +27,14 @@ type ConfigurationAggregator struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html#cfn-config-configurationaggregator-organizationaggregationsource OrganizationAggregationSource *ConfigurationAggregator_OrganizationAggregationSource `json:"OrganizationAggregationSource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ConfigurationAggregator) AWSCloudFormationType() string { return "AWS::Config::ConfigurationAggregator" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAggregator) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAggregator) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAggregator) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAggregator) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAggregator) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAggregator) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationAggregator) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ConfigurationAggregator) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ConfigurationAggregator) UnmarshalJSON(b []byte) error { *r = ConfigurationAggregator(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go b/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go index aec9b7e142..f2412602ee 100644 --- a/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go +++ b/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationAggregator_AccountAggregationSource AWS CloudFormation Resource (AWS::Config::ConfigurationAggregator.AccountAggregationSource) @@ -23,53 +23,17 @@ type ConfigurationAggregator_AccountAggregationSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-accountaggregationsource.html#cfn-config-configurationaggregator-accountaggregationsource-awsregions AwsRegions []string `json:"AwsRegions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationAggregator_AccountAggregationSource) AWSCloudFormationType() string { return "AWS::Config::ConfigurationAggregator.AccountAggregationSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAggregator_AccountAggregationSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAggregator_AccountAggregationSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAggregator_AccountAggregationSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAggregator_AccountAggregationSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAggregator_AccountAggregationSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAggregator_AccountAggregationSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go b/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go index 4a14a3c500..8f04728782 100644 --- a/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go +++ b/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationAggregator_OrganizationAggregationSource AWS CloudFormation Resource (AWS::Config::ConfigurationAggregator.OrganizationAggregationSource) @@ -23,53 +23,17 @@ type ConfigurationAggregator_OrganizationAggregationSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationAggregator_OrganizationAggregationSource) AWSCloudFormationType() string { return "AWS::Config::ConfigurationAggregator.OrganizationAggregationSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAggregator_OrganizationAggregationSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationAggregator_OrganizationAggregationSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAggregator_OrganizationAggregationSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationAggregator_OrganizationAggregationSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAggregator_OrganizationAggregationSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationAggregator_OrganizationAggregationSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-configurationrecorder.go b/cloudformation/config/aws-config-configurationrecorder.go index 988bae9862..d263266a73 100644 --- a/cloudformation/config/aws-config-configurationrecorder.go +++ b/cloudformation/config/aws-config-configurationrecorder.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationRecorder AWS CloudFormation Resource (AWS::Config::ConfigurationRecorder) @@ -27,14 +27,14 @@ type ConfigurationRecorder struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationrecorder.html#cfn-config-configurationrecorder-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ConfigurationRecorder) AWSCloudFormationType() string { return "AWS::Config::ConfigurationRecorder" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationRecorder) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationRecorder) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationRecorder) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationRecorder) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationRecorder) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationRecorder) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationRecorder) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ConfigurationRecorder) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ConfigurationRecorder) UnmarshalJSON(b []byte) error { *r = ConfigurationRecorder(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go b/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go index 1493d195bb..9521e2c8af 100644 --- a/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go +++ b/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationRecorder_RecordingGroup AWS CloudFormation Resource (AWS::Config::ConfigurationRecorder.RecordingGroup) @@ -23,53 +23,17 @@ type ConfigurationRecorder_RecordingGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationrecorder-recordinggroup.html#cfn-config-configurationrecorder-recordinggroup-resourcetypes ResourceTypes []string `json:"ResourceTypes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationRecorder_RecordingGroup) AWSCloudFormationType() string { return "AWS::Config::ConfigurationRecorder.RecordingGroup" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationRecorder_RecordingGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationRecorder_RecordingGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationRecorder_RecordingGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationRecorder_RecordingGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationRecorder_RecordingGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationRecorder_RecordingGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-deliverychannel.go b/cloudformation/config/aws-config-deliverychannel.go index 25487164db..0d8c6c5ef0 100644 --- a/cloudformation/config/aws-config-deliverychannel.go +++ b/cloudformation/config/aws-config-deliverychannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryChannel AWS CloudFormation Resource (AWS::Config::DeliveryChannel) @@ -37,14 +37,14 @@ type DeliveryChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn SnsTopicARN string `json:"SnsTopicARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *DeliveryChannel) AWSCloudFormationType() string { return "AWS::Config::DeliveryChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DeliveryChannel) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r DeliveryChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *DeliveryChannel) UnmarshalJSON(b []byte) error { *r = DeliveryChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go b/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go index 54ab079aff..2fc2e7eb88 100644 --- a/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go +++ b/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryChannel_ConfigSnapshotDeliveryProperties AWS CloudFormation Resource (AWS::Config::DeliveryChannel.ConfigSnapshotDeliveryProperties) @@ -13,53 +13,17 @@ type DeliveryChannel_ConfigSnapshotDeliveryProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html#cfn-config-deliverychannel-configsnapshotdeliveryproperties-deliveryfrequency DeliveryFrequency string `json:"DeliveryFrequency,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) AWSCloudFormationType() string { return "AWS::Config::DeliveryChannel.ConfigSnapshotDeliveryProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryChannel_ConfigSnapshotDeliveryProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-organizationconfigrule.go b/cloudformation/config/aws-config-organizationconfigrule.go index 277e5c8aee..400510abad 100644 --- a/cloudformation/config/aws-config-organizationconfigrule.go +++ b/cloudformation/config/aws-config-organizationconfigrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // OrganizationConfigRule AWS CloudFormation Resource (AWS::Config::OrganizationConfigRule) @@ -32,14 +32,14 @@ type OrganizationConfigRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationmanagedrulemetadata OrganizationManagedRuleMetadata *OrganizationConfigRule_OrganizationManagedRuleMetadata `json:"OrganizationManagedRuleMetadata,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *OrganizationConfigRule) AWSCloudFormationType() string { return "AWS::Config::OrganizationConfigRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OrganizationConfigRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OrganizationConfigRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OrganizationConfigRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OrganizationConfigRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OrganizationConfigRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OrganizationConfigRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 OrganizationConfigRule) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r OrganizationConfigRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *OrganizationConfigRule) UnmarshalJSON(b []byte) error { *r = OrganizationConfigRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go b/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go index aa9c1eaa10..3cb75a0cd9 100644 --- a/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go +++ b/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // OrganizationConfigRule_OrganizationCustomRuleMetadata AWS CloudFormation Resource (AWS::Config::OrganizationConfigRule.OrganizationCustomRuleMetadata) @@ -53,53 +53,17 @@ type OrganizationConfigRule_OrganizationCustomRuleMetadata struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationcustomrulemetadata.html#cfn-config-organizationconfigrule-organizationcustomrulemetadata-tagvaluescope TagValueScope string `json:"TagValueScope,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) AWSCloudFormationType() string { return "AWS::Config::OrganizationConfigRule.OrganizationCustomRuleMetadata" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OrganizationConfigRule_OrganizationCustomRuleMetadata) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go b/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go index c966b01990..b17caa70a7 100644 --- a/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go +++ b/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // OrganizationConfigRule_OrganizationManagedRuleMetadata AWS CloudFormation Resource (AWS::Config::OrganizationConfigRule.OrganizationManagedRuleMetadata) @@ -48,53 +48,17 @@ type OrganizationConfigRule_OrganizationManagedRuleMetadata struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-organizationconfigrule-organizationmanagedrulemetadata.html#cfn-config-organizationconfigrule-organizationmanagedrulemetadata-tagvaluescope TagValueScope string `json:"TagValueScope,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) AWSCloudFormationType() string { return "AWS::Config::OrganizationConfigRule.OrganizationManagedRuleMetadata" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OrganizationConfigRule_OrganizationManagedRuleMetadata) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-remediationconfiguration.go b/cloudformation/config/aws-config-remediationconfiguration.go index 42bc0b22c7..7ef350b5af 100644 --- a/cloudformation/config/aws-config-remediationconfiguration.go +++ b/cloudformation/config/aws-config-remediationconfiguration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RemediationConfiguration AWS CloudFormation Resource (AWS::Config::RemediationConfiguration) @@ -62,14 +62,14 @@ type RemediationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-remediationconfiguration.html#cfn-config-remediationconfiguration-targetversion TargetVersion string `json:"TargetVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *RemediationConfiguration) AWSCloudFormationType() string { return "AWS::Config::RemediationConfiguration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RemediationConfiguration) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r RemediationConfiguration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *RemediationConfiguration) UnmarshalJSON(b []byte) error { *r = RemediationConfiguration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go b/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go index e1efb99ac9..be13b1e8c5 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go +++ b/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RemediationConfiguration_ExecutionControls AWS CloudFormation Resource (AWS::Config::RemediationConfiguration.ExecutionControls) @@ -13,53 +13,17 @@ type RemediationConfiguration_ExecutionControls struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-executioncontrols.html#cfn-config-remediationconfiguration-executioncontrols-ssmcontrols SsmControls *RemediationConfiguration_SsmControls `json:"SsmControls,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RemediationConfiguration_ExecutionControls) AWSCloudFormationType() string { return "AWS::Config::RemediationConfiguration.ExecutionControls" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_ExecutionControls) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_ExecutionControls) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_ExecutionControls) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_ExecutionControls) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_ExecutionControls) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_ExecutionControls) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go b/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go index d835004af3..18f67d40be 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go +++ b/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RemediationConfiguration_RemediationParameterValue AWS CloudFormation Resource (AWS::Config::RemediationConfiguration.RemediationParameterValue) @@ -18,53 +18,17 @@ type RemediationConfiguration_RemediationParameterValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-remediationparametervalue.html#cfn-config-remediationconfiguration-remediationparametervalue-staticvalue StaticValue *RemediationConfiguration_StaticValue `json:"StaticValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RemediationConfiguration_RemediationParameterValue) AWSCloudFormationType() string { return "AWS::Config::RemediationConfiguration.RemediationParameterValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_RemediationParameterValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_RemediationParameterValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_RemediationParameterValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_RemediationParameterValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_RemediationParameterValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_RemediationParameterValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go b/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go index 10e6fc7c1e..7f4e8e6b75 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go +++ b/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RemediationConfiguration_ResourceValue AWS CloudFormation Resource (AWS::Config::RemediationConfiguration.ResourceValue) @@ -13,53 +13,17 @@ type RemediationConfiguration_ResourceValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-resourcevalue.html#cfn-config-remediationconfiguration-resourcevalue-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RemediationConfiguration_ResourceValue) AWSCloudFormationType() string { return "AWS::Config::RemediationConfiguration.ResourceValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_ResourceValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_ResourceValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_ResourceValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_ResourceValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_ResourceValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_ResourceValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go b/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go index d81965051d..c8ae0f5764 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go +++ b/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RemediationConfiguration_SsmControls AWS CloudFormation Resource (AWS::Config::RemediationConfiguration.SsmControls) @@ -18,53 +18,17 @@ type RemediationConfiguration_SsmControls struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-ssmcontrols.html#cfn-config-remediationconfiguration-ssmcontrols-errorpercentage ErrorPercentage int `json:"ErrorPercentage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RemediationConfiguration_SsmControls) AWSCloudFormationType() string { return "AWS::Config::RemediationConfiguration.SsmControls" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_SsmControls) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_SsmControls) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_SsmControls) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_SsmControls) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_SsmControls) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_SsmControls) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go b/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go index c9e706e7a5..2ab32cd053 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go +++ b/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go @@ -1,7 +1,7 @@ package config import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RemediationConfiguration_StaticValue AWS CloudFormation Resource (AWS::Config::RemediationConfiguration.StaticValue) @@ -13,53 +13,17 @@ type RemediationConfiguration_StaticValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-remediationconfiguration-staticvalue.html#cfn-config-remediationconfiguration-staticvalue-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RemediationConfiguration_StaticValue) AWSCloudFormationType() string { return "AWS::Config::RemediationConfiguration.StaticValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_StaticValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RemediationConfiguration_StaticValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_StaticValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RemediationConfiguration_StaticValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_StaticValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RemediationConfiguration_StaticValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/custom_resource.go b/cloudformation/custom_resource.go index ec57b8356e..be119601c1 100644 --- a/cloudformation/custom_resource.go +++ b/cloudformation/custom_resource.go @@ -3,7 +3,7 @@ package cloudformation import ( "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline.go b/cloudformation/datapipeline/aws-datapipeline-pipeline.go index ea197a3785..244829279e 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline AWS CloudFormation Resource (AWS::DataPipeline::Pipeline) @@ -47,14 +47,14 @@ type Pipeline struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipeline-pipeline.html#cfn-datapipeline-pipeline-pipelinetags PipelineTags []Pipeline_PipelineTag `json:"PipelineTags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *Pipeline) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Pipeline) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r Pipeline) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { *r = Pipeline(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go index d69ae6649e..46ea084337 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go @@ -1,7 +1,7 @@ package datapipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Field AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.Field) @@ -23,53 +23,17 @@ type Pipeline_Field struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html#cfn-datapipeline-pipeline-pipelineobjects-fields-stringvalue StringValue string `json:"StringValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Field) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline.Field" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Field) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Field) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Field) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Field) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Field) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Field) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go index 013fa19f7c..e4c9d23f57 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go @@ -1,7 +1,7 @@ package datapipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ParameterAttribute AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.ParameterAttribute) @@ -18,53 +18,17 @@ type Pipeline_ParameterAttribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects-attributes.html#cfn-datapipeline-pipeline-parameterobjects-attribtues-stringvalue StringValue string `json:"StringValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ParameterAttribute) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline.ParameterAttribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ParameterAttribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ParameterAttribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ParameterAttribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ParameterAttribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ParameterAttribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ParameterAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go index 0410616ed9..c9b8aea0be 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go @@ -1,7 +1,7 @@ package datapipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ParameterObject AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.ParameterObject) @@ -18,53 +18,17 @@ type Pipeline_ParameterObject struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parameterobjects.html#cfn-datapipeline-pipeline-parameterobjects-id Id string `json:"Id,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ParameterObject) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline.ParameterObject" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ParameterObject) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ParameterObject) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ParameterObject) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ParameterObject) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ParameterObject) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ParameterObject) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go index f87d5b92f2..eb13390869 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go @@ -1,7 +1,7 @@ package datapipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_ParameterValue AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.ParameterValue) @@ -18,53 +18,17 @@ type Pipeline_ParameterValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-parametervalues.html#cfn-datapipeline-pipeline-parametervalues-stringvalue StringValue string `json:"StringValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_ParameterValue) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline.ParameterValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ParameterValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_ParameterValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ParameterValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_ParameterValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ParameterValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_ParameterValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go index 22a64f5612..4914d12ad0 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go @@ -1,7 +1,7 @@ package datapipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_PipelineObject AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.PipelineObject) @@ -23,53 +23,17 @@ type Pipeline_PipelineObject struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects.html#cfn-datapipeline-pipeline-pipelineobjects-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_PipelineObject) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline.PipelineObject" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_PipelineObject) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_PipelineObject) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_PipelineObject) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_PipelineObject) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_PipelineObject) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_PipelineObject) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go index 291ffa3347..8bdca266ca 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go @@ -1,7 +1,7 @@ package datapipeline import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_PipelineTag AWS CloudFormation Resource (AWS::DataPipeline::Pipeline.PipelineTag) @@ -18,53 +18,17 @@ type Pipeline_PipelineTag struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelinetags.html#cfn-datapipeline-pipeline-pipelinetags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_PipelineTag) AWSCloudFormationType() string { return "AWS::DataPipeline::Pipeline.PipelineTag" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_PipelineTag) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_PipelineTag) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_PipelineTag) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_PipelineTag) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_PipelineTag) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_PipelineTag) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dax/aws-dax-cluster.go b/cloudformation/dax/aws-dax-cluster.go index 44e3061bfb..938bd831f8 100644 --- a/cloudformation/dax/aws-dax-cluster.go +++ b/cloudformation/dax/aws-dax-cluster.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster AWS CloudFormation Resource (AWS::DAX::Cluster) @@ -77,14 +77,14 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-cluster.html#cfn-dax-cluster-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -92,42 +92,6 @@ func (r *Cluster) AWSCloudFormationType() string { return "AWS::DAX::Cluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Cluster) MarshalJSON() ([]byte, error) { @@ -141,9 +105,9 @@ func (r Cluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -172,13 +136,13 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { *r = Cluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dax/aws-dax-cluster_ssespecification.go b/cloudformation/dax/aws-dax-cluster_ssespecification.go index 4884a9b59f..cfcec3f184 100644 --- a/cloudformation/dax/aws-dax-cluster_ssespecification.go +++ b/cloudformation/dax/aws-dax-cluster_ssespecification.go @@ -1,7 +1,7 @@ package dax import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_SSESpecification AWS CloudFormation Resource (AWS::DAX::Cluster.SSESpecification) @@ -13,53 +13,17 @@ type Cluster_SSESpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dax-cluster-ssespecification.html#cfn-dax-cluster-ssespecification-sseenabled SSEEnabled bool `json:"SSEEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_SSESpecification) AWSCloudFormationType() string { return "AWS::DAX::Cluster.SSESpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_SSESpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_SSESpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_SSESpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_SSESpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_SSESpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_SSESpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dax/aws-dax-parametergroup.go b/cloudformation/dax/aws-dax-parametergroup.go index d50a697f27..43b999a735 100644 --- a/cloudformation/dax/aws-dax-parametergroup.go +++ b/cloudformation/dax/aws-dax-parametergroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ParameterGroup AWS CloudFormation Resource (AWS::DAX::ParameterGroup) @@ -27,14 +27,14 @@ type ParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues ParameterNameValues interface{} `json:"ParameterNameValues,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ParameterGroup) AWSCloudFormationType() string { return "AWS::DAX::ParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ParameterGroup) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ParameterGroup) UnmarshalJSON(b []byte) error { *r = ParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dax/aws-dax-subnetgroup.go b/cloudformation/dax/aws-dax-subnetgroup.go index 9b861f5fd1..8ae6233377 100644 --- a/cloudformation/dax/aws-dax-subnetgroup.go +++ b/cloudformation/dax/aws-dax-subnetgroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubnetGroup AWS CloudFormation Resource (AWS::DAX::SubnetGroup) @@ -27,14 +27,14 @@ type SubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-subnetgroup.html#cfn-dax-subnetgroup-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *SubnetGroup) AWSCloudFormationType() string { return "AWS::DAX::SubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubnetGroup) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r SubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *SubnetGroup) UnmarshalJSON(b []byte) error { *r = SubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/directoryservice/aws-directoryservice-microsoftad.go b/cloudformation/directoryservice/aws-directoryservice-microsoftad.go index a3b6a4f758..82e04c93db 100644 --- a/cloudformation/directoryservice/aws-directoryservice-microsoftad.go +++ b/cloudformation/directoryservice/aws-directoryservice-microsoftad.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MicrosoftAD AWS CloudFormation Resource (AWS::DirectoryService::MicrosoftAD) @@ -47,14 +47,14 @@ type MicrosoftAD struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html#cfn-directoryservice-microsoftad-vpcsettings VpcSettings *MicrosoftAD_VpcSettings `json:"VpcSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *MicrosoftAD) AWSCloudFormationType() string { return "AWS::DirectoryService::MicrosoftAD" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MicrosoftAD) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MicrosoftAD) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MicrosoftAD) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MicrosoftAD) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MicrosoftAD) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MicrosoftAD) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MicrosoftAD) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r MicrosoftAD) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *MicrosoftAD) UnmarshalJSON(b []byte) error { *r = MicrosoftAD(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go b/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go index 1d79bef908..5401e083ea 100644 --- a/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go +++ b/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go @@ -1,7 +1,7 @@ package directoryservice import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MicrosoftAD_VpcSettings AWS CloudFormation Resource (AWS::DirectoryService::MicrosoftAD.VpcSettings) @@ -18,53 +18,17 @@ type MicrosoftAD_VpcSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html#cfn-directoryservice-microsoftad-vpcsettings-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MicrosoftAD_VpcSettings) AWSCloudFormationType() string { return "AWS::DirectoryService::MicrosoftAD.VpcSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MicrosoftAD_VpcSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MicrosoftAD_VpcSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MicrosoftAD_VpcSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MicrosoftAD_VpcSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MicrosoftAD_VpcSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MicrosoftAD_VpcSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/directoryservice/aws-directoryservice-simplead.go b/cloudformation/directoryservice/aws-directoryservice-simplead.go index 63645e77cd..7ae182b2d1 100644 --- a/cloudformation/directoryservice/aws-directoryservice-simplead.go +++ b/cloudformation/directoryservice/aws-directoryservice-simplead.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimpleAD AWS CloudFormation Resource (AWS::DirectoryService::SimpleAD) @@ -52,14 +52,14 @@ type SimpleAD struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html#cfn-directoryservice-simplead-vpcsettings VpcSettings *SimpleAD_VpcSettings `json:"VpcSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *SimpleAD) AWSCloudFormationType() string { return "AWS::DirectoryService::SimpleAD" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleAD) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleAD) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleAD) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleAD) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleAD) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleAD) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SimpleAD) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r SimpleAD) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *SimpleAD) UnmarshalJSON(b []byte) error { *r = SimpleAD(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go b/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go index 5795cb9ad5..e5d275b54e 100644 --- a/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go +++ b/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go @@ -1,7 +1,7 @@ package directoryservice import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimpleAD_VpcSettings AWS CloudFormation Resource (AWS::DirectoryService::SimpleAD.VpcSettings) @@ -18,53 +18,17 @@ type SimpleAD_VpcSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-simplead-vpcsettings.html#cfn-directoryservice-simplead-vpcsettings-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimpleAD_VpcSettings) AWSCloudFormationType() string { return "AWS::DirectoryService::SimpleAD.VpcSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleAD_VpcSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleAD_VpcSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleAD_VpcSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleAD_VpcSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleAD_VpcSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleAD_VpcSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy.go index 4ce581c7f6..35752da43c 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LifecyclePolicy AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy) @@ -32,14 +32,14 @@ type LifecyclePolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-state State string `json:"State,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *LifecyclePolicy) AWSCloudFormationType() string { return "AWS::DLM::LifecyclePolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LifecyclePolicy) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r LifecyclePolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *LifecyclePolicy) UnmarshalJSON(b []byte) error { *r = LifecyclePolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go index 35a85040a7..5e1235b046 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go @@ -1,7 +1,7 @@ package dlm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LifecyclePolicy_CreateRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.CreateRule) @@ -23,53 +23,17 @@ type LifecyclePolicy_CreateRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-times Times []string `json:"Times,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LifecyclePolicy_CreateRule) AWSCloudFormationType() string { return "AWS::DLM::LifecyclePolicy.CreateRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_CreateRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_CreateRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_CreateRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_CreateRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_CreateRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_CreateRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go new file mode 100644 index 0000000000..202f4367ef --- /dev/null +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go @@ -0,0 +1,34 @@ +package dlm + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// LifecyclePolicy_FastRestoreRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.FastRestoreRule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html +type LifecyclePolicy_FastRestoreRule struct { + + // AvailabilityZones AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-availabilityzones + AvailabilityZones []string `json:"AvailabilityZones,omitempty"` + + // Count AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-count + Count int `json:"Count"` + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *LifecyclePolicy_FastRestoreRule) AWSCloudFormationType() string { + return "AWS::DLM::LifecyclePolicy.FastRestoreRule" +} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go index 1688c7bb86..d06ddfc1c7 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go @@ -1,7 +1,7 @@ package dlm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LifecyclePolicy_Parameters AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.Parameters) @@ -13,53 +13,17 @@ type LifecyclePolicy_Parameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-excludebootvolume ExcludeBootVolume bool `json:"ExcludeBootVolume,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LifecyclePolicy_Parameters) AWSCloudFormationType() string { return "AWS::DLM::LifecyclePolicy.Parameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_Parameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_Parameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_Parameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_Parameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_Parameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_Parameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go index dcfe3055e0..73080df33b 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go @@ -1,8 +1,8 @@ package dlm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // LifecyclePolicy_PolicyDetails AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.PolicyDetails) @@ -34,53 +34,17 @@ type LifecyclePolicy_PolicyDetails struct { // 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"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LifecyclePolicy_PolicyDetails) AWSCloudFormationType() string { return "AWS::DLM::LifecyclePolicy.PolicyDetails" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_PolicyDetails) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_PolicyDetails) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_PolicyDetails) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_PolicyDetails) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_PolicyDetails) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_PolicyDetails) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go index 20e8ff4fcd..0bcbe733a9 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go @@ -1,7 +1,7 @@ package dlm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LifecyclePolicy_RetainRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.RetainRule) @@ -13,53 +13,17 @@ type LifecyclePolicy_RetainRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count Count int `json:"Count"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LifecyclePolicy_RetainRule) AWSCloudFormationType() string { return "AWS::DLM::LifecyclePolicy.RetainRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_RetainRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_RetainRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_RetainRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_RetainRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_RetainRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_RetainRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go index 7d0f9dd0fb..74010c1e4b 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go @@ -1,8 +1,8 @@ package dlm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // LifecyclePolicy_Schedule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.Schedule) @@ -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"` + // 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 + FastRestoreRule *LifecyclePolicy_FastRestoreRule `json:"FastRestoreRule,omitempty"` + // Name AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-name @@ -39,53 +44,17 @@ type LifecyclePolicy_Schedule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-variabletags VariableTags []tags.Tag `json:"VariableTags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LifecyclePolicy_Schedule) AWSCloudFormationType() string { return "AWS::DLM::LifecyclePolicy.Schedule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_Schedule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LifecyclePolicy_Schedule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_Schedule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LifecyclePolicy_Schedule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_Schedule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LifecyclePolicy_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dms/aws-dms-certificate.go b/cloudformation/dms/aws-dms-certificate.go index ea95aa9492..e8094305d7 100644 --- a/cloudformation/dms/aws-dms-certificate.go +++ b/cloudformation/dms/aws-dms-certificate.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Certificate AWS CloudFormation Resource (AWS::DMS::Certificate) @@ -27,14 +27,14 @@ type Certificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificatewallet CertificateWallet string `json:"CertificateWallet,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Certificate) AWSCloudFormationType() string { return "AWS::DMS::Certificate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Certificate) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Certificate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { *r = Certificate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dms/aws-dms-endpoint.go b/cloudformation/dms/aws-dms-endpoint.go index 399b70adbe..b7a1e27a3f 100644 --- a/cloudformation/dms/aws-dms-endpoint.go +++ b/cloudformation/dms/aws-dms-endpoint.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Endpoint AWS CloudFormation Resource (AWS::DMS::Endpoint) @@ -103,14 +103,14 @@ type Endpoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-endpoint.html#cfn-dms-endpoint-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -118,42 +118,6 @@ func (r *Endpoint) AWSCloudFormationType() string { return "AWS::DMS::Endpoint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Endpoint) MarshalJSON() ([]byte, error) { @@ -167,9 +131,9 @@ func (r Endpoint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -198,13 +162,13 @@ func (r *Endpoint) UnmarshalJSON(b []byte) error { *r = Endpoint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go b/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go index 880c15b451..73a270e190 100644 --- a/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go +++ b/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go @@ -1,7 +1,7 @@ package dms import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Endpoint_DynamoDbSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.DynamoDbSettings) @@ -13,53 +13,17 @@ type Endpoint_DynamoDbSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html#cfn-dms-endpoint-dynamodbsettings-serviceaccessrolearn ServiceAccessRoleArn string `json:"ServiceAccessRoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Endpoint_DynamoDbSettings) AWSCloudFormationType() string { return "AWS::DMS::Endpoint.DynamoDbSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_DynamoDbSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_DynamoDbSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_DynamoDbSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_DynamoDbSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_DynamoDbSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_DynamoDbSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go b/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go index b56d7209b6..bee2164ac1 100644 --- a/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go +++ b/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go @@ -1,7 +1,7 @@ package dms import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Endpoint_ElasticsearchSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.ElasticsearchSettings) @@ -28,53 +28,17 @@ type Endpoint_ElasticsearchSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-elasticsearchsettings.html#cfn-dms-endpoint-elasticsearchsettings-serviceaccessrolearn ServiceAccessRoleArn string `json:"ServiceAccessRoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Endpoint_ElasticsearchSettings) AWSCloudFormationType() string { return "AWS::DMS::Endpoint.ElasticsearchSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_ElasticsearchSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_ElasticsearchSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_ElasticsearchSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_ElasticsearchSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_ElasticsearchSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_ElasticsearchSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dms/aws-dms-endpoint_kinesissettings.go b/cloudformation/dms/aws-dms-endpoint_kinesissettings.go index 06146d9828..2d60524fe7 100644 --- a/cloudformation/dms/aws-dms-endpoint_kinesissettings.go +++ b/cloudformation/dms/aws-dms-endpoint_kinesissettings.go @@ -1,7 +1,7 @@ package dms import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Endpoint_KinesisSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.KinesisSettings) @@ -23,53 +23,17 @@ type Endpoint_KinesisSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-kinesissettings.html#cfn-dms-endpoint-kinesissettings-streamarn StreamArn string `json:"StreamArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Endpoint_KinesisSettings) AWSCloudFormationType() string { return "AWS::DMS::Endpoint.KinesisSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_KinesisSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_KinesisSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_KinesisSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_KinesisSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_KinesisSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_KinesisSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go b/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go index 983223634b..26b43563df 100644 --- a/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go +++ b/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go @@ -1,7 +1,7 @@ package dms import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Endpoint_MongoDbSettings AWS CloudFormation Resource (AWS::DMS::Endpoint.MongoDbSettings) @@ -63,53 +63,17 @@ type Endpoint_MongoDbSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-mongodbsettings.html#cfn-dms-endpoint-mongodbsettings-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Endpoint_MongoDbSettings) AWSCloudFormationType() string { return "AWS::DMS::Endpoint.MongoDbSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_MongoDbSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_MongoDbSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_MongoDbSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_MongoDbSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_MongoDbSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_MongoDbSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dms/aws-dms-endpoint_s3settings.go b/cloudformation/dms/aws-dms-endpoint_s3settings.go index e9fe20359d..3942302014 100644 --- a/cloudformation/dms/aws-dms-endpoint_s3settings.go +++ b/cloudformation/dms/aws-dms-endpoint_s3settings.go @@ -1,7 +1,7 @@ package dms import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Endpoint_S3Settings AWS CloudFormation Resource (AWS::DMS::Endpoint.S3Settings) @@ -43,53 +43,17 @@ type Endpoint_S3Settings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-s3settings.html#cfn-dms-endpoint-s3settings-serviceaccessrolearn ServiceAccessRoleArn string `json:"ServiceAccessRoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Endpoint_S3Settings) AWSCloudFormationType() string { return "AWS::DMS::Endpoint.S3Settings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_S3Settings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint_S3Settings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_S3Settings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint_S3Settings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_S3Settings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint_S3Settings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dms/aws-dms-eventsubscription.go b/cloudformation/dms/aws-dms-eventsubscription.go index f02efdfe97..5ec1669172 100644 --- a/cloudformation/dms/aws-dms-eventsubscription.go +++ b/cloudformation/dms/aws-dms-eventsubscription.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // EventSubscription AWS CloudFormation Resource (AWS::DMS::EventSubscription) @@ -48,14 +48,14 @@ type EventSubscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html#cfn-dms-eventsubscription-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *EventSubscription) AWSCloudFormationType() string { return "AWS::DMS::EventSubscription" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventSubscription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventSubscription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventSubscription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventSubscription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventSubscription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventSubscription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EventSubscription) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r EventSubscription) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *EventSubscription) UnmarshalJSON(b []byte) error { *r = EventSubscription(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dms/aws-dms-replicationinstance.go b/cloudformation/dms/aws-dms-replicationinstance.go index f0afd377e4..48dd639a95 100644 --- a/cloudformation/dms/aws-dms-replicationinstance.go +++ b/cloudformation/dms/aws-dms-replicationinstance.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ReplicationInstance AWS CloudFormation Resource (AWS::DMS::ReplicationInstance) @@ -83,14 +83,14 @@ type ReplicationInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationinstance.html#cfn-dms-replicationinstance-vpcsecuritygroupids VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -98,42 +98,6 @@ func (r *ReplicationInstance) AWSCloudFormationType() string { return "AWS::DMS::ReplicationInstance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReplicationInstance) MarshalJSON() ([]byte, error) { @@ -147,9 +111,9 @@ func (r ReplicationInstance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -178,13 +142,13 @@ func (r *ReplicationInstance) UnmarshalJSON(b []byte) error { *r = ReplicationInstance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dms/aws-dms-replicationsubnetgroup.go b/cloudformation/dms/aws-dms-replicationsubnetgroup.go index ceb2fcc762..d9e61e766a 100644 --- a/cloudformation/dms/aws-dms-replicationsubnetgroup.go +++ b/cloudformation/dms/aws-dms-replicationsubnetgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ReplicationSubnetGroup AWS CloudFormation Resource (AWS::DMS::ReplicationSubnetGroup) @@ -33,14 +33,14 @@ type ReplicationSubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationsubnetgroup.html#cfn-dms-replicationsubnetgroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *ReplicationSubnetGroup) AWSCloudFormationType() string { return "AWS::DMS::ReplicationSubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationSubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationSubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationSubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationSubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationSubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReplicationSubnetGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r ReplicationSubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *ReplicationSubnetGroup) UnmarshalJSON(b []byte) error { *r = ReplicationSubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dms/aws-dms-replicationtask.go b/cloudformation/dms/aws-dms-replicationtask.go index 67608ca5a8..249f75a70d 100644 --- a/cloudformation/dms/aws-dms-replicationtask.go +++ b/cloudformation/dms/aws-dms-replicationtask.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ReplicationTask AWS CloudFormation Resource (AWS::DMS::ReplicationTask) @@ -68,14 +68,14 @@ type ReplicationTask struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html#cfn-dms-replicationtask-targetendpointarn TargetEndpointArn string `json:"TargetEndpointArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +83,6 @@ func (r *ReplicationTask) AWSCloudFormationType() string { return "AWS::DMS::ReplicationTask" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationTask) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationTask) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationTask) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationTask) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationTask) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationTask) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReplicationTask) MarshalJSON() ([]byte, error) { @@ -132,9 +96,9 @@ func (r ReplicationTask) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +127,13 @@ func (r *ReplicationTask) UnmarshalJSON(b []byte) error { *r = ReplicationTask(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbcluster.go b/cloudformation/docdb/aws-docdb-dbcluster.go index bbed0e06db..14c5ae9297 100644 --- a/cloudformation/docdb/aws-docdb-dbcluster.go +++ b/cloudformation/docdb/aws-docdb-dbcluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBCluster AWS CloudFormation Resource (AWS::DocDB::DBCluster) @@ -54,12 +54,12 @@ type DBCluster struct { KmsKeyId string `json:"KmsKeyId,omitempty"` // MasterUserPassword AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-masteruserpassword MasterUserPassword string `json:"MasterUserPassword,omitempty"` // MasterUsername AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-masterusername MasterUsername string `json:"MasterUsername,omitempty"` @@ -98,14 +98,14 @@ type DBCluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-vpcsecuritygroupids VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -113,42 +113,6 @@ func (r *DBCluster) AWSCloudFormationType() string { return "AWS::DocDB::DBCluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBCluster) MarshalJSON() ([]byte, error) { @@ -162,9 +126,9 @@ func (r DBCluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -193,13 +157,13 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { *r = DBCluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go b/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go index aca1cc54ca..807fe81196 100644 --- a/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go +++ b/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBClusterParameterGroup AWS CloudFormation Resource (AWS::DocDB::DBClusterParameterGroup) @@ -38,14 +38,14 @@ type DBClusterParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbclusterparametergroup.html#cfn-docdb-dbclusterparametergroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *DBClusterParameterGroup) AWSCloudFormationType() string { return "AWS::DocDB::DBClusterParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBClusterParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBClusterParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBClusterParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBClusterParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBClusterParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBClusterParameterGroup) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r DBClusterParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { *r = DBClusterParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbinstance.go b/cloudformation/docdb/aws-docdb-dbinstance.go index b71d59e454..0a6fb247fa 100644 --- a/cloudformation/docdb/aws-docdb-dbinstance.go +++ b/cloudformation/docdb/aws-docdb-dbinstance.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBInstance AWS CloudFormation Resource (AWS::DocDB::DBInstance) @@ -48,14 +48,14 @@ type DBInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbinstance.html#cfn-docdb-dbinstance-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *DBInstance) AWSCloudFormationType() string { return "AWS::DocDB::DBInstance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBInstance) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r DBInstance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { *r = DBInstance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbsubnetgroup.go b/cloudformation/docdb/aws-docdb-dbsubnetgroup.go index ccfe0ae514..e0541a0be6 100644 --- a/cloudformation/docdb/aws-docdb-dbsubnetgroup.go +++ b/cloudformation/docdb/aws-docdb-dbsubnetgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBSubnetGroup AWS CloudFormation Resource (AWS::DocDB::DBSubnetGroup) @@ -33,14 +33,14 @@ type DBSubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbsubnetgroup.html#cfn-docdb-dbsubnetgroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *DBSubnetGroup) AWSCloudFormationType() string { return "AWS::DocDB::DBSubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBSubnetGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r DBSubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { *r = DBSubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dynamodb/aws-dynamodb-table.go b/cloudformation/dynamodb/aws-dynamodb-table.go index 63240887e0..16c7881a5b 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table.go +++ b/cloudformation/dynamodb/aws-dynamodb-table.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Table AWS CloudFormation Resource (AWS::DynamoDB::Table) @@ -73,14 +73,14 @@ type Table struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-timetolivespecification TimeToLiveSpecification *Table_TimeToLiveSpecification `json:"TimeToLiveSpecification,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -88,42 +88,6 @@ func (r *Table) AWSCloudFormationType() string { return "AWS::DynamoDB::Table" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Table) MarshalJSON() ([]byte, error) { @@ -137,9 +101,9 @@ func (r Table) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -168,13 +132,13 @@ func (r *Table) UnmarshalJSON(b []byte) error { *r = Table(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go b/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go index d58fdddc6b..6f0271ff42 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_AttributeDefinition AWS CloudFormation Resource (AWS::DynamoDB::Table.AttributeDefinition) @@ -18,53 +18,17 @@ type Table_AttributeDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename-attributetype AttributeType string `json:"AttributeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_AttributeDefinition) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.AttributeDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_AttributeDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_AttributeDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_AttributeDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_AttributeDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_AttributeDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_AttributeDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go b/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go index 3de88242d7..098b780345 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_GlobalSecondaryIndex AWS CloudFormation Resource (AWS::DynamoDB::Table.GlobalSecondaryIndex) @@ -28,53 +28,17 @@ type Table_GlobalSecondaryIndex struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-provisionedthroughput ProvisionedThroughput *Table_ProvisionedThroughput `json:"ProvisionedThroughput,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_GlobalSecondaryIndex) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.GlobalSecondaryIndex" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_GlobalSecondaryIndex) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_GlobalSecondaryIndex) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_GlobalSecondaryIndex) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_GlobalSecondaryIndex) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_GlobalSecondaryIndex) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_GlobalSecondaryIndex) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go b/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go index 644db22b72..80f951f29b 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_KeySchema AWS CloudFormation Resource (AWS::DynamoDB::Table.KeySchema) @@ -18,53 +18,17 @@ type Table_KeySchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html#aws-properties-dynamodb-keyschema-keytype KeyType string `json:"KeyType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_KeySchema) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.KeySchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_KeySchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_KeySchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_KeySchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_KeySchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_KeySchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_KeySchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go b/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go index 37da416c7a..d3cc1e0bab 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_LocalSecondaryIndex AWS CloudFormation Resource (AWS::DynamoDB::Table.LocalSecondaryIndex) @@ -23,53 +23,17 @@ type Table_LocalSecondaryIndex struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-projection Projection *Table_Projection `json:"Projection,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_LocalSecondaryIndex) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.LocalSecondaryIndex" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_LocalSecondaryIndex) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_LocalSecondaryIndex) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_LocalSecondaryIndex) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_LocalSecondaryIndex) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_LocalSecondaryIndex) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_LocalSecondaryIndex) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go b/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go index b77a68f364..8c45a40654 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_PointInTimeRecoverySpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.PointInTimeRecoverySpecification) @@ -13,53 +13,17 @@ type Table_PointInTimeRecoverySpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html#cfn-dynamodb-table-pointintimerecoveryspecification-pointintimerecoveryenabled PointInTimeRecoveryEnabled bool `json:"PointInTimeRecoveryEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_PointInTimeRecoverySpecification) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.PointInTimeRecoverySpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_PointInTimeRecoverySpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_PointInTimeRecoverySpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_PointInTimeRecoverySpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_PointInTimeRecoverySpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_PointInTimeRecoverySpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_PointInTimeRecoverySpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_projection.go b/cloudformation/dynamodb/aws-dynamodb-table_projection.go index 2be86da25d..aac11435a4 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_projection.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_projection.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_Projection AWS CloudFormation Resource (AWS::DynamoDB::Table.Projection) @@ -18,53 +18,17 @@ type Table_Projection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html#cfn-dynamodb-projectionobj-projtype ProjectionType string `json:"ProjectionType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_Projection) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.Projection" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_Projection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_Projection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_Projection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_Projection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_Projection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_Projection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go b/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go index 098b4b9733..813825a0b0 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_ProvisionedThroughput AWS CloudFormation Resource (AWS::DynamoDB::Table.ProvisionedThroughput) @@ -18,53 +18,17 @@ type Table_ProvisionedThroughput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-writecapacityunits WriteCapacityUnits int64 `json:"WriteCapacityUnits"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_ProvisionedThroughput) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.ProvisionedThroughput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_ProvisionedThroughput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_ProvisionedThroughput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_ProvisionedThroughput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_ProvisionedThroughput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_ProvisionedThroughput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_ProvisionedThroughput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go b/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go index 84c92c7492..7fb09c93df 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_SSESpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.SSESpecification) @@ -23,53 +23,17 @@ type Table_SSESpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html#cfn-dynamodb-table-ssespecification-ssetype SSEType string `json:"SSEType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_SSESpecification) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.SSESpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_SSESpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_SSESpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_SSESpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_SSESpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_SSESpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_SSESpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go b/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go index 07737aee91..afd2e0b9c0 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_StreamSpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.StreamSpecification) @@ -13,53 +13,17 @@ type Table_StreamSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-streamspecification.html#cfn-dynamodb-streamspecification-streamviewtype StreamViewType string `json:"StreamViewType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_StreamSpecification) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.StreamSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_StreamSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_StreamSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_StreamSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_StreamSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_StreamSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_StreamSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go b/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go index 14ef1853ea..74bbce429b 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go @@ -1,7 +1,7 @@ package dynamodb import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_TimeToLiveSpecification AWS CloudFormation Resource (AWS::DynamoDB::Table.TimeToLiveSpecification) @@ -18,53 +18,17 @@ type Table_TimeToLiveSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html#cfn-dynamodb-timetolivespecification-enabled Enabled bool `json:"Enabled"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_TimeToLiveSpecification) AWSCloudFormationType() string { return "AWS::DynamoDB::Table.TimeToLiveSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_TimeToLiveSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_TimeToLiveSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_TimeToLiveSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_TimeToLiveSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_TimeToLiveSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_TimeToLiveSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-capacityreservation.go b/cloudformation/ec2/aws-ec2-capacityreservation.go index e36548697b..b950de5828 100644 --- a/cloudformation/ec2/aws-ec2-capacityreservation.go +++ b/cloudformation/ec2/aws-ec2-capacityreservation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CapacityReservation AWS CloudFormation Resource (AWS::EC2::CapacityReservation) @@ -67,14 +67,14 @@ type CapacityReservation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-capacityreservation.html#cfn-ec2-capacityreservation-tenancy Tenancy string `json:"Tenancy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -82,42 +82,6 @@ func (r *CapacityReservation) AWSCloudFormationType() string { return "AWS::EC2::CapacityReservation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CapacityReservation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CapacityReservation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CapacityReservation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CapacityReservation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CapacityReservation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CapacityReservation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CapacityReservation) MarshalJSON() ([]byte, error) { @@ -131,9 +95,9 @@ func (r CapacityReservation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -162,13 +126,13 @@ func (r *CapacityReservation) UnmarshalJSON(b []byte) error { *r = CapacityReservation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go b/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go index 2c1c1e4265..edfcc20889 100644 --- a/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go @@ -1,8 +1,8 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // CapacityReservation_TagSpecification AWS CloudFormation Resource (AWS::EC2::CapacityReservation.TagSpecification) @@ -19,53 +19,17 @@ type CapacityReservation_TagSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-capacityreservation-tagspecification.html#cfn-ec2-capacityreservation-tagspecification-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CapacityReservation_TagSpecification) AWSCloudFormationType() string { return "AWS::EC2::CapacityReservation.TagSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CapacityReservation_TagSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CapacityReservation_TagSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CapacityReservation_TagSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CapacityReservation_TagSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CapacityReservation_TagSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CapacityReservation_TagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go b/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go index 7f4f73c1b2..e6c50e5891 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go +++ b/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnAuthorizationRule AWS CloudFormation Resource (AWS::EC2::ClientVpnAuthorizationRule) @@ -37,14 +37,14 @@ type ClientVpnAuthorizationRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnauthorizationrule.html#cfn-ec2-clientvpnauthorizationrule-targetnetworkcidr TargetNetworkCidr string `json:"TargetNetworkCidr,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *ClientVpnAuthorizationRule) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnAuthorizationRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnAuthorizationRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnAuthorizationRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnAuthorizationRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnAuthorizationRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnAuthorizationRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnAuthorizationRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClientVpnAuthorizationRule) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r ClientVpnAuthorizationRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *ClientVpnAuthorizationRule) UnmarshalJSON(b []byte) error { *r = ClientVpnAuthorizationRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint.go index eea3a8876f..7caa4391bb 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnEndpoint AWS CloudFormation Resource (AWS::EC2::ClientVpnEndpoint) @@ -57,14 +57,14 @@ type ClientVpnEndpoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnendpoint.html#cfn-ec2-clientvpnendpoint-transportprotocol TransportProtocol string `json:"TransportProtocol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *ClientVpnEndpoint) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnEndpoint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClientVpnEndpoint) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r ClientVpnEndpoint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *ClientVpnEndpoint) UnmarshalJSON(b []byte) error { *r = ClientVpnEndpoint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go index 0545634095..14090c39d8 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnEndpoint_CertificateAuthenticationRequest AWS CloudFormation Resource (AWS::EC2::ClientVpnEndpoint.CertificateAuthenticationRequest) @@ -13,53 +13,17 @@ type ClientVpnEndpoint_CertificateAuthenticationRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-certificateauthenticationrequest.html#cfn-ec2-clientvpnendpoint-certificateauthenticationrequest-clientrootcertificatechainarn ClientRootCertificateChainArn string `json:"ClientRootCertificateChainArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnEndpoint.CertificateAuthenticationRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_CertificateAuthenticationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go index 58d54d9bf7..3ebd3856b8 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnEndpoint_ClientAuthenticationRequest AWS CloudFormation Resource (AWS::EC2::ClientVpnEndpoint.ClientAuthenticationRequest) @@ -23,53 +23,17 @@ type ClientVpnEndpoint_ClientAuthenticationRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.html#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ClientVpnEndpoint_ClientAuthenticationRequest) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnEndpoint.ClientAuthenticationRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_ClientAuthenticationRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_ClientAuthenticationRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_ClientAuthenticationRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_ClientAuthenticationRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_ClientAuthenticationRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_ClientAuthenticationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go index 44473a33a6..4a0bc7d8bc 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnEndpoint_ConnectionLogOptions AWS CloudFormation Resource (AWS::EC2::ClientVpnEndpoint.ConnectionLogOptions) @@ -23,53 +23,17 @@ type ClientVpnEndpoint_ConnectionLogOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-connectionlogoptions.html#cfn-ec2-clientvpnendpoint-connectionlogoptions-enabled Enabled bool `json:"Enabled"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ClientVpnEndpoint_ConnectionLogOptions) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnEndpoint.ConnectionLogOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_ConnectionLogOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_ConnectionLogOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_ConnectionLogOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_ConnectionLogOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_ConnectionLogOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_ConnectionLogOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go index cc8de3f4bd..2a4d74aedc 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnEndpoint_DirectoryServiceAuthenticationRequest AWS CloudFormation Resource (AWS::EC2::ClientVpnEndpoint.DirectoryServiceAuthenticationRequest) @@ -13,53 +13,17 @@ type ClientVpnEndpoint_DirectoryServiceAuthenticationRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-directoryserviceauthenticationrequest.html#cfn-ec2-clientvpnendpoint-directoryserviceauthenticationrequest-directoryid DirectoryId string `json:"DirectoryId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnEndpoint.DirectoryServiceAuthenticationRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_DirectoryServiceAuthenticationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go index 43634d2143..4eae4f32a7 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go @@ -1,8 +1,8 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ClientVpnEndpoint_TagSpecification AWS CloudFormation Resource (AWS::EC2::ClientVpnEndpoint.TagSpecification) @@ -19,53 +19,17 @@ type ClientVpnEndpoint_TagSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-tagspecification.html#cfn-ec2-clientvpnendpoint-tagspecification-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ClientVpnEndpoint_TagSpecification) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnEndpoint.TagSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_TagSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnEndpoint_TagSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_TagSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnEndpoint_TagSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_TagSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnEndpoint_TagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-clientvpnroute.go b/cloudformation/ec2/aws-ec2-clientvpnroute.go index 0ed454dc76..cf507636c7 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnroute.go +++ b/cloudformation/ec2/aws-ec2-clientvpnroute.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnRoute AWS CloudFormation Resource (AWS::EC2::ClientVpnRoute) @@ -32,14 +32,14 @@ type ClientVpnRoute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html#cfn-ec2-clientvpnroute-targetvpcsubnetid TargetVpcSubnetId string `json:"TargetVpcSubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *ClientVpnRoute) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnRoute" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnRoute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnRoute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnRoute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnRoute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnRoute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClientVpnRoute) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r ClientVpnRoute) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *ClientVpnRoute) UnmarshalJSON(b []byte) error { *r = ClientVpnRoute(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go b/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go index d954101876..5debdfea21 100644 --- a/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go +++ b/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClientVpnTargetNetworkAssociation AWS CloudFormation Resource (AWS::EC2::ClientVpnTargetNetworkAssociation) @@ -22,14 +22,14 @@ type ClientVpnTargetNetworkAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpntargetnetworkassociation.html#cfn-ec2-clientvpntargetnetworkassociation-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ClientVpnTargetNetworkAssociation) AWSCloudFormationType() string { return "AWS::EC2::ClientVpnTargetNetworkAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnTargetNetworkAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClientVpnTargetNetworkAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnTargetNetworkAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClientVpnTargetNetworkAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnTargetNetworkAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClientVpnTargetNetworkAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClientVpnTargetNetworkAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ClientVpnTargetNetworkAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ClientVpnTargetNetworkAssociation) UnmarshalJSON(b []byte) error { *r = ClientVpnTargetNetworkAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-customergateway.go b/cloudformation/ec2/aws-ec2-customergateway.go index 8011a50e24..ec2bba5170 100644 --- a/cloudformation/ec2/aws-ec2-customergateway.go +++ b/cloudformation/ec2/aws-ec2-customergateway.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // CustomerGateway AWS CloudFormation Resource (AWS::EC2::CustomerGateway) @@ -33,14 +33,14 @@ type CustomerGateway struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *CustomerGateway) AWSCloudFormationType() string { return "AWS::EC2::CustomerGateway" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomerGateway) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CustomerGateway) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomerGateway) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CustomerGateway) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomerGateway) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CustomerGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CustomerGateway) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r CustomerGateway) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *CustomerGateway) UnmarshalJSON(b []byte) error { *r = CustomerGateway(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-dhcpoptions.go b/cloudformation/ec2/aws-ec2-dhcpoptions.go index eeb8cade21..7b607d207f 100644 --- a/cloudformation/ec2/aws-ec2-dhcpoptions.go +++ b/cloudformation/ec2/aws-ec2-dhcpoptions.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DHCPOptions AWS CloudFormation Resource (AWS::EC2::DHCPOptions) @@ -43,14 +43,14 @@ type DHCPOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *DHCPOptions) AWSCloudFormationType() string { return "AWS::EC2::DHCPOptions" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DHCPOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DHCPOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DHCPOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DHCPOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DHCPOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DHCPOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DHCPOptions) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r DHCPOptions) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *DHCPOptions) UnmarshalJSON(b []byte) error { *r = DHCPOptions(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-ec2fleet.go b/cloudformation/ec2/aws-ec2-ec2fleet.go index 03f6a00e24..8f92ed73b3 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet AWS CloudFormation Resource (AWS::EC2::EC2Fleet) @@ -67,14 +67,14 @@ type EC2Fleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ec2fleet.html#cfn-ec2-ec2fleet-validuntil ValidUntil string `json:"ValidUntil,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -82,42 +82,6 @@ func (r *EC2Fleet) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EC2Fleet) MarshalJSON() ([]byte, error) { @@ -131,9 +95,9 @@ func (r EC2Fleet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -162,13 +126,13 @@ func (r *EC2Fleet) UnmarshalJSON(b []byte) error { *r = EC2Fleet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go index d09157bbcd..78eb5158be 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_FleetLaunchTemplateConfigRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.FleetLaunchTemplateConfigRequest) @@ -18,53 +18,17 @@ type EC2Fleet_FleetLaunchTemplateConfigRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateconfigrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateconfigrequest-overrides Overrides []EC2Fleet_FleetLaunchTemplateOverridesRequest `json:"Overrides,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.FleetLaunchTemplateConfigRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_FleetLaunchTemplateConfigRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go index 10cf7d007d..3482e5cdbd 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_FleetLaunchTemplateOverridesRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.FleetLaunchTemplateOverridesRequest) @@ -38,53 +38,17 @@ type EC2Fleet_FleetLaunchTemplateOverridesRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-weightedcapacity WeightedCapacity float64 `json:"WeightedCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.FleetLaunchTemplateOverridesRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_FleetLaunchTemplateOverridesRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go index baf582352b..51ce5a0f9f 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_FleetLaunchTemplateSpecificationRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.FleetLaunchTemplateSpecificationRequest) @@ -23,53 +23,17 @@ type EC2Fleet_FleetLaunchTemplateSpecificationRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.FleetLaunchTemplateSpecificationRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_FleetLaunchTemplateSpecificationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go index c9c8568d79..d95f5e6f96 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_OnDemandOptionsRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.OnDemandOptionsRequest) @@ -13,53 +13,17 @@ type EC2Fleet_OnDemandOptionsRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy AllocationStrategy string `json:"AllocationStrategy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_OnDemandOptionsRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.OnDemandOptionsRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_OnDemandOptionsRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_OnDemandOptionsRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_OnDemandOptionsRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_OnDemandOptionsRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_OnDemandOptionsRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_OnDemandOptionsRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go index 322a16e7b0..84f63d67e9 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_SpotOptionsRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.SpotOptionsRequest) @@ -23,53 +23,17 @@ type EC2Fleet_SpotOptionsRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-spotoptionsrequest.html#cfn-ec2-ec2fleet-spotoptionsrequest-instancepoolstousecount InstancePoolsToUseCount int `json:"InstancePoolsToUseCount,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_SpotOptionsRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.SpotOptionsRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_SpotOptionsRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_SpotOptionsRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_SpotOptionsRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_SpotOptionsRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_SpotOptionsRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_SpotOptionsRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go index c53f6c7d4a..d5e8deee43 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_TagRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.TagRequest) @@ -18,53 +18,17 @@ type EC2Fleet_TagRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-tagrequest.html#cfn-ec2-ec2fleet-tagrequest-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_TagRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.TagRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_TagRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_TagRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_TagRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_TagRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_TagRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_TagRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go b/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go index 2fc0670827..9ff6d0816c 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_TagSpecification AWS CloudFormation Resource (AWS::EC2::EC2Fleet.TagSpecification) @@ -18,53 +18,17 @@ type EC2Fleet_TagSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-tagspecification.html#cfn-ec2-ec2fleet-tagspecification-tags Tags []EC2Fleet_TagRequest `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_TagSpecification) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.TagSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_TagSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_TagSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_TagSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_TagSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_TagSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_TagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go index 12096b2fa2..738c643043 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EC2Fleet_TargetCapacitySpecificationRequest AWS CloudFormation Resource (AWS::EC2::EC2Fleet.TargetCapacitySpecificationRequest) @@ -28,53 +28,17 @@ type EC2Fleet_TargetCapacitySpecificationRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-targetcapacityspecificationrequest.html#cfn-ec2-ec2fleet-targetcapacityspecificationrequest-totaltargetcapacity TotalTargetCapacity int `json:"TotalTargetCapacity"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EC2Fleet_TargetCapacitySpecificationRequest) AWSCloudFormationType() string { return "AWS::EC2::EC2Fleet.TargetCapacitySpecificationRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_TargetCapacitySpecificationRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EC2Fleet_TargetCapacitySpecificationRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_TargetCapacitySpecificationRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EC2Fleet_TargetCapacitySpecificationRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_TargetCapacitySpecificationRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EC2Fleet_TargetCapacitySpecificationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go b/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go index f1c4e26ea4..7f000b8437 100644 --- a/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go +++ b/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EgressOnlyInternetGateway AWS CloudFormation Resource (AWS::EC2::EgressOnlyInternetGateway) @@ -17,14 +17,14 @@ type EgressOnlyInternetGateway struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-egressonlyinternetgateway.html#cfn-ec2-egressonlyinternetgateway-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *EgressOnlyInternetGateway) AWSCloudFormationType() string { return "AWS::EC2::EgressOnlyInternetGateway" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EgressOnlyInternetGateway) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EgressOnlyInternetGateway) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EgressOnlyInternetGateway) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EgressOnlyInternetGateway) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EgressOnlyInternetGateway) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EgressOnlyInternetGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EgressOnlyInternetGateway) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r EgressOnlyInternetGateway) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *EgressOnlyInternetGateway) UnmarshalJSON(b []byte) error { *r = EgressOnlyInternetGateway(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-eip.go b/cloudformation/ec2/aws-ec2-eip.go index ef57a12abb..78bb71569c 100644 --- a/cloudformation/ec2/aws-ec2-eip.go +++ b/cloudformation/ec2/aws-ec2-eip.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // EIP AWS CloudFormation Resource (AWS::EC2::EIP) @@ -27,14 +28,19 @@ type EIP struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-publicipv4pool PublicIpv4Pool string `json:"PublicIpv4Pool,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-tags + Tags []tags.Tag `json:"Tags,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +48,6 @@ func (r *EIP) AWSCloudFormationType() string { return "AWS::EC2::EIP" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EIP) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EIP) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EIP) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EIP) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EIP) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EIP) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EIP) MarshalJSON() ([]byte, error) { @@ -91,9 +61,9 @@ func (r EIP) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +92,13 @@ func (r *EIP) UnmarshalJSON(b []byte) error { *r = EIP(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-eipassociation.go b/cloudformation/ec2/aws-ec2-eipassociation.go index abe247583b..bbd6ee8d3b 100644 --- a/cloudformation/ec2/aws-ec2-eipassociation.go +++ b/cloudformation/ec2/aws-ec2-eipassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EIPAssociation AWS CloudFormation Resource (AWS::EC2::EIPAssociation) @@ -37,14 +37,14 @@ type EIPAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-PrivateIpAddress PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *EIPAssociation) AWSCloudFormationType() string { return "AWS::EC2::EIPAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EIPAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EIPAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EIPAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EIPAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EIPAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EIPAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EIPAssociation) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r EIPAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *EIPAssociation) UnmarshalJSON(b []byte) error { *r = EIPAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-flowlog.go b/cloudformation/ec2/aws-ec2-flowlog.go index 80e50c7a6d..9d5371e38f 100644 --- a/cloudformation/ec2/aws-ec2-flowlog.go +++ b/cloudformation/ec2/aws-ec2-flowlog.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FlowLog AWS CloudFormation Resource (AWS::EC2::FlowLog) @@ -47,14 +47,14 @@ type FlowLog struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-traffictype TrafficType string `json:"TrafficType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *FlowLog) AWSCloudFormationType() string { return "AWS::EC2::FlowLog" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FlowLog) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FlowLog) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FlowLog) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FlowLog) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FlowLog) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FlowLog) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FlowLog) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r FlowLog) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *FlowLog) UnmarshalJSON(b []byte) error { *r = FlowLog(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-host.go b/cloudformation/ec2/aws-ec2-host.go index c3ed1978f5..387312f602 100644 --- a/cloudformation/ec2/aws-ec2-host.go +++ b/cloudformation/ec2/aws-ec2-host.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Host AWS CloudFormation Resource (AWS::EC2::Host) @@ -32,14 +32,14 @@ type Host struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancetype InstanceType string `json:"InstanceType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Host) AWSCloudFormationType() string { return "AWS::EC2::Host" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Host) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Host) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Host) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Host) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Host) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Host) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Host) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Host) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Host) UnmarshalJSON(b []byte) error { *r = Host(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-instance.go b/cloudformation/ec2/aws-ec2-instance.go index cfa43b518d..3fa252de0c 100644 --- a/cloudformation/ec2/aws-ec2-instance.go +++ b/cloudformation/ec2/aws-ec2-instance.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Instance AWS CloudFormation Resource (AWS::EC2::Instance) @@ -188,17 +188,17 @@ type Instance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-volumes Volumes []Instance_Volume `json:"Volumes,omitempty"` - // _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *policies.CreationPolicy + // AWSCloudFormationCreationPolicy represents a CloudFormation CreationPolicy + AWSCloudFormationCreationPolicy *policies.CreationPolicy `json:"-"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -206,48 +206,6 @@ func (r *Instance) AWSCloudFormationType() string { return "AWS::EC2::Instance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - -// SetCreationPolicy applies an AWS CloudFormation CreationPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html -func (r *Instance) SetCreationPolicy(policy *policies.CreationPolicy) { - r._creationPolicy = policy -} - // 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 Instance) MarshalJSON() ([]byte, error) { @@ -263,11 +221,11 @@ func (r Instance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, - CreationPolicy: r._creationPolicy, + CreationPolicy: r.AWSCloudFormationCreationPolicy, }) } @@ -296,13 +254,13 @@ func (r *Instance) UnmarshalJSON(b []byte) error { *r = Instance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-instance_associationparameter.go b/cloudformation/ec2/aws-ec2-instance_associationparameter.go index f06586ff46..df9abbc88d 100644 --- a/cloudformation/ec2/aws-ec2-instance_associationparameter.go +++ b/cloudformation/ec2/aws-ec2-instance_associationparameter.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_AssociationParameter AWS CloudFormation Resource (AWS::EC2::Instance.AssociationParameter) @@ -18,53 +18,17 @@ type Instance_AssociationParameter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html#cfn-ec2-instance-ssmassociations-associationparameters-value Value []string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_AssociationParameter) AWSCloudFormationType() string { return "AWS::EC2::Instance.AssociationParameter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_AssociationParameter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_AssociationParameter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_AssociationParameter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_AssociationParameter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_AssociationParameter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_AssociationParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go b/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go index 28929e6c6f..6ff61ecc6d 100644 --- a/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go +++ b/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_BlockDeviceMapping AWS CloudFormation Resource (AWS::EC2::Instance.BlockDeviceMapping) @@ -28,53 +28,17 @@ type Instance_BlockDeviceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-virtualname VirtualName string `json:"VirtualName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_BlockDeviceMapping) AWSCloudFormationType() string { return "AWS::EC2::Instance.BlockDeviceMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_BlockDeviceMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_BlockDeviceMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_BlockDeviceMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_BlockDeviceMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_BlockDeviceMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_cpuoptions.go b/cloudformation/ec2/aws-ec2-instance_cpuoptions.go index bee8aa1897..f3efd00376 100644 --- a/cloudformation/ec2/aws-ec2-instance_cpuoptions.go +++ b/cloudformation/ec2/aws-ec2-instance_cpuoptions.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_CpuOptions AWS CloudFormation Resource (AWS::EC2::Instance.CpuOptions) @@ -18,53 +18,17 @@ type Instance_CpuOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-cpuoptions.html#cfn-ec2-instance-cpuoptions-threadspercore ThreadsPerCore int `json:"ThreadsPerCore,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_CpuOptions) AWSCloudFormationType() string { return "AWS::EC2::Instance.CpuOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_CpuOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_CpuOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_CpuOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_CpuOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_CpuOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_CpuOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_creditspecification.go b/cloudformation/ec2/aws-ec2-instance_creditspecification.go index 76b4601352..3a50e0802a 100644 --- a/cloudformation/ec2/aws-ec2-instance_creditspecification.go +++ b/cloudformation/ec2/aws-ec2-instance_creditspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_CreditSpecification AWS CloudFormation Resource (AWS::EC2::Instance.CreditSpecification) @@ -13,53 +13,17 @@ type Instance_CreditSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-creditspecification.html#cfn-ec2-instance-creditspecification-cpucredits CPUCredits string `json:"CPUCredits,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_CreditSpecification) AWSCloudFormationType() string { return "AWS::EC2::Instance.CreditSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_CreditSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_CreditSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_CreditSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_CreditSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_CreditSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_CreditSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_ebs.go b/cloudformation/ec2/aws-ec2-instance_ebs.go index 41ef45e7a2..c967708711 100644 --- a/cloudformation/ec2/aws-ec2-instance_ebs.go +++ b/cloudformation/ec2/aws-ec2-instance_ebs.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_Ebs AWS CloudFormation Resource (AWS::EC2::Instance.Ebs) @@ -43,53 +43,17 @@ type Instance_Ebs struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_Ebs) AWSCloudFormationType() string { return "AWS::EC2::Instance.Ebs" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_Ebs) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_Ebs) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_Ebs) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_Ebs) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_Ebs) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_Ebs) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go b/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go index b8b6bff511..0e320a7f98 100644 --- a/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go +++ b/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_ElasticGpuSpecification AWS CloudFormation Resource (AWS::EC2::Instance.ElasticGpuSpecification) @@ -13,53 +13,17 @@ type Instance_ElasticGpuSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html#cfn-ec2-instance-elasticgpuspecification-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_ElasticGpuSpecification) AWSCloudFormationType() string { return "AWS::EC2::Instance.ElasticGpuSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_ElasticGpuSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_ElasticGpuSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_ElasticGpuSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_ElasticGpuSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_ElasticGpuSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_ElasticGpuSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go b/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go index 9063c47c24..3b482ae42d 100644 --- a/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go +++ b/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go @@ -1,65 +1,34 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_ElasticInferenceAccelerator AWS CloudFormation Resource (AWS::EC2::Instance.ElasticInferenceAccelerator) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticinferenceaccelerator.html type Instance_ElasticInferenceAccelerator struct { + // Count AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticinferenceaccelerator.html#cfn-ec2-instance-elasticinferenceaccelerator-count + Count int `json:"Count,omitempty"` + // Type AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticinferenceaccelerator.html#cfn-ec2-instance-elasticinferenceaccelerator-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_ElasticInferenceAccelerator) AWSCloudFormationType() string { return "AWS::EC2::Instance.ElasticInferenceAccelerator" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_ElasticInferenceAccelerator) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_ElasticInferenceAccelerator) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_ElasticInferenceAccelerator) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_ElasticInferenceAccelerator) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_ElasticInferenceAccelerator) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_ElasticInferenceAccelerator) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go b/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go index 5b8dc5f61e..1adb7133f5 100644 --- a/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go +++ b/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_InstanceIpv6Address AWS CloudFormation Resource (AWS::EC2::Instance.InstanceIpv6Address) @@ -13,53 +13,17 @@ type Instance_InstanceIpv6Address struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html#cfn-ec2-instance-instanceipv6address-ipv6address Ipv6Address string `json:"Ipv6Address,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_InstanceIpv6Address) AWSCloudFormationType() string { return "AWS::EC2::Instance.InstanceIpv6Address" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_InstanceIpv6Address) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_InstanceIpv6Address) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_InstanceIpv6Address) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_InstanceIpv6Address) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_InstanceIpv6Address) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_InstanceIpv6Address) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go b/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go index 0379796a44..4571a954aa 100644 --- a/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go +++ b/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_LaunchTemplateSpecification AWS CloudFormation Resource (AWS::EC2::Instance.LaunchTemplateSpecification) @@ -23,53 +23,17 @@ type Instance_LaunchTemplateSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_LaunchTemplateSpecification) AWSCloudFormationType() string { return "AWS::EC2::Instance.LaunchTemplateSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_LaunchTemplateSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_LaunchTemplateSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_LaunchTemplateSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_LaunchTemplateSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_LaunchTemplateSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_LaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_licensespecification.go b/cloudformation/ec2/aws-ec2-instance_licensespecification.go index 61a90e1cc2..4e91638bba 100644 --- a/cloudformation/ec2/aws-ec2-instance_licensespecification.go +++ b/cloudformation/ec2/aws-ec2-instance_licensespecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_LicenseSpecification AWS CloudFormation Resource (AWS::EC2::Instance.LicenseSpecification) @@ -13,53 +13,17 @@ type Instance_LicenseSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-licensespecification.html#cfn-ec2-instance-licensespecification-licenseconfigurationarn LicenseConfigurationArn string `json:"LicenseConfigurationArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_LicenseSpecification) AWSCloudFormationType() string { return "AWS::EC2::Instance.LicenseSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_LicenseSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_LicenseSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_LicenseSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_LicenseSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_LicenseSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_LicenseSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_networkinterface.go b/cloudformation/ec2/aws-ec2-instance_networkinterface.go index ede6fe9b32..f29d5a3210 100644 --- a/cloudformation/ec2/aws-ec2-instance_networkinterface.go +++ b/cloudformation/ec2/aws-ec2-instance_networkinterface.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_NetworkInterface AWS CloudFormation Resource (AWS::EC2::Instance.NetworkInterface) @@ -68,53 +68,17 @@ type Instance_NetworkInterface struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_NetworkInterface) AWSCloudFormationType() string { return "AWS::EC2::Instance.NetworkInterface" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_NetworkInterface) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_NetworkInterface) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_NetworkInterface) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_NetworkInterface) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_NetworkInterface) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_NetworkInterface) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_nodevice.go b/cloudformation/ec2/aws-ec2-instance_nodevice.go index ec53cbc0e1..da23a614f7 100644 --- a/cloudformation/ec2/aws-ec2-instance_nodevice.go +++ b/cloudformation/ec2/aws-ec2-instance_nodevice.go @@ -1,60 +1,24 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_NoDevice AWS CloudFormation Resource (AWS::EC2::Instance.NoDevice) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-nodevice.html type Instance_NoDevice struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_NoDevice) AWSCloudFormationType() string { return "AWS::EC2::Instance.NoDevice" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_NoDevice) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_NoDevice) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_NoDevice) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_NoDevice) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_NoDevice) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_NoDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go b/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go index be7e10026c..d43976c537 100644 --- a/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go +++ b/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_PrivateIpAddressSpecification AWS CloudFormation Resource (AWS::EC2::Instance.PrivateIpAddressSpecification) @@ -18,53 +18,17 @@ type Instance_PrivateIpAddressSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-privateipaddress PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_PrivateIpAddressSpecification) AWSCloudFormationType() string { return "AWS::EC2::Instance.PrivateIpAddressSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_PrivateIpAddressSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_PrivateIpAddressSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_PrivateIpAddressSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_PrivateIpAddressSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_PrivateIpAddressSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_PrivateIpAddressSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_ssmassociation.go b/cloudformation/ec2/aws-ec2-instance_ssmassociation.go index 8620e4bd98..4d49d2fa1e 100644 --- a/cloudformation/ec2/aws-ec2-instance_ssmassociation.go +++ b/cloudformation/ec2/aws-ec2-instance_ssmassociation.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_SsmAssociation AWS CloudFormation Resource (AWS::EC2::Instance.SsmAssociation) @@ -18,53 +18,17 @@ type Instance_SsmAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html#cfn-ec2-instance-ssmassociations-documentname DocumentName string `json:"DocumentName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_SsmAssociation) AWSCloudFormationType() string { return "AWS::EC2::Instance.SsmAssociation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_SsmAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_SsmAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_SsmAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_SsmAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_SsmAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_SsmAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-instance_volume.go b/cloudformation/ec2/aws-ec2-instance_volume.go index f63bd4181f..6f7b5568a4 100644 --- a/cloudformation/ec2/aws-ec2-instance_volume.go +++ b/cloudformation/ec2/aws-ec2-instance_volume.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_Volume AWS CloudFormation Resource (AWS::EC2::Instance.Volume) @@ -18,53 +18,17 @@ type Instance_Volume struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html#cfn-ec2-mountpoint-volumeid VolumeId string `json:"VolumeId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_Volume) AWSCloudFormationType() string { return "AWS::EC2::Instance.Volume" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_Volume) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_Volume) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_Volume) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_Volume) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_Volume) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-internetgateway.go b/cloudformation/ec2/aws-ec2-internetgateway.go index 566848792d..6423741767 100644 --- a/cloudformation/ec2/aws-ec2-internetgateway.go +++ b/cloudformation/ec2/aws-ec2-internetgateway.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // InternetGateway AWS CloudFormation Resource (AWS::EC2::InternetGateway) @@ -18,14 +18,14 @@ type InternetGateway struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html#cfn-ec2-internetgateway-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -33,42 +33,6 @@ func (r *InternetGateway) AWSCloudFormationType() string { return "AWS::EC2::InternetGateway" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InternetGateway) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InternetGateway) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InternetGateway) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InternetGateway) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InternetGateway) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InternetGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 InternetGateway) MarshalJSON() ([]byte, error) { @@ -82,9 +46,9 @@ func (r InternetGateway) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -113,13 +77,13 @@ func (r *InternetGateway) UnmarshalJSON(b []byte) error { *r = InternetGateway(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-launchtemplate.go b/cloudformation/ec2/aws-ec2-launchtemplate.go index 3fcead1708..7289b309a1 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate AWS CloudFormation Resource (AWS::EC2::LaunchTemplate) @@ -22,14 +22,14 @@ type LaunchTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatename LaunchTemplateName string `json:"LaunchTemplateName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *LaunchTemplate) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LaunchTemplate) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r LaunchTemplate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *LaunchTemplate) UnmarshalJSON(b []byte) error { *r = LaunchTemplate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go b/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go index 2f6c0665f5..ac2ef6aab4 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_BlockDeviceMapping AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.BlockDeviceMapping) @@ -28,53 +28,17 @@ type LaunchTemplate_BlockDeviceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname VirtualName string `json:"VirtualName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_BlockDeviceMapping) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.BlockDeviceMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_BlockDeviceMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_BlockDeviceMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_BlockDeviceMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_BlockDeviceMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_BlockDeviceMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go index 1197b3c7d5..9c0b9fcad3 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go @@ -1,60 +1,24 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_CapacityReservationPreference AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CapacityReservationPreference) // See: type LaunchTemplate_CapacityReservationPreference struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_CapacityReservationPreference) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.CapacityReservationPreference" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CapacityReservationPreference) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CapacityReservationPreference) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CapacityReservationPreference) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CapacityReservationPreference) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CapacityReservationPreference) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CapacityReservationPreference) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go index b3a28b3636..58036f4499 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_CapacityReservationSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CapacityReservationSpecification) @@ -18,53 +18,17 @@ type LaunchTemplate_CapacityReservationSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification-capacityreservationtarget CapacityReservationTarget *LaunchTemplate_CapacityReservationTarget `json:"CapacityReservationTarget,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_CapacityReservationSpecification) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.CapacityReservationSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CapacityReservationSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CapacityReservationSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CapacityReservationSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CapacityReservationSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CapacityReservationSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CapacityReservationSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go index 67d081825f..a25ecaa0bf 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_CapacityReservationTarget AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CapacityReservationTarget) @@ -13,53 +13,17 @@ type LaunchTemplate_CapacityReservationTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-capacityreservationtarget.html#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationid CapacityReservationId string `json:"CapacityReservationId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_CapacityReservationTarget) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.CapacityReservationTarget" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CapacityReservationTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CapacityReservationTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CapacityReservationTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CapacityReservationTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CapacityReservationTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CapacityReservationTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go index 56edd6f510..db341d6417 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_CpuOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CpuOptions) @@ -18,53 +18,17 @@ type LaunchTemplate_CpuOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-cpuoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-cpuoptions-threadspercore ThreadsPerCore int `json:"ThreadsPerCore,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_CpuOptions) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.CpuOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CpuOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CpuOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CpuOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CpuOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CpuOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CpuOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go index 1f6841f430..d50ca1aa73 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_CreditSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.CreditSpecification) @@ -13,53 +13,17 @@ type LaunchTemplate_CreditSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecification-cpucredits CpuCredits string `json:"CpuCredits,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_CreditSpecification) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.CreditSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CreditSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_CreditSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CreditSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_CreditSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CreditSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_CreditSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go b/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go index 4b14adc364..560944df51 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_Ebs AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Ebs) @@ -43,53 +43,17 @@ type LaunchTemplate_Ebs struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_Ebs) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.Ebs" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Ebs) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Ebs) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Ebs) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Ebs) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Ebs) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Ebs) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go index 0e5652d1e7..170fcfe3f6 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_ElasticGpuSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.ElasticGpuSpecification) @@ -13,53 +13,17 @@ type LaunchTemplate_ElasticGpuSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html#cfn-ec2-launchtemplate-elasticgpuspecification-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_ElasticGpuSpecification) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.ElasticGpuSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_ElasticGpuSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_ElasticGpuSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_ElasticGpuSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_ElasticGpuSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_ElasticGpuSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_ElasticGpuSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go index e74fabd8bd..319218f93d 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_HibernationOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.HibernationOptions) @@ -13,53 +13,17 @@ type LaunchTemplate_HibernationOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-hibernationoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-hibernationoptions-configured Configured bool `json:"Configured,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_HibernationOptions) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.HibernationOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_HibernationOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_HibernationOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_HibernationOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_HibernationOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_HibernationOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_HibernationOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go b/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go index 59bd5c46f2..ec1f15e30a 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_IamInstanceProfile AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.IamInstanceProfile) @@ -18,53 +18,17 @@ type LaunchTemplate_IamInstanceProfile struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_IamInstanceProfile) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.IamInstanceProfile" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_IamInstanceProfile) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_IamInstanceProfile) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_IamInstanceProfile) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_IamInstanceProfile) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_IamInstanceProfile) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_IamInstanceProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go index 201cc158af..2ac71004f4 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_InstanceMarketOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.InstanceMarketOptions) @@ -18,53 +18,17 @@ type LaunchTemplate_InstanceMarketOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions SpotOptions *LaunchTemplate_SpotOptions `json:"SpotOptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_InstanceMarketOptions) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.InstanceMarketOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_InstanceMarketOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_InstanceMarketOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_InstanceMarketOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_InstanceMarketOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_InstanceMarketOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_InstanceMarketOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go b/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go index c779ac3305..8d74276e41 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_Ipv6Add AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Ipv6Add) @@ -13,53 +13,17 @@ type LaunchTemplate_Ipv6Add struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html#cfn-ec2-launchtemplate-ipv6add-ipv6address Ipv6Address string `json:"Ipv6Address,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_Ipv6Add) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.Ipv6Add" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Ipv6Add) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Ipv6Add) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Ipv6Add) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Ipv6Add) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Ipv6Add) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Ipv6Add) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go index fff0e5b5da..ee92bacc0c 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_LaunchTemplateData AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.LaunchTemplateData) @@ -133,53 +133,17 @@ type LaunchTemplate_LaunchTemplateData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-userdata UserData string `json:"UserData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_LaunchTemplateData) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.LaunchTemplateData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_LaunchTemplateData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_LaunchTemplateData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_LaunchTemplateData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_LaunchTemplateData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_LaunchTemplateData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_LaunchTemplateData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go index 749b94fbcc..3fdf77a93d 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_LaunchTemplateElasticInferenceAccelerator AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.LaunchTemplateElasticInferenceAccelerator) @@ -13,53 +13,17 @@ type LaunchTemplate_LaunchTemplateElasticInferenceAccelerator struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator.html#cfn-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.LaunchTemplateElasticInferenceAccelerator" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_LaunchTemplateElasticInferenceAccelerator) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go index 0819de8dec..1e37afc6d0 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_LicenseSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.LicenseSpecification) @@ -13,53 +13,17 @@ type LaunchTemplate_LicenseSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-licensespecification.html#cfn-ec2-launchtemplate-licensespecification-licenseconfigurationarn LicenseConfigurationArn string `json:"LicenseConfigurationArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_LicenseSpecification) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.LicenseSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_LicenseSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_LicenseSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_LicenseSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_LicenseSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_LicenseSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_LicenseSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go b/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go index e835d74eac..871aeb56d0 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_Monitoring AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Monitoring) @@ -13,53 +13,17 @@ type LaunchTemplate_Monitoring struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoring-enabled Enabled bool `json:"Enabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_Monitoring) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.Monitoring" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Monitoring) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Monitoring) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Monitoring) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Monitoring) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Monitoring) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Monitoring) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go b/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go index 673424abe4..0dee837042 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_NetworkInterface AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.NetworkInterface) @@ -73,53 +73,17 @@ type LaunchTemplate_NetworkInterface struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_NetworkInterface) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.NetworkInterface" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_NetworkInterface) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_NetworkInterface) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_NetworkInterface) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_NetworkInterface) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_NetworkInterface) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_NetworkInterface) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_placement.go b/cloudformation/ec2/aws-ec2-launchtemplate_placement.go index a87116e051..150c86205b 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_placement.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_placement.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_Placement AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.Placement) @@ -33,53 +33,17 @@ type LaunchTemplate_Placement struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy Tenancy string `json:"Tenancy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_Placement) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.Placement" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Placement) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_Placement) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Placement) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_Placement) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Placement) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_Placement) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go b/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go index 68fd1effe3..fbd2f495c3 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_PrivateIpAdd AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.PrivateIpAdd) @@ -18,53 +18,17 @@ type LaunchTemplate_PrivateIpAdd struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-privateipaddress PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_PrivateIpAdd) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.PrivateIpAdd" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_PrivateIpAdd) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_PrivateIpAdd) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_PrivateIpAdd) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_PrivateIpAdd) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_PrivateIpAdd) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_PrivateIpAdd) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go index e659830067..7e4a1e12b7 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplate_SpotOptions AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.SpotOptions) @@ -33,53 +33,17 @@ type LaunchTemplate_SpotOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-validuntil ValidUntil string `json:"ValidUntil,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_SpotOptions) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.SpotOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_SpotOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_SpotOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_SpotOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_SpotOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_SpotOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_SpotOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go index f3858a74c8..54c9ab4163 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go @@ -1,8 +1,8 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // LaunchTemplate_TagSpecification AWS CloudFormation Resource (AWS::EC2::LaunchTemplate.TagSpecification) @@ -19,53 +19,17 @@ type LaunchTemplate_TagSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LaunchTemplate_TagSpecification) AWSCloudFormationType() string { return "AWS::EC2::LaunchTemplate.TagSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_TagSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplate_TagSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_TagSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplate_TagSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_TagSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplate_TagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-natgateway.go b/cloudformation/ec2/aws-ec2-natgateway.go index c529e87b91..dbdc4d3aea 100644 --- a/cloudformation/ec2/aws-ec2-natgateway.go +++ b/cloudformation/ec2/aws-ec2-natgateway.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // NatGateway AWS CloudFormation Resource (AWS::EC2::NatGateway) @@ -28,14 +28,14 @@ type NatGateway struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *NatGateway) AWSCloudFormationType() string { return "AWS::EC2::NatGateway" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NatGateway) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NatGateway) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NatGateway) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NatGateway) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NatGateway) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NatGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NatGateway) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r NatGateway) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *NatGateway) UnmarshalJSON(b []byte) error { *r = NatGateway(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkacl.go b/cloudformation/ec2/aws-ec2-networkacl.go index 57021913a7..69cd760e45 100644 --- a/cloudformation/ec2/aws-ec2-networkacl.go +++ b/cloudformation/ec2/aws-ec2-networkacl.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // NetworkAcl AWS CloudFormation Resource (AWS::EC2::NetworkAcl) @@ -23,14 +23,14 @@ type NetworkAcl struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl.html#cfn-ec2-networkacl-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +38,6 @@ func (r *NetworkAcl) AWSCloudFormationType() string { return "AWS::EC2::NetworkAcl" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAcl) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAcl) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAcl) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAcl) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAcl) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAcl) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NetworkAcl) MarshalJSON() ([]byte, error) { @@ -87,9 +51,9 @@ func (r NetworkAcl) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +82,13 @@ func (r *NetworkAcl) UnmarshalJSON(b []byte) error { *r = NetworkAcl(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkaclentry.go b/cloudformation/ec2/aws-ec2-networkaclentry.go index e677a6dcf3..6bf7bec638 100644 --- a/cloudformation/ec2/aws-ec2-networkaclentry.go +++ b/cloudformation/ec2/aws-ec2-networkaclentry.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkAclEntry AWS CloudFormation Resource (AWS::EC2::NetworkAclEntry) @@ -13,7 +13,7 @@ import ( type NetworkAclEntry struct { // CidrBlock AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-cidrblock CidrBlock string `json:"CidrBlock,omitempty"` @@ -57,14 +57,14 @@ type NetworkAclEntry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-rulenumber RuleNumber int `json:"RuleNumber"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *NetworkAclEntry) AWSCloudFormationType() string { return "AWS::EC2::NetworkAclEntry" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAclEntry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAclEntry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAclEntry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAclEntry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAclEntry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAclEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NetworkAclEntry) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r NetworkAclEntry) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *NetworkAclEntry) UnmarshalJSON(b []byte) error { *r = NetworkAclEntry(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go b/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go index 63fa7a787a..f82b6d3f09 100644 --- a/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go +++ b/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkAclEntry_Icmp AWS CloudFormation Resource (AWS::EC2::NetworkAclEntry.Icmp) @@ -18,53 +18,17 @@ type NetworkAclEntry_Icmp struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html#cfn-ec2-networkaclentry-icmp-type Type int `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *NetworkAclEntry_Icmp) AWSCloudFormationType() string { return "AWS::EC2::NetworkAclEntry.Icmp" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAclEntry_Icmp) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAclEntry_Icmp) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAclEntry_Icmp) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAclEntry_Icmp) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAclEntry_Icmp) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAclEntry_Icmp) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go b/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go index 0bb95f1458..a841cbcc9a 100644 --- a/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go +++ b/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkAclEntry_PortRange AWS CloudFormation Resource (AWS::EC2::NetworkAclEntry.PortRange) @@ -18,53 +18,17 @@ type NetworkAclEntry_PortRange struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html#cfn-ec2-networkaclentry-portrange-to To int `json:"To,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *NetworkAclEntry_PortRange) AWSCloudFormationType() string { return "AWS::EC2::NetworkAclEntry.PortRange" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAclEntry_PortRange) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkAclEntry_PortRange) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAclEntry_PortRange) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkAclEntry_PortRange) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAclEntry_PortRange) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkAclEntry_PortRange) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-networkinterface.go b/cloudformation/ec2/aws-ec2-networkinterface.go index e52650ab5d..7d4b4ee634 100644 --- a/cloudformation/ec2/aws-ec2-networkinterface.go +++ b/cloudformation/ec2/aws-ec2-networkinterface.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // NetworkInterface AWS CloudFormation Resource (AWS::EC2::NetworkInterface) @@ -68,14 +68,14 @@ type NetworkInterface struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +83,6 @@ func (r *NetworkInterface) AWSCloudFormationType() string { return "AWS::EC2::NetworkInterface" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterface) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterface) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterface) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterface) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterface) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterface) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NetworkInterface) MarshalJSON() ([]byte, error) { @@ -132,9 +96,9 @@ func (r NetworkInterface) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +127,13 @@ func (r *NetworkInterface) UnmarshalJSON(b []byte) error { *r = NetworkInterface(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go b/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go index 129557cd8c..cd4af69eb4 100644 --- a/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go +++ b/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkInterface_InstanceIpv6Address AWS CloudFormation Resource (AWS::EC2::NetworkInterface.InstanceIpv6Address) @@ -13,53 +13,17 @@ type NetworkInterface_InstanceIpv6Address struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-instanceipv6address.html#cfn-ec2-networkinterface-instanceipv6address-ipv6address Ipv6Address string `json:"Ipv6Address,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *NetworkInterface_InstanceIpv6Address) AWSCloudFormationType() string { return "AWS::EC2::NetworkInterface.InstanceIpv6Address" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterface_InstanceIpv6Address) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterface_InstanceIpv6Address) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterface_InstanceIpv6Address) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterface_InstanceIpv6Address) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterface_InstanceIpv6Address) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterface_InstanceIpv6Address) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go b/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go index db3b2386fc..a1d0d2166a 100644 --- a/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go +++ b/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkInterface_PrivateIpAddressSpecification AWS CloudFormation Resource (AWS::EC2::NetworkInterface.PrivateIpAddressSpecification) @@ -18,53 +18,17 @@ type NetworkInterface_PrivateIpAddressSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-privateipaddress PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *NetworkInterface_PrivateIpAddressSpecification) AWSCloudFormationType() string { return "AWS::EC2::NetworkInterface.PrivateIpAddressSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterface_PrivateIpAddressSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterface_PrivateIpAddressSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterface_PrivateIpAddressSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterface_PrivateIpAddressSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterface_PrivateIpAddressSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterface_PrivateIpAddressSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go b/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go index bc1c473912..8e529751db 100644 --- a/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go +++ b/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkInterfaceAttachment AWS CloudFormation Resource (AWS::EC2::NetworkInterfaceAttachment) @@ -32,14 +32,14 @@ type NetworkInterfaceAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-networkinterfaceid NetworkInterfaceId string `json:"NetworkInterfaceId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *NetworkInterfaceAttachment) AWSCloudFormationType() string { return "AWS::EC2::NetworkInterfaceAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterfaceAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterfaceAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterfaceAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterfaceAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterfaceAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterfaceAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NetworkInterfaceAttachment) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r NetworkInterfaceAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *NetworkInterfaceAttachment) UnmarshalJSON(b []byte) error { *r = NetworkInterfaceAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkinterfacepermission.go b/cloudformation/ec2/aws-ec2-networkinterfacepermission.go index 6fe8b3ef0b..a830e88d55 100644 --- a/cloudformation/ec2/aws-ec2-networkinterfacepermission.go +++ b/cloudformation/ec2/aws-ec2-networkinterfacepermission.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NetworkInterfacePermission AWS CloudFormation Resource (AWS::EC2::NetworkInterfacePermission) @@ -27,14 +27,14 @@ type NetworkInterfacePermission struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission Permission string `json:"Permission,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *NetworkInterfacePermission) AWSCloudFormationType() string { return "AWS::EC2::NetworkInterfacePermission" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterfacePermission) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NetworkInterfacePermission) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterfacePermission) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NetworkInterfacePermission) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterfacePermission) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NetworkInterfacePermission) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NetworkInterfacePermission) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r NetworkInterfacePermission) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *NetworkInterfacePermission) UnmarshalJSON(b []byte) error { *r = NetworkInterfacePermission(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-placementgroup.go b/cloudformation/ec2/aws-ec2-placementgroup.go index c8239e3f0d..b37266e29a 100644 --- a/cloudformation/ec2/aws-ec2-placementgroup.go +++ b/cloudformation/ec2/aws-ec2-placementgroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PlacementGroup AWS CloudFormation Resource (AWS::EC2::PlacementGroup) @@ -17,14 +17,14 @@ type PlacementGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-strategy Strategy string `json:"Strategy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *PlacementGroup) AWSCloudFormationType() string { return "AWS::EC2::PlacementGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PlacementGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PlacementGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PlacementGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PlacementGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PlacementGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PlacementGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PlacementGroup) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r PlacementGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *PlacementGroup) UnmarshalJSON(b []byte) error { *r = PlacementGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-route.go b/cloudformation/ec2/aws-ec2-route.go index 8ae35fcf07..a4ab896615 100644 --- a/cloudformation/ec2/aws-ec2-route.go +++ b/cloudformation/ec2/aws-ec2-route.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Route AWS CloudFormation Resource (AWS::EC2::Route) @@ -62,14 +62,14 @@ type Route struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-vpcpeeringconnectionid VpcPeeringConnectionId string `json:"VpcPeeringConnectionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *Route) AWSCloudFormationType() string { return "AWS::EC2::Route" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Route) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Route) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Route) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Route) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r Route) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *Route) UnmarshalJSON(b []byte) error { *r = Route(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-routetable.go b/cloudformation/ec2/aws-ec2-routetable.go index 32ac157c71..d3a8ca024c 100644 --- a/cloudformation/ec2/aws-ec2-routetable.go +++ b/cloudformation/ec2/aws-ec2-routetable.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // RouteTable AWS CloudFormation Resource (AWS::EC2::RouteTable) @@ -23,14 +23,14 @@ type RouteTable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html#cfn-ec2-routetable-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +38,6 @@ func (r *RouteTable) AWSCloudFormationType() string { return "AWS::EC2::RouteTable" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RouteTable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RouteTable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RouteTable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RouteTable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RouteTable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RouteTable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RouteTable) MarshalJSON() ([]byte, error) { @@ -87,9 +51,9 @@ func (r RouteTable) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +82,13 @@ func (r *RouteTable) UnmarshalJSON(b []byte) error { *r = RouteTable(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-securitygroup.go b/cloudformation/ec2/aws-ec2-securitygroup.go index a3a44c8072..4a8a13114b 100644 --- a/cloudformation/ec2/aws-ec2-securitygroup.go +++ b/cloudformation/ec2/aws-ec2-securitygroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // SecurityGroup AWS CloudFormation Resource (AWS::EC2::SecurityGroup) @@ -43,14 +43,14 @@ type SecurityGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *SecurityGroup) AWSCloudFormationType() string { return "AWS::EC2::SecurityGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityGroup) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r SecurityGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *SecurityGroup) UnmarshalJSON(b []byte) error { *r = SecurityGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-securitygroup_egress.go b/cloudformation/ec2/aws-ec2-securitygroup_egress.go index 7a219a26a2..579b1980d4 100644 --- a/cloudformation/ec2/aws-ec2-securitygroup_egress.go +++ b/cloudformation/ec2/aws-ec2-securitygroup_egress.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityGroup_Egress AWS CloudFormation Resource (AWS::EC2::SecurityGroup.Egress) @@ -48,53 +48,17 @@ type SecurityGroup_Egress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-toport ToPort int `json:"ToPort,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityGroup_Egress) AWSCloudFormationType() string { return "AWS::EC2::SecurityGroup.Egress" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup_Egress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup_Egress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup_Egress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup_Egress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup_Egress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup_Egress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-securitygroup_ingress.go b/cloudformation/ec2/aws-ec2-securitygroup_ingress.go index 44d23f7f2b..cd2f746019 100644 --- a/cloudformation/ec2/aws-ec2-securitygroup_ingress.go +++ b/cloudformation/ec2/aws-ec2-securitygroup_ingress.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityGroup_Ingress AWS CloudFormation Resource (AWS::EC2::SecurityGroup.Ingress) @@ -58,53 +58,17 @@ type SecurityGroup_Ingress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-toport ToPort int `json:"ToPort,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityGroup_Ingress) AWSCloudFormationType() string { return "AWS::EC2::SecurityGroup.Ingress" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup_Ingress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup_Ingress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup_Ingress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup_Ingress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup_Ingress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup_Ingress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-securitygroupegress.go b/cloudformation/ec2/aws-ec2-securitygroupegress.go index 9986f6cef6..ddc0584ab0 100644 --- a/cloudformation/ec2/aws-ec2-securitygroupegress.go +++ b/cloudformation/ec2/aws-ec2-securitygroupegress.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityGroupEgress AWS CloudFormation Resource (AWS::EC2::SecurityGroupEgress) @@ -57,14 +57,14 @@ type SecurityGroupEgress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-toport ToPort int `json:"ToPort,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *SecurityGroupEgress) AWSCloudFormationType() string { return "AWS::EC2::SecurityGroupEgress" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroupEgress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroupEgress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroupEgress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroupEgress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroupEgress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroupEgress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityGroupEgress) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r SecurityGroupEgress) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *SecurityGroupEgress) UnmarshalJSON(b []byte) error { *r = SecurityGroupEgress(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-securitygroupingress.go b/cloudformation/ec2/aws-ec2-securitygroupingress.go index 9047127183..be85e8f853 100644 --- a/cloudformation/ec2/aws-ec2-securitygroupingress.go +++ b/cloudformation/ec2/aws-ec2-securitygroupingress.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityGroupIngress AWS CloudFormation Resource (AWS::EC2::SecurityGroupIngress) @@ -72,14 +72,14 @@ type SecurityGroupIngress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-toport ToPort int `json:"ToPort,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -87,42 +87,6 @@ func (r *SecurityGroupIngress) AWSCloudFormationType() string { return "AWS::EC2::SecurityGroupIngress" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroupIngress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroupIngress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroupIngress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroupIngress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroupIngress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityGroupIngress) MarshalJSON() ([]byte, error) { @@ -136,9 +100,9 @@ func (r SecurityGroupIngress) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -167,13 +131,13 @@ func (r *SecurityGroupIngress) UnmarshalJSON(b []byte) error { *r = SecurityGroupIngress(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-spotfleet.go b/cloudformation/ec2/aws-ec2-spotfleet.go index 2a4dcebe47..273d7dec56 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet.go +++ b/cloudformation/ec2/aws-ec2-spotfleet.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet AWS CloudFormation Resource (AWS::EC2::SpotFleet) @@ -17,14 +17,14 @@ type SpotFleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-spotfleet.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata SpotFleetRequestConfigData *SpotFleet_SpotFleetRequestConfigData `json:"SpotFleetRequestConfigData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *SpotFleet) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SpotFleet) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r SpotFleet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *SpotFleet) UnmarshalJSON(b []byte) error { *r = SpotFleet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go b/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go index 8928780a38..887285131f 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_BlockDeviceMapping AWS CloudFormation Resource (AWS::EC2::SpotFleet.BlockDeviceMapping) @@ -28,53 +28,17 @@ type SpotFleet_BlockDeviceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-virtualname VirtualName string `json:"VirtualName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_BlockDeviceMapping) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.BlockDeviceMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_BlockDeviceMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_BlockDeviceMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_BlockDeviceMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_BlockDeviceMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_BlockDeviceMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go index ef3228b11a..eec8d93922 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_ClassicLoadBalancer AWS CloudFormation Resource (AWS::EC2::SpotFleet.ClassicLoadBalancer) @@ -13,53 +13,17 @@ type SpotFleet_ClassicLoadBalancer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html#cfn-ec2-spotfleet-classicloadbalancer-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_ClassicLoadBalancer) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.ClassicLoadBalancer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_ClassicLoadBalancer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_ClassicLoadBalancer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_ClassicLoadBalancer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_ClassicLoadBalancer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_ClassicLoadBalancer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_ClassicLoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go index 550b35939a..38e750838c 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_ClassicLoadBalancersConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.ClassicLoadBalancersConfig) @@ -13,53 +13,17 @@ type SpotFleet_ClassicLoadBalancersConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html#cfn-ec2-spotfleet-classicloadbalancersconfig-classicloadbalancers ClassicLoadBalancers []SpotFleet_ClassicLoadBalancer `json:"ClassicLoadBalancers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_ClassicLoadBalancersConfig) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.ClassicLoadBalancersConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_ClassicLoadBalancersConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_ClassicLoadBalancersConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_ClassicLoadBalancersConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_ClassicLoadBalancersConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_ClassicLoadBalancersConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_ClassicLoadBalancersConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go b/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go index 89870fa680..338f6270ef 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_EbsBlockDevice AWS CloudFormation Resource (AWS::EC2::SpotFleet.EbsBlockDevice) @@ -38,53 +38,17 @@ type SpotFleet_EbsBlockDevice struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_EbsBlockDevice) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.EbsBlockDevice" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_EbsBlockDevice) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_EbsBlockDevice) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_EbsBlockDevice) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_EbsBlockDevice) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_EbsBlockDevice) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_EbsBlockDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go b/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go index 3e2f1e0d89..dcef9943d5 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_FleetLaunchTemplateSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.FleetLaunchTemplateSpecification) @@ -23,53 +23,17 @@ type SpotFleet_FleetLaunchTemplateSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_FleetLaunchTemplateSpecification) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.FleetLaunchTemplateSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_FleetLaunchTemplateSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_FleetLaunchTemplateSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_FleetLaunchTemplateSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_FleetLaunchTemplateSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_FleetLaunchTemplateSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_FleetLaunchTemplateSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go b/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go index 73c1563057..397fb4e638 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_GroupIdentifier AWS CloudFormation Resource (AWS::EC2::SpotFleet.GroupIdentifier) @@ -13,53 +13,17 @@ type SpotFleet_GroupIdentifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html#cfn-ec2-spotfleet-groupidentifier-groupid GroupId string `json:"GroupId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_GroupIdentifier) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.GroupIdentifier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_GroupIdentifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_GroupIdentifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_GroupIdentifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_GroupIdentifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_GroupIdentifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_GroupIdentifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go b/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go index 7802fcb699..fcd26e7272 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_IamInstanceProfileSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.IamInstanceProfileSpecification) @@ -13,53 +13,17 @@ type SpotFleet_IamInstanceProfileSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html#cfn-ec2-spotfleet-iaminstanceprofilespecification-arn Arn string `json:"Arn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_IamInstanceProfileSpecification) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.IamInstanceProfileSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_IamInstanceProfileSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_IamInstanceProfileSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_IamInstanceProfileSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_IamInstanceProfileSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_IamInstanceProfileSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_IamInstanceProfileSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go b/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go index 3b4e477896..e5074ff49d 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_InstanceIpv6Address AWS CloudFormation Resource (AWS::EC2::SpotFleet.InstanceIpv6Address) @@ -13,53 +13,17 @@ type SpotFleet_InstanceIpv6Address struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html#cfn-ec2-spotfleet-instanceipv6address-ipv6address Ipv6Address string `json:"Ipv6Address,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_InstanceIpv6Address) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.InstanceIpv6Address" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_InstanceIpv6Address) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_InstanceIpv6Address) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_InstanceIpv6Address) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_InstanceIpv6Address) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_InstanceIpv6Address) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_InstanceIpv6Address) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go b/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go index 6a00ffe990..078f9ba59e 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_InstanceNetworkInterfaceSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.InstanceNetworkInterfaceSpecification) @@ -63,53 +63,17 @@ type SpotFleet_InstanceNetworkInterfaceSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_InstanceNetworkInterfaceSpecification) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.InstanceNetworkInterfaceSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_InstanceNetworkInterfaceSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_InstanceNetworkInterfaceSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_InstanceNetworkInterfaceSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_InstanceNetworkInterfaceSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_InstanceNetworkInterfaceSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_InstanceNetworkInterfaceSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go index 897c799fcc..1c6d734795 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_LaunchTemplateConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.LaunchTemplateConfig) @@ -18,53 +18,17 @@ type SpotFleet_LaunchTemplateConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html#cfn-ec2-spotfleet-launchtemplateconfig-overrides Overrides []SpotFleet_LaunchTemplateOverrides `json:"Overrides,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_LaunchTemplateConfig) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.LaunchTemplateConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_LaunchTemplateConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_LaunchTemplateConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_LaunchTemplateConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_LaunchTemplateConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_LaunchTemplateConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_LaunchTemplateConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go index ad7587d22d..460355c99a 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_LaunchTemplateOverrides AWS CloudFormation Resource (AWS::EC2::SpotFleet.LaunchTemplateOverrides) @@ -33,53 +33,17 @@ type SpotFleet_LaunchTemplateOverrides struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-weightedcapacity WeightedCapacity float64 `json:"WeightedCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_LaunchTemplateOverrides) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.LaunchTemplateOverrides" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_LaunchTemplateOverrides) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_LaunchTemplateOverrides) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_LaunchTemplateOverrides) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_LaunchTemplateOverrides) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_LaunchTemplateOverrides) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_LaunchTemplateOverrides) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go index 38bde751e8..73568c5ef0 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_LoadBalancersConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.LoadBalancersConfig) @@ -18,53 +18,17 @@ type SpotFleet_LoadBalancersConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-targetgroupsconfig TargetGroupsConfig *SpotFleet_TargetGroupsConfig `json:"TargetGroupsConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_LoadBalancersConfig) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.LoadBalancersConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_LoadBalancersConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_LoadBalancersConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_LoadBalancersConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_LoadBalancersConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_LoadBalancersConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_LoadBalancersConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go b/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go index 546508ec5f..38c3cfdc1c 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_PrivateIpAddressSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.PrivateIpAddressSpecification) @@ -18,53 +18,17 @@ type SpotFleet_PrivateIpAddressSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-privateipaddress PrivateIpAddress string `json:"PrivateIpAddress,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_PrivateIpAddressSpecification) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.PrivateIpAddressSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_PrivateIpAddressSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_PrivateIpAddressSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_PrivateIpAddressSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_PrivateIpAddressSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_PrivateIpAddressSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_PrivateIpAddressSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go index 526c7dd589..1e155953af 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_SpotFleetLaunchSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetLaunchSpecification) @@ -93,53 +93,17 @@ type SpotFleet_SpotFleetLaunchSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-weightedcapacity WeightedCapacity float64 `json:"WeightedCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_SpotFleetLaunchSpecification) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.SpotFleetLaunchSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetLaunchSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetLaunchSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetLaunchSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetLaunchSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetLaunchSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetLaunchSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go index f48ba7a6aa..fcadd5e1bc 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_SpotFleetMonitoring AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetMonitoring) @@ -13,53 +13,17 @@ type SpotFleet_SpotFleetMonitoring struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html#cfn-ec2-spotfleet-spotfleetmonitoring-enabled Enabled bool `json:"Enabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_SpotFleetMonitoring) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.SpotFleetMonitoring" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetMonitoring) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetMonitoring) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetMonitoring) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetMonitoring) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetMonitoring) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetMonitoring) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go index 1fac3d8b51..7aec51145e 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_SpotFleetRequestConfigData AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetRequestConfigData) @@ -78,53 +78,17 @@ type SpotFleet_SpotFleetRequestConfigData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validuntil ValidUntil string `json:"ValidUntil,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_SpotFleetRequestConfigData) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.SpotFleetRequestConfigData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetRequestConfigData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetRequestConfigData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetRequestConfigData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetRequestConfigData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetRequestConfigData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetRequestConfigData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go index 2631321436..45bafd4517 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go @@ -1,8 +1,8 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // SpotFleet_SpotFleetTagSpecification AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotFleetTagSpecification) @@ -19,53 +19,17 @@ type SpotFleet_SpotFleetTagSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html#cfn-ec2-spotfleet-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_SpotFleetTagSpecification) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.SpotFleetTagSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetTagSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotFleetTagSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetTagSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotFleetTagSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetTagSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotFleetTagSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go b/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go index 90e5e6aa19..3b527c5ef8 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_SpotPlacement AWS CloudFormation Resource (AWS::EC2::SpotFleet.SpotPlacement) @@ -23,53 +23,17 @@ type SpotFleet_SpotPlacement struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-tenancy Tenancy string `json:"Tenancy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_SpotPlacement) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.SpotPlacement" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotPlacement) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_SpotPlacement) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotPlacement) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_SpotPlacement) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotPlacement) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_SpotPlacement) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go b/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go index e895d7e241..173b3ef972 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_TargetGroup AWS CloudFormation Resource (AWS::EC2::SpotFleet.TargetGroup) @@ -13,53 +13,17 @@ type SpotFleet_TargetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html#cfn-ec2-spotfleet-targetgroup-arn Arn string `json:"Arn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_TargetGroup) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.TargetGroup" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_TargetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_TargetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_TargetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_TargetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_TargetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_TargetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go index 5c269ed3e7..93e892d430 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SpotFleet_TargetGroupsConfig AWS CloudFormation Resource (AWS::EC2::SpotFleet.TargetGroupsConfig) @@ -13,53 +13,17 @@ type SpotFleet_TargetGroupsConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html#cfn-ec2-spotfleet-targetgroupsconfig-targetgroups TargetGroups []SpotFleet_TargetGroup `json:"TargetGroups,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SpotFleet_TargetGroupsConfig) AWSCloudFormationType() string { return "AWS::EC2::SpotFleet.TargetGroupsConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_TargetGroupsConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SpotFleet_TargetGroupsConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_TargetGroupsConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SpotFleet_TargetGroupsConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_TargetGroupsConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SpotFleet_TargetGroupsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-subnet.go b/cloudformation/ec2/aws-ec2-subnet.go index 716d192a3c..8994073ace 100644 --- a/cloudformation/ec2/aws-ec2-subnet.go +++ b/cloudformation/ec2/aws-ec2-subnet.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Subnet AWS CloudFormation Resource (AWS::EC2::Subnet) @@ -48,14 +48,14 @@ type Subnet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-awsec2subnet-prop-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *Subnet) AWSCloudFormationType() string { return "AWS::EC2::Subnet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Subnet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Subnet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Subnet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Subnet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Subnet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Subnet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Subnet) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r Subnet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *Subnet) UnmarshalJSON(b []byte) error { *r = Subnet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-subnetcidrblock.go b/cloudformation/ec2/aws-ec2-subnetcidrblock.go index fdb6bbcaf9..2dfc13ae08 100644 --- a/cloudformation/ec2/aws-ec2-subnetcidrblock.go +++ b/cloudformation/ec2/aws-ec2-subnetcidrblock.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubnetCidrBlock AWS CloudFormation Resource (AWS::EC2::SubnetCidrBlock) @@ -22,14 +22,14 @@ type SubnetCidrBlock struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html#cfn-ec2-subnetcidrblock-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SubnetCidrBlock) AWSCloudFormationType() string { return "AWS::EC2::SubnetCidrBlock" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetCidrBlock) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetCidrBlock) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetCidrBlock) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetCidrBlock) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetCidrBlock) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetCidrBlock) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubnetCidrBlock) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SubnetCidrBlock) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SubnetCidrBlock) UnmarshalJSON(b []byte) error { *r = SubnetCidrBlock(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go b/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go index cde3c1495d..9ba19b9bb0 100644 --- a/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go +++ b/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubnetNetworkAclAssociation AWS CloudFormation Resource (AWS::EC2::SubnetNetworkAclAssociation) @@ -22,14 +22,14 @@ type SubnetNetworkAclAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html#cfn-ec2-subnetnetworkaclassociation-associationid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SubnetNetworkAclAssociation) AWSCloudFormationType() string { return "AWS::EC2::SubnetNetworkAclAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetNetworkAclAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetNetworkAclAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetNetworkAclAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetNetworkAclAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetNetworkAclAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetNetworkAclAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubnetNetworkAclAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SubnetNetworkAclAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SubnetNetworkAclAssociation) UnmarshalJSON(b []byte) error { *r = SubnetNetworkAclAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go b/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go index 44b6633b4f..2e9de591ae 100644 --- a/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go +++ b/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubnetRouteTableAssociation AWS CloudFormation Resource (AWS::EC2::SubnetRouteTableAssociation) @@ -22,14 +22,14 @@ type SubnetRouteTableAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-route-table-assoc.html#cfn-ec2-subnetroutetableassociation-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SubnetRouteTableAssociation) AWSCloudFormationType() string { return "AWS::EC2::SubnetRouteTableAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetRouteTableAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetRouteTableAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetRouteTableAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetRouteTableAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetRouteTableAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetRouteTableAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubnetRouteTableAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SubnetRouteTableAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SubnetRouteTableAssociation) UnmarshalJSON(b []byte) error { *r = SubnetRouteTableAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go b/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go index bc037e10fd..1c3046232a 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TrafficMirrorFilter AWS CloudFormation Resource (AWS::EC2::TrafficMirrorFilter) @@ -28,14 +28,14 @@ type TrafficMirrorFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilter.html#cfn-ec2-trafficmirrorfilter-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *TrafficMirrorFilter) AWSCloudFormationType() string { return "AWS::EC2::TrafficMirrorFilter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TrafficMirrorFilter) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r TrafficMirrorFilter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *TrafficMirrorFilter) UnmarshalJSON(b []byte) error { *r = TrafficMirrorFilter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go index a2e9b56a80..bd51077dce 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TrafficMirrorFilterRule AWS CloudFormation Resource (AWS::EC2::TrafficMirrorFilterRule) @@ -62,14 +62,14 @@ type TrafficMirrorFilterRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html#cfn-ec2-trafficmirrorfilterrule-trafficmirrorfilterid TrafficMirrorFilterId string `json:"TrafficMirrorFilterId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *TrafficMirrorFilterRule) AWSCloudFormationType() string { return "AWS::EC2::TrafficMirrorFilterRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorFilterRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorFilterRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorFilterRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorFilterRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorFilterRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorFilterRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TrafficMirrorFilterRule) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r TrafficMirrorFilterRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *TrafficMirrorFilterRule) UnmarshalJSON(b []byte) error { *r = TrafficMirrorFilterRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go index 8905340f27..6b3896b3bf 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TrafficMirrorFilterRule_TrafficMirrorPortRange AWS CloudFormation Resource (AWS::EC2::TrafficMirrorFilterRule.TrafficMirrorPortRange) @@ -18,53 +18,17 @@ type TrafficMirrorFilterRule_TrafficMirrorPortRange struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-trafficmirrorfilterrule-trafficmirrorportrange.html#cfn-ec2-trafficmirrorfilterrule-trafficmirrorportrange-toport ToPort int `json:"ToPort"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) AWSCloudFormationType() string { return "AWS::EC2::TrafficMirrorFilterRule.TrafficMirrorPortRange" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorFilterRule_TrafficMirrorPortRange) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorsession.go b/cloudformation/ec2/aws-ec2-trafficmirrorsession.go index 588959ef0a..cf77d18566 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorsession.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorsession.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TrafficMirrorSession AWS CloudFormation Resource (AWS::EC2::TrafficMirrorSession) @@ -53,14 +53,14 @@ type TrafficMirrorSession struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html#cfn-ec2-trafficmirrorsession-virtualnetworkid VirtualNetworkId int `json:"VirtualNetworkId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -68,42 +68,6 @@ func (r *TrafficMirrorSession) AWSCloudFormationType() string { return "AWS::EC2::TrafficMirrorSession" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorSession) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorSession) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorSession) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorSession) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorSession) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorSession) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TrafficMirrorSession) MarshalJSON() ([]byte, error) { @@ -117,9 +81,9 @@ func (r TrafficMirrorSession) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -148,13 +112,13 @@ func (r *TrafficMirrorSession) UnmarshalJSON(b []byte) error { *r = TrafficMirrorSession(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrortarget.go b/cloudformation/ec2/aws-ec2-trafficmirrortarget.go index 419194e2ec..2b6001ec93 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrortarget.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrortarget.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TrafficMirrorTarget AWS CloudFormation Resource (AWS::EC2::TrafficMirrorTarget) @@ -33,14 +33,14 @@ type TrafficMirrorTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrortarget.html#cfn-ec2-trafficmirrortarget-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *TrafficMirrorTarget) AWSCloudFormationType() string { return "AWS::EC2::TrafficMirrorTarget" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TrafficMirrorTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TrafficMirrorTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TrafficMirrorTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TrafficMirrorTarget) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r TrafficMirrorTarget) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *TrafficMirrorTarget) UnmarshalJSON(b []byte) error { *r = TrafficMirrorTarget(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgateway.go b/cloudformation/ec2/aws-ec2-transitgateway.go index 3df0a28a7c..6e43af7bdb 100644 --- a/cloudformation/ec2/aws-ec2-transitgateway.go +++ b/cloudformation/ec2/aws-ec2-transitgateway.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TransitGateway AWS CloudFormation Resource (AWS::EC2::TransitGateway) @@ -53,14 +53,14 @@ type TransitGateway struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgateway.html#cfn-ec2-transitgateway-vpnecmpsupport VpnEcmpSupport string `json:"VpnEcmpSupport,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -68,42 +68,6 @@ func (r *TransitGateway) AWSCloudFormationType() string { return "AWS::EC2::TransitGateway" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGateway) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGateway) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGateway) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGateway) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGateway) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TransitGateway) MarshalJSON() ([]byte, error) { @@ -117,9 +81,9 @@ func (r TransitGateway) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -148,13 +112,13 @@ func (r *TransitGateway) UnmarshalJSON(b []byte) error { *r = TransitGateway(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayattachment.go b/cloudformation/ec2/aws-ec2-transitgatewayattachment.go index abf9e0fe11..2bbf70c15f 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayattachment.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayattachment.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TransitGatewayAttachment AWS CloudFormation Resource (AWS::EC2::TransitGatewayAttachment) @@ -33,14 +33,14 @@ type TransitGatewayAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayattachment.html#cfn-ec2-transitgatewayattachment-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *TransitGatewayAttachment) AWSCloudFormationType() string { return "AWS::EC2::TransitGatewayAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TransitGatewayAttachment) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r TransitGatewayAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *TransitGatewayAttachment) UnmarshalJSON(b []byte) error { *r = TransitGatewayAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroute.go b/cloudformation/ec2/aws-ec2-transitgatewayroute.go index ca69a7f22d..6985d511c2 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroute.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroute.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TransitGatewayRoute AWS CloudFormation Resource (AWS::EC2::TransitGatewayRoute) @@ -32,14 +32,14 @@ type TransitGatewayRoute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroute.html#cfn-ec2-transitgatewayroute-transitgatewayroutetableid TransitGatewayRouteTableId string `json:"TransitGatewayRouteTableId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *TransitGatewayRoute) AWSCloudFormationType() string { return "AWS::EC2::TransitGatewayRoute" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRoute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRoute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRoute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRoute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRoute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TransitGatewayRoute) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r TransitGatewayRoute) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *TransitGatewayRoute) UnmarshalJSON(b []byte) error { *r = TransitGatewayRoute(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go b/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go index e9fe825eb6..537e5f0c82 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TransitGatewayRouteTable AWS CloudFormation Resource (AWS::EC2::TransitGatewayRouteTable) @@ -23,14 +23,14 @@ type TransitGatewayRouteTable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetable.html#cfn-ec2-transitgatewayroutetable-transitgatewayid TransitGatewayId string `json:"TransitGatewayId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +38,6 @@ func (r *TransitGatewayRouteTable) AWSCloudFormationType() string { return "AWS::EC2::TransitGatewayRouteTable" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRouteTable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRouteTable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRouteTable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRouteTable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRouteTable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRouteTable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TransitGatewayRouteTable) MarshalJSON() ([]byte, error) { @@ -87,9 +51,9 @@ func (r TransitGatewayRouteTable) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +82,13 @@ func (r *TransitGatewayRouteTable) UnmarshalJSON(b []byte) error { *r = TransitGatewayRouteTable(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go b/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go index 9e33772577..4b212065cc 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TransitGatewayRouteTableAssociation AWS CloudFormation Resource (AWS::EC2::TransitGatewayRouteTableAssociation) @@ -22,14 +22,14 @@ type TransitGatewayRouteTableAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayroutetableid TransitGatewayRouteTableId string `json:"TransitGatewayRouteTableId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *TransitGatewayRouteTableAssociation) AWSCloudFormationType() string { return "AWS::EC2::TransitGatewayRouteTableAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRouteTableAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRouteTableAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRouteTableAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRouteTableAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRouteTableAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRouteTableAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TransitGatewayRouteTableAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r TransitGatewayRouteTableAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *TransitGatewayRouteTableAssociation) UnmarshalJSON(b []byte) error { *r = TransitGatewayRouteTableAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go b/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go index beeb367de5..2605d1e7a6 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TransitGatewayRouteTablePropagation AWS CloudFormation Resource (AWS::EC2::TransitGatewayRouteTablePropagation) @@ -22,14 +22,14 @@ type TransitGatewayRouteTablePropagation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetablepropagation.html#cfn-ec2-transitgatewayroutetablepropagation-transitgatewayroutetableid TransitGatewayRouteTableId string `json:"TransitGatewayRouteTableId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *TransitGatewayRouteTablePropagation) AWSCloudFormationType() string { return "AWS::EC2::TransitGatewayRouteTablePropagation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRouteTablePropagation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TransitGatewayRouteTablePropagation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRouteTablePropagation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TransitGatewayRouteTablePropagation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRouteTablePropagation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TransitGatewayRouteTablePropagation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TransitGatewayRouteTablePropagation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r TransitGatewayRouteTablePropagation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *TransitGatewayRouteTablePropagation) UnmarshalJSON(b []byte) error { *r = TransitGatewayRouteTablePropagation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-volume.go b/cloudformation/ec2/aws-ec2-volume.go index 2f0dc7a042..551ec545c8 100644 --- a/cloudformation/ec2/aws-ec2-volume.go +++ b/cloudformation/ec2/aws-ec2-volume.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Volume AWS CloudFormation Resource (AWS::EC2::Volume) @@ -58,14 +58,14 @@ type Volume struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -73,42 +73,6 @@ func (r *Volume) AWSCloudFormationType() string { return "AWS::EC2::Volume" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Volume) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Volume) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Volume) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Volume) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Volume) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Volume) MarshalJSON() ([]byte, error) { @@ -122,9 +86,9 @@ func (r Volume) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -153,13 +117,13 @@ func (r *Volume) UnmarshalJSON(b []byte) error { *r = Volume(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-volumeattachment.go b/cloudformation/ec2/aws-ec2-volumeattachment.go index 56c4485c44..50e9308c16 100644 --- a/cloudformation/ec2/aws-ec2-volumeattachment.go +++ b/cloudformation/ec2/aws-ec2-volumeattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VolumeAttachment AWS CloudFormation Resource (AWS::EC2::VolumeAttachment) @@ -27,14 +27,14 @@ type VolumeAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-volumeid VolumeId string `json:"VolumeId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *VolumeAttachment) AWSCloudFormationType() string { return "AWS::EC2::VolumeAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VolumeAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VolumeAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VolumeAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VolumeAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VolumeAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VolumeAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VolumeAttachment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r VolumeAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *VolumeAttachment) UnmarshalJSON(b []byte) error { *r = VolumeAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpc.go b/cloudformation/ec2/aws-ec2-vpc.go index 30626f7c0a..1282ca08da 100644 --- a/cloudformation/ec2/aws-ec2-vpc.go +++ b/cloudformation/ec2/aws-ec2-vpc.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VPC AWS CloudFormation Resource (AWS::EC2::VPC) @@ -38,14 +38,14 @@ type VPC struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *VPC) AWSCloudFormationType() string { return "AWS::EC2::VPC" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPC) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPC) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPC) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPC) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPC) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPC) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPC) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r VPC) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *VPC) UnmarshalJSON(b []byte) error { *r = VPC(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpccidrblock.go b/cloudformation/ec2/aws-ec2-vpccidrblock.go index 77551a2700..0bbaf1272e 100644 --- a/cloudformation/ec2/aws-ec2-vpccidrblock.go +++ b/cloudformation/ec2/aws-ec2-vpccidrblock.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCCidrBlock AWS CloudFormation Resource (AWS::EC2::VPCCidrBlock) @@ -27,14 +27,14 @@ type VPCCidrBlock struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *VPCCidrBlock) AWSCloudFormationType() string { return "AWS::EC2::VPCCidrBlock" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCCidrBlock) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCCidrBlock) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCCidrBlock) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCCidrBlock) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCCidrBlock) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCCidrBlock) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCCidrBlock) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r VPCCidrBlock) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *VPCCidrBlock) UnmarshalJSON(b []byte) error { *r = VPCCidrBlock(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go b/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go index 5eeccf8a26..1a307e7221 100644 --- a/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go +++ b/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCDHCPOptionsAssociation AWS CloudFormation Resource (AWS::EC2::VPCDHCPOptionsAssociation) @@ -22,14 +22,14 @@ type VPCDHCPOptionsAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-dhcp-options-assoc.html#cfn-ec2-vpcdhcpoptionsassociation-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *VPCDHCPOptionsAssociation) AWSCloudFormationType() string { return "AWS::EC2::VPCDHCPOptionsAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCDHCPOptionsAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCDHCPOptionsAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCDHCPOptionsAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCDHCPOptionsAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCDHCPOptionsAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCDHCPOptionsAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCDHCPOptionsAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r VPCDHCPOptionsAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *VPCDHCPOptionsAssociation) UnmarshalJSON(b []byte) error { *r = VPCDHCPOptionsAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpoint.go b/cloudformation/ec2/aws-ec2-vpcendpoint.go index 019adc0330..37e3cbe1c2 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpoint.go +++ b/cloudformation/ec2/aws-ec2-vpcendpoint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCEndpoint AWS CloudFormation Resource (AWS::EC2::VPCEndpoint) @@ -52,14 +52,14 @@ type VPCEndpoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *VPCEndpoint) AWSCloudFormationType() string { return "AWS::EC2::VPCEndpoint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCEndpoint) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r VPCEndpoint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *VPCEndpoint) UnmarshalJSON(b []byte) error { *r = VPCEndpoint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go b/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go index 6bac965ddf..8dfa81f307 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go +++ b/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCEndpointConnectionNotification AWS CloudFormation Resource (AWS::EC2::VPCEndpointConnectionNotification) @@ -32,14 +32,14 @@ type VPCEndpointConnectionNotification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-vpcendpointid VPCEndpointId string `json:"VPCEndpointId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *VPCEndpointConnectionNotification) AWSCloudFormationType() string { return "AWS::EC2::VPCEndpointConnectionNotification" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpointConnectionNotification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpointConnectionNotification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpointConnectionNotification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpointConnectionNotification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpointConnectionNotification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpointConnectionNotification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCEndpointConnectionNotification) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r VPCEndpointConnectionNotification) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *VPCEndpointConnectionNotification) UnmarshalJSON(b []byte) error { *r = VPCEndpointConnectionNotification(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpointservice.go b/cloudformation/ec2/aws-ec2-vpcendpointservice.go index 649ed1ccb7..5b5784e27f 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpointservice.go +++ b/cloudformation/ec2/aws-ec2-vpcendpointservice.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCEndpointService AWS CloudFormation Resource (AWS::EC2::VPCEndpointService) @@ -22,14 +22,14 @@ type VPCEndpointService struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-networkloadbalancerarns NetworkLoadBalancerArns []string `json:"NetworkLoadBalancerArns,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *VPCEndpointService) AWSCloudFormationType() string { return "AWS::EC2::VPCEndpointService" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpointService) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpointService) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpointService) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpointService) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpointService) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpointService) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCEndpointService) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r VPCEndpointService) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *VPCEndpointService) UnmarshalJSON(b []byte) error { *r = VPCEndpointService(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go b/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go index c286e3667f..0a42b1c650 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go +++ b/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCEndpointServicePermissions AWS CloudFormation Resource (AWS::EC2::VPCEndpointServicePermissions) @@ -22,14 +22,14 @@ type VPCEndpointServicePermissions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid ServiceId string `json:"ServiceId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *VPCEndpointServicePermissions) AWSCloudFormationType() string { return "AWS::EC2::VPCEndpointServicePermissions" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpointServicePermissions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCEndpointServicePermissions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpointServicePermissions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCEndpointServicePermissions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpointServicePermissions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCEndpointServicePermissions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCEndpointServicePermissions) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r VPCEndpointServicePermissions) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *VPCEndpointServicePermissions) UnmarshalJSON(b []byte) error { *r = VPCEndpointServicePermissions(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go b/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go index 7556a9f1d8..70d15bd529 100644 --- a/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go +++ b/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPCGatewayAttachment AWS CloudFormation Resource (AWS::EC2::VPCGatewayAttachment) @@ -27,14 +27,14 @@ type VPCGatewayAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpngatewayid VpnGatewayId string `json:"VpnGatewayId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *VPCGatewayAttachment) AWSCloudFormationType() string { return "AWS::EC2::VPCGatewayAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCGatewayAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCGatewayAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCGatewayAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCGatewayAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCGatewayAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCGatewayAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCGatewayAttachment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r VPCGatewayAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *VPCGatewayAttachment) UnmarshalJSON(b []byte) error { *r = VPCGatewayAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go b/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go index 4b0c796bf9..713e0319f6 100644 --- a/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go +++ b/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VPCPeeringConnection AWS CloudFormation Resource (AWS::EC2::VPCPeeringConnection) @@ -43,14 +43,14 @@ type VPCPeeringConnection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *VPCPeeringConnection) AWSCloudFormationType() string { return "AWS::EC2::VPCPeeringConnection" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCPeeringConnection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPCPeeringConnection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCPeeringConnection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPCPeeringConnection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCPeeringConnection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPCPeeringConnection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPCPeeringConnection) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r VPCPeeringConnection) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *VPCPeeringConnection) UnmarshalJSON(b []byte) error { *r = VPCPeeringConnection(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpnconnection.go b/cloudformation/ec2/aws-ec2-vpnconnection.go index b8644e10cd..786b231442 100644 --- a/cloudformation/ec2/aws-ec2-vpnconnection.go +++ b/cloudformation/ec2/aws-ec2-vpnconnection.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VPNConnection AWS CloudFormation Resource (AWS::EC2::VPNConnection) @@ -48,14 +48,14 @@ type VPNConnection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-vpntunneloptionsspecifications VpnTunnelOptionsSpecifications []VPNConnection_VpnTunnelOptionsSpecification `json:"VpnTunnelOptionsSpecifications,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *VPNConnection) AWSCloudFormationType() string { return "AWS::EC2::VPNConnection" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNConnection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNConnection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNConnection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNConnection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNConnection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNConnection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPNConnection) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r VPNConnection) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *VPNConnection) UnmarshalJSON(b []byte) error { *r = VPNConnection(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go b/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go index 0f9759d099..cbb8eaefe3 100644 --- a/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go +++ b/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go @@ -1,7 +1,7 @@ package ec2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPNConnection_VpnTunnelOptionsSpecification AWS CloudFormation Resource (AWS::EC2::VPNConnection.VpnTunnelOptionsSpecification) @@ -18,53 +18,17 @@ type VPNConnection_VpnTunnelOptionsSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html#cfn-ec2-vpnconnection-vpntunneloptionsspecification-tunnelinsidecidr TunnelInsideCidr string `json:"TunnelInsideCidr,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *VPNConnection_VpnTunnelOptionsSpecification) AWSCloudFormationType() string { return "AWS::EC2::VPNConnection.VpnTunnelOptionsSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNConnection_VpnTunnelOptionsSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNConnection_VpnTunnelOptionsSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNConnection_VpnTunnelOptionsSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNConnection_VpnTunnelOptionsSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNConnection_VpnTunnelOptionsSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNConnection_VpnTunnelOptionsSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ec2/aws-ec2-vpnconnectionroute.go b/cloudformation/ec2/aws-ec2-vpnconnectionroute.go index b7115bde94..9580b3988d 100644 --- a/cloudformation/ec2/aws-ec2-vpnconnectionroute.go +++ b/cloudformation/ec2/aws-ec2-vpnconnectionroute.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPNConnectionRoute AWS CloudFormation Resource (AWS::EC2::VPNConnectionRoute) @@ -22,14 +22,14 @@ type VPNConnectionRoute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection-route.html#cfn-ec2-vpnconnectionroute-connectionid VpnConnectionId string `json:"VpnConnectionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *VPNConnectionRoute) AWSCloudFormationType() string { return "AWS::EC2::VPNConnectionRoute" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNConnectionRoute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNConnectionRoute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNConnectionRoute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNConnectionRoute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNConnectionRoute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNConnectionRoute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPNConnectionRoute) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r VPNConnectionRoute) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *VPNConnectionRoute) UnmarshalJSON(b []byte) error { *r = VPNConnectionRoute(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpngateway.go b/cloudformation/ec2/aws-ec2-vpngateway.go index 6dfd7ad529..7500608524 100644 --- a/cloudformation/ec2/aws-ec2-vpngateway.go +++ b/cloudformation/ec2/aws-ec2-vpngateway.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // VPNGateway AWS CloudFormation Resource (AWS::EC2::VPNGateway) @@ -28,14 +28,14 @@ type VPNGateway struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *VPNGateway) AWSCloudFormationType() string { return "AWS::EC2::VPNGateway" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNGateway) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNGateway) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNGateway) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNGateway) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNGateway) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNGateway) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPNGateway) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r VPNGateway) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *VPNGateway) UnmarshalJSON(b []byte) error { *r = VPNGateway(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go b/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go index 47fd1df849..4cc4e26a39 100644 --- a/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go +++ b/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VPNGatewayRoutePropagation AWS CloudFormation Resource (AWS::EC2::VPNGatewayRoutePropagation) @@ -22,14 +22,14 @@ type VPNGatewayRoutePropagation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid VpnGatewayId string `json:"VpnGatewayId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *VPNGatewayRoutePropagation) AWSCloudFormationType() string { return "AWS::EC2::VPNGatewayRoutePropagation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNGatewayRoutePropagation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VPNGatewayRoutePropagation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNGatewayRoutePropagation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VPNGatewayRoutePropagation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNGatewayRoutePropagation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VPNGatewayRoutePropagation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VPNGatewayRoutePropagation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r VPNGatewayRoutePropagation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *VPNGatewayRoutePropagation) UnmarshalJSON(b []byte) error { *r = VPNGatewayRoutePropagation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ecr/aws-ecr-repository.go b/cloudformation/ecr/aws-ecr-repository.go index 568c3f4805..bdba652d28 100644 --- a/cloudformation/ecr/aws-ecr-repository.go +++ b/cloudformation/ecr/aws-ecr-repository.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Repository AWS CloudFormation Resource (AWS::ECR::Repository) @@ -33,14 +33,14 @@ type Repository struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *Repository) AWSCloudFormationType() string { return "AWS::ECR::Repository" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Repository) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r Repository) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *Repository) UnmarshalJSON(b []byte) error { *r = Repository(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go b/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go index 9c9540db29..aee122b8fe 100644 --- a/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go +++ b/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go @@ -1,7 +1,7 @@ package ecr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Repository_LifecyclePolicy AWS CloudFormation Resource (AWS::ECR::Repository.LifecyclePolicy) @@ -18,53 +18,17 @@ type Repository_LifecyclePolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-lifecyclepolicy.html#cfn-ecr-repository-lifecyclepolicy-registryid RegistryId string `json:"RegistryId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Repository_LifecyclePolicy) AWSCloudFormationType() string { return "AWS::ECR::Repository.LifecyclePolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_LifecyclePolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Repository_LifecyclePolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_LifecyclePolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Repository_LifecyclePolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_LifecyclePolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Repository_LifecyclePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-cluster.go b/cloudformation/ecs/aws-ecs-cluster.go index 4b261c7c0b..b15e46c989 100644 --- a/cloudformation/ecs/aws-ecs-cluster.go +++ b/cloudformation/ecs/aws-ecs-cluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Cluster AWS CloudFormation Resource (AWS::ECS::Cluster) @@ -18,19 +18,24 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-clustername ClusterName string `json:"ClusterName,omitempty"` + // ClusterSettings AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-clustersettings + ClusterSettings []Cluster_ClusterSetting `json:"ClusterSettings,omitempty"` + // Tags AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html#cfn-ecs-cluster-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +43,6 @@ func (r *Cluster) AWSCloudFormationType() string { return "AWS::ECS::Cluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Cluster) MarshalJSON() ([]byte, error) { @@ -87,9 +56,9 @@ func (r Cluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +87,13 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { *r = Cluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ecs/aws-ecs-cluster_clustersetting.go b/cloudformation/ecs/aws-ecs-cluster_clustersetting.go new file mode 100644 index 0000000000..f739c37013 --- /dev/null +++ b/cloudformation/ecs/aws-ecs-cluster_clustersetting.go @@ -0,0 +1,34 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Cluster_ClusterSetting AWS CloudFormation Resource (AWS::ECS::Cluster.ClusterSetting) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-clustersetting.html +type Cluster_ClusterSetting struct { + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-clustersetting.html#cfn-ecs-cluster-clustersetting-name + Name string `json:"Name,omitempty"` + + // Value AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-cluster-clustersetting.html#cfn-ecs-cluster-clustersetting-value + Value string `json:"Value,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Cluster_ClusterSetting) AWSCloudFormationType() string { + return "AWS::ECS::Cluster.ClusterSetting" +} diff --git a/cloudformation/ecs/aws-ecs-primarytaskset.go b/cloudformation/ecs/aws-ecs-primarytaskset.go new file mode 100644 index 0000000000..a3b04cfdba --- /dev/null +++ b/cloudformation/ecs/aws-ecs-primarytaskset.go @@ -0,0 +1,98 @@ +package ecs + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// PrimaryTaskSet AWS CloudFormation Resource (AWS::ECS::PrimaryTaskSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-primarytaskset.html +type PrimaryTaskSet struct { + + // Cluster AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-primarytaskset.html#cfn-ecs-primarytaskset-cluster + Cluster string `json:"Cluster,omitempty"` + + // Service AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-primarytaskset.html#cfn-ecs-primarytaskset-service + Service string `json:"Service,omitempty"` + + // TaskSetId AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-primarytaskset.html#cfn-ecs-primarytaskset-tasksetid + TaskSetId string `json:"TaskSetId,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *PrimaryTaskSet) AWSCloudFormationType() string { + return "AWS::ECS::PrimaryTaskSet" +} + +// 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 PrimaryTaskSet) MarshalJSON() ([]byte, error) { + type Properties PrimaryTaskSet + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *PrimaryTaskSet) UnmarshalJSON(b []byte) error { + type Properties PrimaryTaskSet + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = PrimaryTaskSet(*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) + } + return nil +} diff --git a/cloudformation/ecs/aws-ecs-service.go b/cloudformation/ecs/aws-ecs-service.go index 7a921d0cbf..56f431d08a 100644 --- a/cloudformation/ecs/aws-ecs-service.go +++ b/cloudformation/ecs/aws-ecs-service.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Service AWS CloudFormation Resource (AWS::ECS::Service) @@ -23,6 +23,11 @@ type Service struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-deploymentconfiguration DeploymentConfiguration *Service_DeploymentConfiguration `json:"DeploymentConfiguration,omitempty"` + // DeploymentController AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-deploymentcontroller + DeploymentController *Service_DeploymentController `json:"DeploymentController,omitempty"` + // DesiredCount AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-desiredcount @@ -99,18 +104,18 @@ type Service struct { Tags []tags.Tag `json:"Tags,omitempty"` // TaskDefinition AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-taskdefinition TaskDefinition string `json:"TaskDefinition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -118,42 +123,6 @@ func (r *Service) AWSCloudFormationType() string { return "AWS::ECS::Service" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Service) MarshalJSON() ([]byte, error) { @@ -167,9 +136,9 @@ func (r Service) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -198,13 +167,13 @@ func (r *Service) UnmarshalJSON(b []byte) error { *r = Service(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go b/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go index 5f8ae08455..be23e04a80 100644 --- a/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go +++ b/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_AwsVpcConfiguration AWS CloudFormation Resource (AWS::ECS::Service.AwsVpcConfiguration) @@ -23,53 +23,17 @@ type Service_AwsVpcConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html#cfn-ecs-service-awsvpcconfiguration-subnets Subnets []string `json:"Subnets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_AwsVpcConfiguration) AWSCloudFormationType() string { return "AWS::ECS::Service.AwsVpcConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_AwsVpcConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_AwsVpcConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_AwsVpcConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_AwsVpcConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_AwsVpcConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_AwsVpcConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go b/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go index 9dbd904b16..56c1f78297 100644 --- a/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go +++ b/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_DeploymentConfiguration AWS CloudFormation Resource (AWS::ECS::Service.DeploymentConfiguration) @@ -18,53 +18,17 @@ type Service_DeploymentConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-minimumhealthypercent MinimumHealthyPercent int `json:"MinimumHealthyPercent,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_DeploymentConfiguration) AWSCloudFormationType() string { return "AWS::ECS::Service.DeploymentConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_DeploymentConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_DeploymentConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_DeploymentConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_DeploymentConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_DeploymentConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_DeploymentConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go b/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go new file mode 100644 index 0000000000..6253877818 --- /dev/null +++ b/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go @@ -0,0 +1,29 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Service_DeploymentController AWS CloudFormation Resource (AWS::ECS::Service.DeploymentController) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html +type Service_DeploymentController struct { + + // Type AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentcontroller.html#cfn-ecs-service-deploymentcontroller-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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Service_DeploymentController) AWSCloudFormationType() string { + return "AWS::ECS::Service.DeploymentController" +} diff --git a/cloudformation/ecs/aws-ecs-service_loadbalancer.go b/cloudformation/ecs/aws-ecs-service_loadbalancer.go index 4edd2b3125..40e1f4168e 100644 --- a/cloudformation/ecs/aws-ecs-service_loadbalancer.go +++ b/cloudformation/ecs/aws-ecs-service_loadbalancer.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_LoadBalancer AWS CloudFormation Resource (AWS::ECS::Service.LoadBalancer) @@ -28,53 +28,17 @@ type Service_LoadBalancer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-loadbalancers.html#cfn-ecs-service-loadbalancers-targetgrouparn TargetGroupArn string `json:"TargetGroupArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_LoadBalancer) AWSCloudFormationType() string { return "AWS::ECS::Service.LoadBalancer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_LoadBalancer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_LoadBalancer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_LoadBalancer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_LoadBalancer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_LoadBalancer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_LoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-service_networkconfiguration.go b/cloudformation/ecs/aws-ecs-service_networkconfiguration.go index 7fe3ef449a..3fa9e160bb 100644 --- a/cloudformation/ecs/aws-ecs-service_networkconfiguration.go +++ b/cloudformation/ecs/aws-ecs-service_networkconfiguration.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_NetworkConfiguration AWS CloudFormation Resource (AWS::ECS::Service.NetworkConfiguration) @@ -13,53 +13,17 @@ type Service_NetworkConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-networkconfiguration.html#cfn-ecs-service-networkconfiguration-awsvpcconfiguration AwsvpcConfiguration *Service_AwsVpcConfiguration `json:"AwsvpcConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_NetworkConfiguration) AWSCloudFormationType() string { return "AWS::ECS::Service.NetworkConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_NetworkConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_NetworkConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_NetworkConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_NetworkConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_NetworkConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_NetworkConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-service_placementconstraint.go b/cloudformation/ecs/aws-ecs-service_placementconstraint.go index bb85f7e7f3..4434f8c225 100644 --- a/cloudformation/ecs/aws-ecs-service_placementconstraint.go +++ b/cloudformation/ecs/aws-ecs-service_placementconstraint.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_PlacementConstraint AWS CloudFormation Resource (AWS::ECS::Service.PlacementConstraint) @@ -18,53 +18,17 @@ type Service_PlacementConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_PlacementConstraint) AWSCloudFormationType() string { return "AWS::ECS::Service.PlacementConstraint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_PlacementConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_PlacementConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_PlacementConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_PlacementConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_PlacementConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_PlacementConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-service_placementstrategy.go b/cloudformation/ecs/aws-ecs-service_placementstrategy.go index a05e933485..18f3124cee 100644 --- a/cloudformation/ecs/aws-ecs-service_placementstrategy.go +++ b/cloudformation/ecs/aws-ecs-service_placementstrategy.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_PlacementStrategy AWS CloudFormation Resource (AWS::ECS::Service.PlacementStrategy) @@ -18,53 +18,17 @@ type Service_PlacementStrategy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html#cfn-ecs-service-placementstrategy-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_PlacementStrategy) AWSCloudFormationType() string { return "AWS::ECS::Service.PlacementStrategy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_PlacementStrategy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_PlacementStrategy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_PlacementStrategy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_PlacementStrategy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_PlacementStrategy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_PlacementStrategy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-service_serviceregistry.go b/cloudformation/ecs/aws-ecs-service_serviceregistry.go index 13c51d4401..02afbf9866 100644 --- a/cloudformation/ecs/aws-ecs-service_serviceregistry.go +++ b/cloudformation/ecs/aws-ecs-service_serviceregistry.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_ServiceRegistry AWS CloudFormation Resource (AWS::ECS::Service.ServiceRegistry) @@ -28,53 +28,17 @@ type Service_ServiceRegistry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceregistry.html#cfn-ecs-service-serviceregistry-registryarn RegistryArn string `json:"RegistryArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_ServiceRegistry) AWSCloudFormationType() string { return "AWS::ECS::Service.ServiceRegistry" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_ServiceRegistry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_ServiceRegistry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_ServiceRegistry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_ServiceRegistry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_ServiceRegistry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_ServiceRegistry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition.go b/cloudformation/ecs/aws-ecs-taskdefinition.go index 06cc4c5c48..83a7a596a0 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TaskDefinition AWS CloudFormation Resource (AWS::ECS::TaskDefinition) @@ -33,6 +33,11 @@ type TaskDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-family Family string `json:"Family,omitempty"` + // InferenceAccelerators AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-inferenceaccelerators + InferenceAccelerators []TaskDefinition_InferenceAccelerator `json:"InferenceAccelerators,omitempty"` + // IpcMode AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-ipcmode @@ -83,14 +88,14 @@ type TaskDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-volumes Volumes []TaskDefinition_Volume `json:"Volumes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -98,42 +103,6 @@ func (r *TaskDefinition) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TaskDefinition) MarshalJSON() ([]byte, error) { @@ -147,9 +116,9 @@ func (r TaskDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -178,13 +147,13 @@ func (r *TaskDefinition) UnmarshalJSON(b []byte) error { *r = TaskDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go b/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go index f849b0728e..e3285ee2bc 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_ContainerDefinition AWS CloudFormation Resource (AWS::ECS::TaskDefinition.ContainerDefinition) @@ -68,6 +68,11 @@ type TaskDefinition_ContainerDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-extrahosts ExtraHosts []TaskDefinition_HostEntry `json:"ExtraHosts,omitempty"` + // FirelensConfiguration AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-firelensconfiguration + FirelensConfiguration *TaskDefinition_FirelensConfiguration `json:"FirelensConfiguration,omitempty"` + // HealthCheck AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-healthcheck @@ -193,53 +198,17 @@ type TaskDefinition_ContainerDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-workingdirectory WorkingDirectory string `json:"WorkingDirectory,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_ContainerDefinition) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.ContainerDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ContainerDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ContainerDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ContainerDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ContainerDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ContainerDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ContainerDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go b/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go index 459595cee3..356210124a 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_ContainerDependency AWS CloudFormation Resource (AWS::ECS::TaskDefinition.ContainerDependency) @@ -18,53 +18,17 @@ type TaskDefinition_ContainerDependency struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdependency.html#cfn-ecs-taskdefinition-containerdependency-containername ContainerName string `json:"ContainerName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_ContainerDependency) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.ContainerDependency" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ContainerDependency) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ContainerDependency) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ContainerDependency) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ContainerDependency) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ContainerDependency) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ContainerDependency) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_device.go b/cloudformation/ecs/aws-ecs-taskdefinition_device.go index 6d48a5a85b..a0662662a9 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_device.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_device.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_Device AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Device) @@ -23,53 +23,17 @@ type TaskDefinition_Device struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-device.html#cfn-ecs-taskdefinition-device-permissions Permissions []string `json:"Permissions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_Device) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.Device" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Device) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Device) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Device) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Device) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Device) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Device) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go index 5e6a1c68e2..ad07bc5f3c 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_DockerVolumeConfiguration AWS CloudFormation Resource (AWS::ECS::TaskDefinition.DockerVolumeConfiguration) @@ -33,53 +33,17 @@ type TaskDefinition_DockerVolumeConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-dockervolumeconfiguration.html#cfn-ecs-taskdefinition-dockervolumeconfiguration-scope Scope string `json:"Scope,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_DockerVolumeConfiguration) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.DockerVolumeConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_DockerVolumeConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_DockerVolumeConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_DockerVolumeConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_DockerVolumeConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_DockerVolumeConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_DockerVolumeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go new file mode 100644 index 0000000000..c2887faf6d --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go @@ -0,0 +1,34 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskDefinition_FirelensConfiguration AWS CloudFormation Resource (AWS::ECS::TaskDefinition.FirelensConfiguration) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-firelensconfiguration.html +type TaskDefinition_FirelensConfiguration struct { + + // Options AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-firelensconfiguration.html#cfn-ecs-taskdefinition-firelensconfiguration-options + Options map[string]string `json:"Options,omitempty"` + + // Type AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-firelensconfiguration.html#cfn-ecs-taskdefinition-firelensconfiguration-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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskDefinition_FirelensConfiguration) AWSCloudFormationType() string { + return "AWS::ECS::TaskDefinition.FirelensConfiguration" +} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go b/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go index 4d06f05d1e..5d605e98e5 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_HealthCheck AWS CloudFormation Resource (AWS::ECS::TaskDefinition.HealthCheck) @@ -33,53 +33,17 @@ type TaskDefinition_HealthCheck struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-healthcheck.html#cfn-ecs-taskdefinition-healthcheck-timeout Timeout int `json:"Timeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_HealthCheck) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.HealthCheck" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_HealthCheck) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_HealthCheck) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_HealthCheck) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_HealthCheck) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_HealthCheck) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go b/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go index 86e75f0d97..8f823bc083 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_HostEntry AWS CloudFormation Resource (AWS::ECS::TaskDefinition.HostEntry) @@ -18,53 +18,17 @@ type TaskDefinition_HostEntry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-hostentry.html#cfn-ecs-taskdefinition-containerdefinition-hostentry-ipaddress IpAddress string `json:"IpAddress,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_HostEntry) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.HostEntry" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_HostEntry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_HostEntry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_HostEntry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_HostEntry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_HostEntry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_HostEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go b/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go index 0d57508091..e7d151d24c 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_HostVolumeProperties AWS CloudFormation Resource (AWS::ECS::TaskDefinition.HostVolumeProperties) @@ -13,53 +13,17 @@ type TaskDefinition_HostVolumeProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes-host.html#cfn-ecs-taskdefinition-volumes-host-sourcepath SourcePath string `json:"SourcePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_HostVolumeProperties) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.HostVolumeProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_HostVolumeProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_HostVolumeProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_HostVolumeProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_HostVolumeProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_HostVolumeProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_HostVolumeProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go b/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go new file mode 100644 index 0000000000..fc29657315 --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go @@ -0,0 +1,39 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskDefinition_InferenceAccelerator AWS CloudFormation Resource (AWS::ECS::TaskDefinition.InferenceAccelerator) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-inferenceaccelerator.html +type TaskDefinition_InferenceAccelerator struct { + + // DeviceName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-inferenceaccelerator.html#cfn-ecs-taskdefinition-inferenceaccelerator-devicename + DeviceName string `json:"DeviceName,omitempty"` + + // DevicePolicy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-inferenceaccelerator.html#cfn-ecs-taskdefinition-inferenceaccelerator-devicepolicy + DevicePolicy string `json:"DevicePolicy,omitempty"` + + // DeviceType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-inferenceaccelerator.html#cfn-ecs-taskdefinition-inferenceaccelerator-devicetype + DeviceType string `json:"DeviceType,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskDefinition_InferenceAccelerator) AWSCloudFormationType() string { + return "AWS::ECS::TaskDefinition.InferenceAccelerator" +} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go b/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go index 43bc4aff9c..81579cf4f6 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_KernelCapabilities AWS CloudFormation Resource (AWS::ECS::TaskDefinition.KernelCapabilities) @@ -18,53 +18,17 @@ type TaskDefinition_KernelCapabilities struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-kernelcapabilities.html#cfn-ecs-taskdefinition-kernelcapabilities-drop Drop []string `json:"Drop,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_KernelCapabilities) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.KernelCapabilities" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_KernelCapabilities) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_KernelCapabilities) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_KernelCapabilities) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_KernelCapabilities) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_KernelCapabilities) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_KernelCapabilities) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go b/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go index 1b12d9bd6b..e3121488fb 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_KeyValuePair AWS CloudFormation Resource (AWS::ECS::TaskDefinition.KeyValuePair) @@ -18,53 +18,17 @@ type TaskDefinition_KeyValuePair struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-environment.html#cfn-ecs-taskdefinition-containerdefinition-environment-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_KeyValuePair) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.KeyValuePair" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_KeyValuePair) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_KeyValuePair) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_KeyValuePair) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_KeyValuePair) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_KeyValuePair) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_KeyValuePair) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go b/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go index fcacdfc7b7..1f05735708 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_LinuxParameters AWS CloudFormation Resource (AWS::ECS::TaskDefinition.LinuxParameters) @@ -23,63 +23,37 @@ type TaskDefinition_LinuxParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-initprocessenabled InitProcessEnabled bool `json:"InitProcessEnabled,omitempty"` + // MaxSwap AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-maxswap + MaxSwap int `json:"MaxSwap,omitempty"` + // SharedMemorySize AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-sharedmemorysize SharedMemorySize int `json:"SharedMemorySize,omitempty"` + // Swappiness AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-swappiness + Swappiness int `json:"Swappiness,omitempty"` + // Tmpfs AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-linuxparameters.html#cfn-ecs-taskdefinition-linuxparameters-tmpfs Tmpfs []TaskDefinition_Tmpfs `json:"Tmpfs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_LinuxParameters) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.LinuxParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_LinuxParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_LinuxParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_LinuxParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_LinuxParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_LinuxParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_LinuxParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go index 68af506ab8..6823e72712 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_LogConfiguration AWS CloudFormation Resource (AWS::ECS::TaskDefinition.LogConfiguration) @@ -23,53 +23,17 @@ type TaskDefinition_LogConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-logconfiguration.html#cfn-ecs-taskdefinition-logconfiguration-secretoptions SecretOptions []TaskDefinition_Secret `json:"SecretOptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_LogConfiguration) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.LogConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_LogConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_LogConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_LogConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_LogConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_LogConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_LogConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go b/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go index d99dbad239..dd8fd58afb 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_MountPoint AWS CloudFormation Resource (AWS::ECS::TaskDefinition.MountPoint) @@ -23,53 +23,17 @@ type TaskDefinition_MountPoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-mountpoints.html#cfn-ecs-taskdefinition-containerdefinition-mountpoints-sourcevolume SourceVolume string `json:"SourceVolume,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_MountPoint) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.MountPoint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_MountPoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_MountPoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_MountPoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_MountPoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_MountPoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_MountPoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go b/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go index 4fd8e36e70..0432894ecf 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_PortMapping AWS CloudFormation Resource (AWS::ECS::TaskDefinition.PortMapping) @@ -23,53 +23,17 @@ type TaskDefinition_PortMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-portmappings.html#cfn-ecs-taskdefinition-containerdefinition-portmappings-sourcevolume Protocol string `json:"Protocol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_PortMapping) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.PortMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_PortMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_PortMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_PortMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_PortMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_PortMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_PortMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go index 07e14767b7..68ebaade7a 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_ProxyConfiguration AWS CloudFormation Resource (AWS::ECS::TaskDefinition.ProxyConfiguration) @@ -23,53 +23,17 @@ type TaskDefinition_ProxyConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-proxyconfiguration.html#cfn-ecs-taskdefinition-proxyconfiguration-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_ProxyConfiguration) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.ProxyConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ProxyConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ProxyConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ProxyConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ProxyConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ProxyConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ProxyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go b/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go index 8dc7342dc8..c1300656ca 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_RepositoryCredentials AWS CloudFormation Resource (AWS::ECS::TaskDefinition.RepositoryCredentials) @@ -13,53 +13,17 @@ type TaskDefinition_RepositoryCredentials struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-repositorycredentials.html#cfn-ecs-taskdefinition-repositorycredentials-credentialsparameter CredentialsParameter string `json:"CredentialsParameter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_RepositoryCredentials) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.RepositoryCredentials" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_RepositoryCredentials) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_RepositoryCredentials) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_RepositoryCredentials) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_RepositoryCredentials) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_RepositoryCredentials) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_RepositoryCredentials) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go b/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go index 0c7bf0ae95..b8a64badb2 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_ResourceRequirement AWS CloudFormation Resource (AWS::ECS::TaskDefinition.ResourceRequirement) @@ -18,53 +18,17 @@ type TaskDefinition_ResourceRequirement struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-resourcerequirement.html#cfn-ecs-taskdefinition-resourcerequirement-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_ResourceRequirement) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.ResourceRequirement" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ResourceRequirement) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_ResourceRequirement) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ResourceRequirement) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_ResourceRequirement) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ResourceRequirement) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_ResourceRequirement) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_secret.go b/cloudformation/ecs/aws-ecs-taskdefinition_secret.go index 6e03398618..7f56aa4a47 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_secret.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_secret.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_Secret AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Secret) @@ -18,53 +18,17 @@ type TaskDefinition_Secret struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-secret.html#cfn-ecs-taskdefinition-secret-valuefrom ValueFrom string `json:"ValueFrom,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_Secret) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.Secret" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Secret) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Secret) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Secret) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Secret) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Secret) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Secret) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go b/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go index f2b5cce2e9..2862ca1970 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_SystemControl AWS CloudFormation Resource (AWS::ECS::TaskDefinition.SystemControl) @@ -18,53 +18,17 @@ type TaskDefinition_SystemControl struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-systemcontrol.html#cfn-ecs-taskdefinition-systemcontrol-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_SystemControl) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.SystemControl" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_SystemControl) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_SystemControl) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_SystemControl) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_SystemControl) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_SystemControl) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_SystemControl) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go b/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go index e6e084e5c6..9277d8f96c 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_TaskDefinitionPlacementConstraint AWS CloudFormation Resource (AWS::ECS::TaskDefinition.TaskDefinitionPlacementConstraint) @@ -18,53 +18,17 @@ type TaskDefinition_TaskDefinitionPlacementConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html#cfn-ecs-taskdefinition-taskdefinitionplacementconstraint-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_TaskDefinitionPlacementConstraint) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.TaskDefinitionPlacementConstraint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_TaskDefinitionPlacementConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_TaskDefinitionPlacementConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_TaskDefinitionPlacementConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_TaskDefinitionPlacementConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_TaskDefinitionPlacementConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_TaskDefinitionPlacementConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go b/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go index 96ad3a2328..d2e7b0bb97 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_Tmpfs AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Tmpfs) @@ -23,53 +23,17 @@ type TaskDefinition_Tmpfs struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-tmpfs.html#cfn-ecs-taskdefinition-tmpfs-size Size int `json:"Size"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_Tmpfs) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.Tmpfs" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Tmpfs) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Tmpfs) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Tmpfs) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Tmpfs) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Tmpfs) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Tmpfs) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go b/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go index e3e4794dd2..12d6ee1926 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_Ulimit AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Ulimit) @@ -23,53 +23,17 @@ type TaskDefinition_Ulimit struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-ulimit.html#cfn-ecs-taskdefinition-containerdefinition-ulimit-softlimit SoftLimit int `json:"SoftLimit"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_Ulimit) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.Ulimit" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Ulimit) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Ulimit) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Ulimit) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Ulimit) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Ulimit) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Ulimit) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_volume.go b/cloudformation/ecs/aws-ecs-taskdefinition_volume.go index 4479172434..080a1c7183 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_volume.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_volume.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_Volume AWS CloudFormation Resource (AWS::ECS::TaskDefinition.Volume) @@ -23,53 +23,17 @@ type TaskDefinition_Volume struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html#cfn-ecs-taskdefinition-volumes-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_Volume) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.Volume" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Volume) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_Volume) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Volume) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_Volume) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Volume) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go b/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go index 6d349f470b..74a3ba3440 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go @@ -1,7 +1,7 @@ package ecs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TaskDefinition_VolumeFrom AWS CloudFormation Resource (AWS::ECS::TaskDefinition.VolumeFrom) @@ -18,53 +18,17 @@ type TaskDefinition_VolumeFrom struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions-volumesfrom.html#cfn-ecs-taskdefinition-containerdefinition-volumesfrom-sourcecontainer SourceContainer string `json:"SourceContainer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TaskDefinition_VolumeFrom) AWSCloudFormationType() string { return "AWS::ECS::TaskDefinition.VolumeFrom" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_VolumeFrom) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TaskDefinition_VolumeFrom) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_VolumeFrom) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TaskDefinition_VolumeFrom) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_VolumeFrom) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TaskDefinition_VolumeFrom) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ecs/aws-ecs-taskset.go b/cloudformation/ecs/aws-ecs-taskset.go new file mode 100644 index 0000000000..1a7a8790bc --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskset.go @@ -0,0 +1,133 @@ +package ecs + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskSet AWS CloudFormation Resource (AWS::ECS::TaskSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html +type TaskSet struct { + + // Cluster AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-cluster + Cluster string `json:"Cluster,omitempty"` + + // ExternalId AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-externalid + ExternalId string `json:"ExternalId,omitempty"` + + // LaunchType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-launchtype + LaunchType string `json:"LaunchType,omitempty"` + + // LoadBalancers AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-loadbalancers + LoadBalancers []TaskSet_LoadBalancer `json:"LoadBalancers,omitempty"` + + // NetworkConfiguration AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-networkconfiguration + NetworkConfiguration *TaskSet_NetworkConfiguration `json:"NetworkConfiguration,omitempty"` + + // PlatformVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-platformversion + PlatformVersion string `json:"PlatformVersion,omitempty"` + + // Scale AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-scale + Scale *TaskSet_Scale `json:"Scale,omitempty"` + + // Service AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-service + Service string `json:"Service,omitempty"` + + // ServiceRegistries AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-serviceregistries + ServiceRegistries []TaskSet_ServiceRegistry `json:"ServiceRegistries,omitempty"` + + // TaskDefinition AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskset.html#cfn-ecs-taskset-taskdefinition + TaskDefinition string `json:"TaskDefinition,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskSet) AWSCloudFormationType() string { + return "AWS::ECS::TaskSet" +} + +// 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 TaskSet) MarshalJSON() ([]byte, error) { + type Properties TaskSet + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *TaskSet) UnmarshalJSON(b []byte) error { + type Properties TaskSet + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = TaskSet(*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) + } + return nil +} diff --git a/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go b/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go new file mode 100644 index 0000000000..b2bb60b4fb --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go @@ -0,0 +1,39 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskSet_AwsVpcConfiguration AWS CloudFormation Resource (AWS::ECS::TaskSet.AwsVpcConfiguration) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-awsvpcconfiguration.html +type TaskSet_AwsVpcConfiguration struct { + + // AssignPublicIp AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-awsvpcconfiguration.html#cfn-ecs-taskset-awsvpcconfiguration-assignpublicip + AssignPublicIp string `json:"AssignPublicIp,omitempty"` + + // SecurityGroups AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-awsvpcconfiguration.html#cfn-ecs-taskset-awsvpcconfiguration-securitygroups + SecurityGroups []string `json:"SecurityGroups,omitempty"` + + // Subnets AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-awsvpcconfiguration.html#cfn-ecs-taskset-awsvpcconfiguration-subnets + Subnets []string `json:"Subnets,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskSet_AwsVpcConfiguration) AWSCloudFormationType() string { + return "AWS::ECS::TaskSet.AwsVpcConfiguration" +} diff --git a/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go b/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go new file mode 100644 index 0000000000..4179f599ec --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go @@ -0,0 +1,44 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskSet_LoadBalancer AWS CloudFormation Resource (AWS::ECS::TaskSet.LoadBalancer) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-loadbalancer.html +type TaskSet_LoadBalancer struct { + + // ContainerName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-loadbalancer.html#cfn-ecs-taskset-loadbalancer-containername + ContainerName string `json:"ContainerName,omitempty"` + + // ContainerPort AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-loadbalancer.html#cfn-ecs-taskset-loadbalancer-containerport + ContainerPort int `json:"ContainerPort,omitempty"` + + // LoadBalancerName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-loadbalancer.html#cfn-ecs-taskset-loadbalancer-loadbalancername + LoadBalancerName string `json:"LoadBalancerName,omitempty"` + + // TargetGroupArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-loadbalancer.html#cfn-ecs-taskset-loadbalancer-targetgrouparn + TargetGroupArn string `json:"TargetGroupArn,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskSet_LoadBalancer) AWSCloudFormationType() string { + return "AWS::ECS::TaskSet.LoadBalancer" +} diff --git a/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go b/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go new file mode 100644 index 0000000000..f0721bdb21 --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go @@ -0,0 +1,29 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskSet_NetworkConfiguration AWS CloudFormation Resource (AWS::ECS::TaskSet.NetworkConfiguration) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-networkconfiguration.html +type TaskSet_NetworkConfiguration struct { + + // AwsVpcConfiguration AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-networkconfiguration.html#cfn-ecs-taskset-networkconfiguration-awsvpcconfiguration + AwsVpcConfiguration *TaskSet_AwsVpcConfiguration `json:"AwsVpcConfiguration,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskSet_NetworkConfiguration) AWSCloudFormationType() string { + return "AWS::ECS::TaskSet.NetworkConfiguration" +} diff --git a/cloudformation/ecs/aws-ecs-taskset_scale.go b/cloudformation/ecs/aws-ecs-taskset_scale.go new file mode 100644 index 0000000000..9a1d7c64c8 --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskset_scale.go @@ -0,0 +1,34 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskSet_Scale AWS CloudFormation Resource (AWS::ECS::TaskSet.Scale) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-scale.html +type TaskSet_Scale struct { + + // Unit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-scale.html#cfn-ecs-taskset-scale-unit + Unit string `json:"Unit,omitempty"` + + // Value AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-scale.html#cfn-ecs-taskset-scale-value + Value float64 `json:"Value,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskSet_Scale) AWSCloudFormationType() string { + return "AWS::ECS::TaskSet.Scale" +} diff --git a/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go b/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go new file mode 100644 index 0000000000..fc1ecc16fa --- /dev/null +++ b/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go @@ -0,0 +1,44 @@ +package ecs + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// TaskSet_ServiceRegistry AWS CloudFormation Resource (AWS::ECS::TaskSet.ServiceRegistry) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-serviceregistry.html +type TaskSet_ServiceRegistry struct { + + // ContainerName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-serviceregistry.html#cfn-ecs-taskset-serviceregistry-containername + ContainerName string `json:"ContainerName,omitempty"` + + // ContainerPort AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-serviceregistry.html#cfn-ecs-taskset-serviceregistry-containerport + ContainerPort int `json:"ContainerPort,omitempty"` + + // Port AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-serviceregistry.html#cfn-ecs-taskset-serviceregistry-port + Port int `json:"Port,omitempty"` + + // RegistryArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskset-serviceregistry.html#cfn-ecs-taskset-serviceregistry-registryarn + RegistryArn string `json:"RegistryArn,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *TaskSet_ServiceRegistry) AWSCloudFormationType() string { + return "AWS::ECS::TaskSet.ServiceRegistry" +} diff --git a/cloudformation/efs/aws-efs-filesystem.go b/cloudformation/efs/aws-efs-filesystem.go index 23275c9266..aa38daec35 100644 --- a/cloudformation/efs/aws-efs-filesystem.go +++ b/cloudformation/efs/aws-efs-filesystem.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FileSystem AWS CloudFormation Resource (AWS::EFS::FileSystem) @@ -47,14 +47,14 @@ type FileSystem struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-elasticfilesystem-filesystem-throughputmode ThroughputMode string `json:"ThroughputMode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *FileSystem) AWSCloudFormationType() string { return "AWS::EFS::FileSystem" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FileSystem) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r FileSystem) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *FileSystem) UnmarshalJSON(b []byte) error { *r = FileSystem(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go b/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go index 606b457a87..cfaf15e414 100644 --- a/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go +++ b/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go @@ -1,7 +1,7 @@ package efs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FileSystem_ElasticFileSystemTag AWS CloudFormation Resource (AWS::EFS::FileSystem.ElasticFileSystemTag) @@ -18,53 +18,17 @@ type FileSystem_ElasticFileSystemTag struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemtags.html#cfn-efs-filesystem-filesystemtags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FileSystem_ElasticFileSystemTag) AWSCloudFormationType() string { return "AWS::EFS::FileSystem.ElasticFileSystemTag" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_ElasticFileSystemTag) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_ElasticFileSystemTag) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_ElasticFileSystemTag) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_ElasticFileSystemTag) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_ElasticFileSystemTag) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_ElasticFileSystemTag) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go b/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go index 7b78786a07..054d75fcd8 100644 --- a/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go +++ b/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go @@ -1,7 +1,7 @@ package efs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FileSystem_LifecyclePolicy AWS CloudFormation Resource (AWS::EFS::FileSystem.LifecyclePolicy) @@ -13,53 +13,17 @@ type FileSystem_LifecyclePolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticfilesystem-filesystem-lifecyclepolicy.html#cfn-elasticfilesystem-filesystem-lifecyclepolicy-transitiontoia TransitionToIA string `json:"TransitionToIA,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FileSystem_LifecyclePolicy) AWSCloudFormationType() string { return "AWS::EFS::FileSystem.LifecyclePolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_LifecyclePolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_LifecyclePolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_LifecyclePolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_LifecyclePolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_LifecyclePolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_LifecyclePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/efs/aws-efs-mounttarget.go b/cloudformation/efs/aws-efs-mounttarget.go index 88f0da5cda..02975842b4 100644 --- a/cloudformation/efs/aws-efs-mounttarget.go +++ b/cloudformation/efs/aws-efs-mounttarget.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MountTarget AWS CloudFormation Resource (AWS::EFS::MountTarget) @@ -32,14 +32,14 @@ type MountTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *MountTarget) AWSCloudFormationType() string { return "AWS::EFS::MountTarget" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MountTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MountTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MountTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MountTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MountTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MountTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MountTarget) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r MountTarget) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *MountTarget) UnmarshalJSON(b []byte) error { *r = MountTarget(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/eks/aws-eks-cluster.go b/cloudformation/eks/aws-eks-cluster.go index 9724a51b91..ab5c7ae8a0 100644 --- a/cloudformation/eks/aws-eks-cluster.go +++ b/cloudformation/eks/aws-eks-cluster.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster AWS CloudFormation Resource (AWS::EKS::Cluster) @@ -32,14 +32,14 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-cluster.html#cfn-eks-cluster-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Cluster) AWSCloudFormationType() string { return "AWS::EKS::Cluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Cluster) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Cluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { *r = Cluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go b/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go index bdecf7178d..ed838dc643 100644 --- a/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go +++ b/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go @@ -1,7 +1,7 @@ package eks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ResourcesVpcConfig AWS CloudFormation Resource (AWS::EKS::Cluster.ResourcesVpcConfig) @@ -18,53 +18,17 @@ type Cluster_ResourcesVpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-resourcesvpcconfig.html#cfn-eks-cluster-resourcesvpcconfig-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ResourcesVpcConfig) AWSCloudFormationType() string { return "AWS::EKS::Cluster.ResourcesVpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ResourcesVpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ResourcesVpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ResourcesVpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ResourcesVpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ResourcesVpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ResourcesVpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/eks/aws-eks-nodegroup.go b/cloudformation/eks/aws-eks-nodegroup.go new file mode 100644 index 0000000000..c3fa14e8b4 --- /dev/null +++ b/cloudformation/eks/aws-eks-nodegroup.go @@ -0,0 +1,153 @@ +package eks + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Nodegroup AWS CloudFormation Resource (AWS::EKS::Nodegroup) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html +type Nodegroup struct { + + // AmiType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-amitype + AmiType string `json:"AmiType,omitempty"` + + // ClusterName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-clustername + ClusterName string `json:"ClusterName,omitempty"` + + // DiskSize AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-disksize + DiskSize float64 `json:"DiskSize,omitempty"` + + // ForceUpdateEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-forceupdateenabled + ForceUpdateEnabled bool `json:"ForceUpdateEnabled,omitempty"` + + // InstanceTypes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypes + InstanceTypes []string `json:"InstanceTypes,omitempty"` + + // Labels AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-labels + Labels interface{} `json:"Labels,omitempty"` + + // NodeRole AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-noderole + NodeRole string `json:"NodeRole,omitempty"` + + // NodegroupName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-nodegroupname + NodegroupName string `json:"NodegroupName,omitempty"` + + // ReleaseVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-releaseversion + ReleaseVersion string `json:"ReleaseVersion,omitempty"` + + // RemoteAccess AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-remoteaccess + RemoteAccess *Nodegroup_RemoteAccess `json:"RemoteAccess,omitempty"` + + // ScalingConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-scalingconfig + ScalingConfig *Nodegroup_ScalingConfig `json:"ScalingConfig,omitempty"` + + // Subnets AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-subnets + Subnets []string `json:"Subnets,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-tags + Tags interface{} `json:"Tags,omitempty"` + + // Version AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-version + Version string `json:"Version,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Nodegroup) AWSCloudFormationType() string { + return "AWS::EKS::Nodegroup" +} + +// 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 Nodegroup) MarshalJSON() ([]byte, error) { + type Properties Nodegroup + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *Nodegroup) UnmarshalJSON(b []byte) error { + type Properties Nodegroup + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = Nodegroup(*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) + } + return nil +} diff --git a/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go b/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go new file mode 100644 index 0000000000..e8adb7fe57 --- /dev/null +++ b/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go @@ -0,0 +1,34 @@ +package eks + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Nodegroup_RemoteAccess AWS CloudFormation Resource (AWS::EKS::Nodegroup.RemoteAccess) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-remoteaccess.html +type Nodegroup_RemoteAccess struct { + + // Ec2SshKey AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-remoteaccess.html#cfn-eks-nodegroup-remoteaccess-ec2sshkey + Ec2SshKey string `json:"Ec2SshKey,omitempty"` + + // SourceSecurityGroups AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-remoteaccess.html#cfn-eks-nodegroup-remoteaccess-sourcesecuritygroups + SourceSecurityGroups []string `json:"SourceSecurityGroups,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Nodegroup_RemoteAccess) AWSCloudFormationType() string { + return "AWS::EKS::Nodegroup.RemoteAccess" +} diff --git a/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go b/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go new file mode 100644 index 0000000000..7dc5d80c8c --- /dev/null +++ b/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go @@ -0,0 +1,39 @@ +package eks + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Nodegroup_ScalingConfig AWS CloudFormation Resource (AWS::EKS::Nodegroup.ScalingConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-scalingconfig.html +type Nodegroup_ScalingConfig struct { + + // DesiredSize AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-scalingconfig.html#cfn-eks-nodegroup-scalingconfig-desiredsize + DesiredSize float64 `json:"DesiredSize,omitempty"` + + // MaxSize AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-scalingconfig.html#cfn-eks-nodegroup-scalingconfig-maxsize + MaxSize float64 `json:"MaxSize,omitempty"` + + // MinSize AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-scalingconfig.html#cfn-eks-nodegroup-scalingconfig-minsize + MinSize float64 `json:"MinSize,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Nodegroup_ScalingConfig) AWSCloudFormationType() string { + return "AWS::EKS::Nodegroup.ScalingConfig" +} diff --git a/cloudformation/elasticache/aws-elasticache-cachecluster.go b/cloudformation/elasticache/aws-elasticache-cachecluster.go index 672990a372..332ec876a6 100644 --- a/cloudformation/elasticache/aws-elasticache-cachecluster.go +++ b/cloudformation/elasticache/aws-elasticache-cachecluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // CacheCluster AWS CloudFormation Resource (AWS::ElastiCache::CacheCluster) @@ -118,14 +118,14 @@ type CacheCluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html#cfn-elasticache-cachecluster-vpcsecuritygroupids VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -133,42 +133,6 @@ func (r *CacheCluster) AWSCloudFormationType() string { return "AWS::ElastiCache::CacheCluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CacheCluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CacheCluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CacheCluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CacheCluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CacheCluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CacheCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CacheCluster) MarshalJSON() ([]byte, error) { @@ -182,9 +146,9 @@ func (r CacheCluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -213,13 +177,13 @@ func (r *CacheCluster) UnmarshalJSON(b []byte) error { *r = CacheCluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-parametergroup.go b/cloudformation/elasticache/aws-elasticache-parametergroup.go index f7c7346736..007497f2b4 100644 --- a/cloudformation/elasticache/aws-elasticache-parametergroup.go +++ b/cloudformation/elasticache/aws-elasticache-parametergroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ParameterGroup AWS CloudFormation Resource (AWS::ElastiCache::ParameterGroup) @@ -27,14 +27,14 @@ type ParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-parameter-group.html#cfn-elasticache-parametergroup-properties Properties map[string]string `json:"Properties,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ParameterGroup) AWSCloudFormationType() string { return "AWS::ElastiCache::ParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ParameterGroup) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ParameterGroup) UnmarshalJSON(b []byte) error { *r = ParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-replicationgroup.go b/cloudformation/elasticache/aws-elasticache-replicationgroup.go index 31f414e509..61979135fe 100644 --- a/cloudformation/elasticache/aws-elasticache-replicationgroup.go +++ b/cloudformation/elasticache/aws-elasticache-replicationgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ReplicationGroup AWS CloudFormation Resource (AWS::ElastiCache::ReplicationGroup) @@ -163,14 +163,14 @@ type ReplicationGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-transitencryptionenabled TransitEncryptionEnabled bool `json:"TransitEncryptionEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -178,42 +178,6 @@ func (r *ReplicationGroup) AWSCloudFormationType() string { return "AWS::ElastiCache::ReplicationGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReplicationGroup) MarshalJSON() ([]byte, error) { @@ -227,9 +191,9 @@ func (r ReplicationGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -258,13 +222,13 @@ func (r *ReplicationGroup) UnmarshalJSON(b []byte) error { *r = ReplicationGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go b/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go index 8c7e93b0ac..6d2da746c9 100644 --- a/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go +++ b/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go @@ -1,7 +1,7 @@ package elasticache import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReplicationGroup_NodeGroupConfiguration AWS CloudFormation Resource (AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration) @@ -33,53 +33,17 @@ type ReplicationGroup_NodeGroupConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-replicationgroup-nodegroupconfiguration.html#cfn-elasticache-replicationgroup-nodegroupconfiguration-slots Slots string `json:"Slots,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReplicationGroup_NodeGroupConfiguration) AWSCloudFormationType() string { return "AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationGroup_NodeGroupConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReplicationGroup_NodeGroupConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationGroup_NodeGroupConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReplicationGroup_NodeGroupConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationGroup_NodeGroupConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReplicationGroup_NodeGroupConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticache/aws-elasticache-securitygroup.go b/cloudformation/elasticache/aws-elasticache-securitygroup.go index 68dc34bcf5..ad39d4223d 100644 --- a/cloudformation/elasticache/aws-elasticache-securitygroup.go +++ b/cloudformation/elasticache/aws-elasticache-securitygroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityGroup AWS CloudFormation Resource (AWS::ElastiCache::SecurityGroup) @@ -17,14 +17,14 @@ type SecurityGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group.html#cfn-elasticache-securitygroup-description Description string `json:"Description,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *SecurityGroup) AWSCloudFormationType() string { return "AWS::ElastiCache::SecurityGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityGroup) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r SecurityGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *SecurityGroup) UnmarshalJSON(b []byte) error { *r = SecurityGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-securitygroupingress.go b/cloudformation/elasticache/aws-elasticache-securitygroupingress.go index 62c9d8c7ff..bb8e92e418 100644 --- a/cloudformation/elasticache/aws-elasticache-securitygroupingress.go +++ b/cloudformation/elasticache/aws-elasticache-securitygroupingress.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityGroupIngress AWS CloudFormation Resource (AWS::ElastiCache::SecurityGroupIngress) @@ -27,14 +27,14 @@ type SecurityGroupIngress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-security-group-ingress.html#cfn-elasticache-securitygroupingress-ec2securitygroupownerid EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *SecurityGroupIngress) AWSCloudFormationType() string { return "AWS::ElastiCache::SecurityGroupIngress" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroupIngress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityGroupIngress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroupIngress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityGroupIngress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroupIngress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityGroupIngress) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r SecurityGroupIngress) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *SecurityGroupIngress) UnmarshalJSON(b []byte) error { *r = SecurityGroupIngress(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-subnetgroup.go b/cloudformation/elasticache/aws-elasticache-subnetgroup.go index 25d0b8e53a..b8b014326b 100644 --- a/cloudformation/elasticache/aws-elasticache-subnetgroup.go +++ b/cloudformation/elasticache/aws-elasticache-subnetgroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubnetGroup AWS CloudFormation Resource (AWS::ElastiCache::SubnetGroup) @@ -27,14 +27,14 @@ type SubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-subnetgroup.html#cfn-elasticache-subnetgroup-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *SubnetGroup) AWSCloudFormationType() string { return "AWS::ElastiCache::SubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubnetGroup) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r SubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *SubnetGroup) UnmarshalJSON(b []byte) error { *r = SubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go index 66f20620f1..3e21491113 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application) @@ -27,14 +27,14 @@ type Application struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html#cfn-elasticbeanstalk-application-resourcelifecycleconfig ResourceLifecycleConfig *Application_ApplicationResourceLifecycleConfig `json:"ResourceLifecycleConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Application) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Application" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Application) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Application) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Application) UnmarshalJSON(b []byte) error { *r = Application(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go index c2be270faf..7be9aa0f35 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ApplicationResourceLifecycleConfig AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.ApplicationResourceLifecycleConfig) @@ -18,53 +18,17 @@ type Application_ApplicationResourceLifecycleConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationresourcelifecycleconfig.html#cfn-elasticbeanstalk-application-applicationresourcelifecycleconfig-versionlifecycleconfig VersionLifecycleConfig *Application_ApplicationVersionLifecycleConfig `json:"VersionLifecycleConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ApplicationResourceLifecycleConfig) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Application.ApplicationResourceLifecycleConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationResourceLifecycleConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationResourceLifecycleConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationResourceLifecycleConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationResourceLifecycleConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationResourceLifecycleConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationResourceLifecycleConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go index 7a1df0945e..031358688e 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ApplicationVersionLifecycleConfig AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.ApplicationVersionLifecycleConfig) @@ -18,53 +18,17 @@ type Application_ApplicationVersionLifecycleConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-applicationversionlifecycleconfig.html#cfn-elasticbeanstalk-application-applicationversionlifecycleconfig-maxcountrule MaxCountRule *Application_MaxCountRule `json:"MaxCountRule,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ApplicationVersionLifecycleConfig) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Application.ApplicationVersionLifecycleConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationVersionLifecycleConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationVersionLifecycleConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationVersionLifecycleConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationVersionLifecycleConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationVersionLifecycleConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationVersionLifecycleConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go index 5f03d1b69c..7bf7729646 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_MaxAgeRule AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.MaxAgeRule) @@ -23,53 +23,17 @@ type Application_MaxAgeRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxagerule.html#cfn-elasticbeanstalk-application-maxagerule-maxageindays MaxAgeInDays int `json:"MaxAgeInDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_MaxAgeRule) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Application.MaxAgeRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MaxAgeRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MaxAgeRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MaxAgeRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MaxAgeRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MaxAgeRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MaxAgeRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go index 724b6cd2b5..5be87730df 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_MaxCountRule AWS CloudFormation Resource (AWS::ElasticBeanstalk::Application.MaxCountRule) @@ -23,53 +23,17 @@ type Application_MaxCountRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html#cfn-elasticbeanstalk-application-maxcountrule-maxcount MaxCount int `json:"MaxCount,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_MaxCountRule) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Application.MaxCountRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MaxCountRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MaxCountRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MaxCountRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MaxCountRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MaxCountRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MaxCountRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go index 93b9e918d7..e0aa2ed78e 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationVersion AWS CloudFormation Resource (AWS::ElasticBeanstalk::ApplicationVersion) @@ -27,14 +27,14 @@ type ApplicationVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html#cfn-elasticbeanstalk-applicationversion-sourcebundle SourceBundle *ApplicationVersion_SourceBundle `json:"SourceBundle,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ApplicationVersion) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::ApplicationVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationVersion) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ApplicationVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ApplicationVersion) UnmarshalJSON(b []byte) error { *r = ApplicationVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go index d81ac8cbde..e4b6145b09 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationVersion_SourceBundle AWS CloudFormation Resource (AWS::ElasticBeanstalk::ApplicationVersion.SourceBundle) @@ -18,53 +18,17 @@ type ApplicationVersion_SourceBundle struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-sourcebundle.html#cfn-beanstalk-sourcebundle-s3key S3Key string `json:"S3Key,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationVersion_SourceBundle) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::ApplicationVersion.SourceBundle" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationVersion_SourceBundle) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationVersion_SourceBundle) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationVersion_SourceBundle) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationVersion_SourceBundle) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationVersion_SourceBundle) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationVersion_SourceBundle) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go index de042b3699..70f5ba96fd 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationTemplate AWS CloudFormation Resource (AWS::ElasticBeanstalk::ConfigurationTemplate) @@ -47,14 +47,14 @@ type ConfigurationTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticbeanstalk-configurationtemplate.html#cfn-elasticbeanstalk-configurationtemplate-sourceconfiguration SourceConfiguration *ConfigurationTemplate_SourceConfiguration `json:"SourceConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *ConfigurationTemplate) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::ConfigurationTemplate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationTemplate) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r ConfigurationTemplate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *ConfigurationTemplate) UnmarshalJSON(b []byte) error { *r = ConfigurationTemplate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go index f4d0868097..a624fb2da9 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationTemplate_ConfigurationOptionSetting AWS CloudFormation Resource (AWS::ElasticBeanstalk::ConfigurationTemplate.ConfigurationOptionSetting) @@ -28,53 +28,17 @@ type ConfigurationTemplate_ConfigurationOptionSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-configurationoptionsetting.html#cfn-elasticbeanstalk-configurationtemplate-configurationoptionsetting-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationTemplate_ConfigurationOptionSetting) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::ConfigurationTemplate.ConfigurationOptionSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationTemplate_ConfigurationOptionSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationTemplate_ConfigurationOptionSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationTemplate_ConfigurationOptionSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationTemplate_ConfigurationOptionSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationTemplate_ConfigurationOptionSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationTemplate_ConfigurationOptionSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go index 4aa783af6c..a6fc44bd32 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationTemplate_SourceConfiguration AWS CloudFormation Resource (AWS::ElasticBeanstalk::ConfigurationTemplate.SourceConfiguration) @@ -18,53 +18,17 @@ type ConfigurationTemplate_SourceConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-configurationtemplate-sourceconfiguration.html#cfn-elasticbeanstalk-configurationtemplate-sourceconfiguration-templatename TemplateName string `json:"TemplateName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationTemplate_SourceConfiguration) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::ConfigurationTemplate.SourceConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationTemplate_SourceConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationTemplate_SourceConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationTemplate_SourceConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationTemplate_SourceConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationTemplate_SourceConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationTemplate_SourceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go index fbd06cd4fd..6c2f99acd6 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Environment AWS CloudFormation Resource (AWS::ElasticBeanstalk::Environment) @@ -68,14 +68,14 @@ type Environment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-versionlabel VersionLabel string `json:"VersionLabel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +83,6 @@ func (r *Environment) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Environment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Environment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Environment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Environment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Environment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Environment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Environment) MarshalJSON() ([]byte, error) { @@ -132,9 +96,9 @@ func (r Environment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +127,13 @@ func (r *Environment) UnmarshalJSON(b []byte) error { *r = Environment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go index 8ee1d31e9d..eae73c11dc 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Environment_OptionSetting AWS CloudFormation Resource (AWS::ElasticBeanstalk::Environment.OptionSetting) @@ -28,53 +28,17 @@ type Environment_OptionSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html#cfn-beanstalk-optionsettings-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Environment_OptionSetting) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Environment.OptionSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Environment_OptionSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Environment_OptionSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Environment_OptionSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Environment_OptionSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Environment_OptionSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Environment_OptionSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go index 3f704aba8c..bac430e432 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go @@ -1,7 +1,7 @@ package elasticbeanstalk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Environment_Tier AWS CloudFormation Resource (AWS::ElasticBeanstalk::Environment.Tier) @@ -23,53 +23,17 @@ type Environment_Tier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html#cfn-beanstalk-env-tier-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Environment_Tier) AWSCloudFormationType() string { return "AWS::ElasticBeanstalk::Environment.Tier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Environment_Tier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Environment_Tier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Environment_Tier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Environment_Tier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Environment_Tier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Environment_Tier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go index 7dee13a9d1..d9445c0d69 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // LoadBalancer AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer) @@ -93,14 +93,14 @@ type LoadBalancer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-elasticloadbalancing-loadbalancer-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -108,42 +108,6 @@ func (r *LoadBalancer) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LoadBalancer) MarshalJSON() ([]byte, error) { @@ -157,9 +121,9 @@ func (r LoadBalancer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -188,13 +152,13 @@ func (r *LoadBalancer) UnmarshalJSON(b []byte) error { *r = LoadBalancer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go index 285c6cb3f5..16138339a5 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_AccessLoggingPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.AccessLoggingPolicy) @@ -28,53 +28,17 @@ type LoadBalancer_AccessLoggingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-s3bucketprefix S3BucketPrefix string `json:"S3BucketPrefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_AccessLoggingPolicy) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.AccessLoggingPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_AccessLoggingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_AccessLoggingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_AccessLoggingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_AccessLoggingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_AccessLoggingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_AccessLoggingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go index 88daee6c65..16565dfa59 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_AppCookieStickinessPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.AppCookieStickinessPolicy) @@ -18,53 +18,17 @@ type LoadBalancer_AppCookieStickinessPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html#cfn-elb-appcookiestickinesspolicy-policyname PolicyName string `json:"PolicyName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_AppCookieStickinessPolicy) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.AppCookieStickinessPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_AppCookieStickinessPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_AppCookieStickinessPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_AppCookieStickinessPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_AppCookieStickinessPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_AppCookieStickinessPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_AppCookieStickinessPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go index 91adf8cc13..2d31023d13 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_ConnectionDrainingPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.ConnectionDrainingPolicy) @@ -18,53 +18,17 @@ type LoadBalancer_ConnectionDrainingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html#cfn-elb-connectiondrainingpolicy-timeout Timeout int `json:"Timeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_ConnectionDrainingPolicy) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.ConnectionDrainingPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_ConnectionDrainingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_ConnectionDrainingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_ConnectionDrainingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_ConnectionDrainingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_ConnectionDrainingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_ConnectionDrainingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go index ab54c195e1..016bb6608c 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_ConnectionSettings AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.ConnectionSettings) @@ -13,53 +13,17 @@ type LoadBalancer_ConnectionSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectionsettings.html#cfn-elb-connectionsettings-idletimeout IdleTimeout int `json:"IdleTimeout"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_ConnectionSettings) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.ConnectionSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_ConnectionSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_ConnectionSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_ConnectionSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_ConnectionSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_ConnectionSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_ConnectionSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go index fe5fbbfbb0..6867739827 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_HealthCheck AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.HealthCheck) @@ -33,53 +33,17 @@ type LoadBalancer_HealthCheck struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-unhealthythreshold UnhealthyThreshold string `json:"UnhealthyThreshold,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_HealthCheck) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.HealthCheck" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_HealthCheck) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_HealthCheck) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_HealthCheck) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_HealthCheck) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_HealthCheck) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go index 740b1e5611..47d371478e 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_LBCookieStickinessPolicy AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.LBCookieStickinessPolicy) @@ -18,53 +18,17 @@ type LoadBalancer_LBCookieStickinessPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html#cfn-elb-lbcookiestickinesspolicy-policyname PolicyName string `json:"PolicyName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_LBCookieStickinessPolicy) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.LBCookieStickinessPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_LBCookieStickinessPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_LBCookieStickinessPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_LBCookieStickinessPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_LBCookieStickinessPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_LBCookieStickinessPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_LBCookieStickinessPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go index 5fb2becbe4..2c336011dd 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_Listeners AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.Listeners) @@ -38,53 +38,17 @@ type LoadBalancer_Listeners struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-sslcertificateid SSLCertificateId string `json:"SSLCertificateId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_Listeners) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.Listeners" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_Listeners) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_Listeners) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_Listeners) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_Listeners) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_Listeners) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_Listeners) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go index 9c77bcd5c1..d023541b87 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go @@ -1,7 +1,7 @@ package elasticloadbalancing import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_Policies AWS CloudFormation Resource (AWS::ElasticLoadBalancing::LoadBalancer.Policies) @@ -33,53 +33,17 @@ type LoadBalancer_Policies struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-policytype PolicyType string `json:"PolicyType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_Policies) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancing::LoadBalancer.Policies" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_Policies) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_Policies) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_Policies) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_Policies) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_Policies) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_Policies) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go index fb04013e3c..c40bfa656f 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener) @@ -42,14 +42,14 @@ type Listener struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listener.html#cfn-elasticloadbalancingv2-listener-sslpolicy SslPolicy string `json:"SslPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *Listener) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Listener) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r Listener) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *Listener) UnmarshalJSON(b []byte) error { *r = Listener(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go index 706d047588..da782c955c 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener_Action AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.Action) @@ -43,53 +43,17 @@ type Listener_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-defaultactions.html#cfn-elasticloadbalancingv2-listener-defaultactions-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Listener_Action) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go index 785667ad83..acf5ec04e2 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener_AuthenticateCognitoConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.AuthenticateCognitoConfig) @@ -48,53 +48,17 @@ type Listener_AuthenticateCognitoConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-authenticatecognitoconfig.html#cfn-elasticloadbalancingv2-listener-authenticatecognitoconfig-userpooldomain UserPoolDomain string `json:"UserPoolDomain,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Listener_AuthenticateCognitoConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener.AuthenticateCognitoConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_AuthenticateCognitoConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_AuthenticateCognitoConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_AuthenticateCognitoConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_AuthenticateCognitoConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_AuthenticateCognitoConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_AuthenticateCognitoConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go index ca374d63f7..e4c03ad44e 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener_AuthenticateOidcConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.AuthenticateOidcConfig) @@ -63,53 +63,17 @@ type Listener_AuthenticateOidcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-authenticateoidcconfig.html#cfn-elasticloadbalancingv2-listener-authenticateoidcconfig-userinfoendpoint UserInfoEndpoint string `json:"UserInfoEndpoint,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Listener_AuthenticateOidcConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener.AuthenticateOidcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_AuthenticateOidcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_AuthenticateOidcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_AuthenticateOidcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_AuthenticateOidcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_AuthenticateOidcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_AuthenticateOidcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go index ed458acb75..ed1dad69b6 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener_Certificate AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.Certificate) @@ -13,53 +13,17 @@ type Listener_Certificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html#cfn-elasticloadbalancingv2-listener-certificates-certificatearn CertificateArn string `json:"CertificateArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Listener_Certificate) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener.Certificate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_Certificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_Certificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_Certificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_Certificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_Certificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go index 173d27654b..485d58c8c3 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener_FixedResponseConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.FixedResponseConfig) @@ -23,53 +23,17 @@ type Listener_FixedResponseConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-fixedresponseconfig.html#cfn-elasticloadbalancingv2-listener-fixedresponseconfig-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Listener_FixedResponseConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener.FixedResponseConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_FixedResponseConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_FixedResponseConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_FixedResponseConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_FixedResponseConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_FixedResponseConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_FixedResponseConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go index 007a2c80fe..ce5dcba603 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Listener_RedirectConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::Listener.RedirectConfig) @@ -38,53 +38,17 @@ type Listener_RedirectConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-redirectconfig.html#cfn-elasticloadbalancingv2-listener-redirectconfig-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Listener_RedirectConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::Listener.RedirectConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_RedirectConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Listener_RedirectConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_RedirectConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Listener_RedirectConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_RedirectConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Listener_RedirectConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go index f28ed64d00..702fca97b3 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerCertificate AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerCertificate) @@ -22,14 +22,14 @@ type ListenerCertificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html#cfn-elasticloadbalancingv2-listenercertificate-listenerarn ListenerArn string `json:"ListenerArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ListenerCertificate) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerCertificate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerCertificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerCertificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerCertificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerCertificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerCertificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerCertificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ListenerCertificate) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ListenerCertificate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ListenerCertificate) UnmarshalJSON(b []byte) error { *r = ListenerCertificate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go index cb23b1d1a9..d206a74061 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerCertificate_Certificate AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerCertificate.Certificate) @@ -13,53 +13,17 @@ type ListenerCertificate_Certificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listener-certificates.html#cfn-elasticloadbalancingv2-listener-certificates-certificatearn CertificateArn string `json:"CertificateArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerCertificate_Certificate) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerCertificate.Certificate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerCertificate_Certificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerCertificate_Certificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerCertificate_Certificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerCertificate_Certificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerCertificate_Certificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerCertificate_Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go index a337fb8fd4..273ad7a983 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule) @@ -32,14 +32,14 @@ type ListenerRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html#cfn-elasticloadbalancingv2-listenerrule-priority Priority int `json:"Priority"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *ListenerRule) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ListenerRule) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r ListenerRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *ListenerRule) UnmarshalJSON(b []byte) error { *r = ListenerRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go index 893020d15b..a5fee61a2a 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_Action AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.Action) @@ -43,53 +43,17 @@ type ListenerRule_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-actions.html#cfn-elasticloadbalancingv2-listener-actions-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_Action) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go index bd96e9b7c4..8775ab91a5 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_AuthenticateCognitoConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.AuthenticateCognitoConfig) @@ -48,53 +48,17 @@ type ListenerRule_AuthenticateCognitoConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-authenticatecognitoconfig.html#cfn-elasticloadbalancingv2-listenerrule-authenticatecognitoconfig-userpooldomain UserPoolDomain string `json:"UserPoolDomain,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_AuthenticateCognitoConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.AuthenticateCognitoConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_AuthenticateCognitoConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_AuthenticateCognitoConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_AuthenticateCognitoConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_AuthenticateCognitoConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_AuthenticateCognitoConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_AuthenticateCognitoConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go index 51915b78f2..233a7aad46 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_AuthenticateOidcConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.AuthenticateOidcConfig) @@ -63,53 +63,17 @@ type ListenerRule_AuthenticateOidcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-authenticateoidcconfig.html#cfn-elasticloadbalancingv2-listenerrule-authenticateoidcconfig-userinfoendpoint UserInfoEndpoint string `json:"UserInfoEndpoint,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_AuthenticateOidcConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.AuthenticateOidcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_AuthenticateOidcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_AuthenticateOidcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_AuthenticateOidcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_AuthenticateOidcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_AuthenticateOidcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_AuthenticateOidcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go index e887c59a5f..eadee87de5 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_FixedResponseConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.FixedResponseConfig) @@ -23,53 +23,17 @@ type ListenerRule_FixedResponseConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-fixedresponseconfig.html#cfn-elasticloadbalancingv2-listenerrule-fixedresponseconfig-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_FixedResponseConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.FixedResponseConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_FixedResponseConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_FixedResponseConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_FixedResponseConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_FixedResponseConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_FixedResponseConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_FixedResponseConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go index 357f16a50c..d75966b565 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_HostHeaderConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.HostHeaderConfig) @@ -13,53 +13,17 @@ type ListenerRule_HostHeaderConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-hostheaderconfig.html#cfn-elasticloadbalancingv2-listenerrule-hostheaderconfig-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_HostHeaderConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.HostHeaderConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_HostHeaderConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_HostHeaderConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_HostHeaderConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_HostHeaderConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_HostHeaderConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_HostHeaderConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go index 7ad5859d6d..6b1200c75b 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_HttpHeaderConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.HttpHeaderConfig) @@ -18,53 +18,17 @@ type ListenerRule_HttpHeaderConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-httpheaderconfig.html#cfn-elasticloadbalancingv2-listenerrule-httpheaderconfig-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_HttpHeaderConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.HttpHeaderConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_HttpHeaderConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_HttpHeaderConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_HttpHeaderConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_HttpHeaderConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_HttpHeaderConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_HttpHeaderConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go index 4e808721b3..da9c4bb4f4 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_HttpRequestMethodConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.HttpRequestMethodConfig) @@ -13,53 +13,17 @@ type ListenerRule_HttpRequestMethodConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-httprequestmethodconfig.html#cfn-elasticloadbalancingv2-listenerrule-httprequestmethodconfig-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_HttpRequestMethodConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.HttpRequestMethodConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_HttpRequestMethodConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_HttpRequestMethodConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_HttpRequestMethodConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_HttpRequestMethodConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_HttpRequestMethodConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_HttpRequestMethodConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go index 7f430b3c24..0d235d4b82 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_PathPatternConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.PathPatternConfig) @@ -13,53 +13,17 @@ type ListenerRule_PathPatternConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-pathpatternconfig.html#cfn-elasticloadbalancingv2-listenerrule-pathpatternconfig-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_PathPatternConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.PathPatternConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_PathPatternConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_PathPatternConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_PathPatternConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_PathPatternConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_PathPatternConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_PathPatternConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go index 4d28ebe52f..462f296bfd 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_QueryStringConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.QueryStringConfig) @@ -13,53 +13,17 @@ type ListenerRule_QueryStringConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-querystringconfig.html#cfn-elasticloadbalancingv2-listenerrule-querystringconfig-values Values []ListenerRule_QueryStringKeyValue `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_QueryStringConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.QueryStringConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_QueryStringConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_QueryStringConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_QueryStringConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_QueryStringConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_QueryStringConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_QueryStringConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go index 219aa54b34..14a37a40f7 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_QueryStringKeyValue AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.QueryStringKeyValue) @@ -18,53 +18,17 @@ type ListenerRule_QueryStringKeyValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-querystringkeyvalue.html#cfn-elasticloadbalancingv2-listenerrule-querystringkeyvalue-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_QueryStringKeyValue) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.QueryStringKeyValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_QueryStringKeyValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_QueryStringKeyValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_QueryStringKeyValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_QueryStringKeyValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_QueryStringKeyValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_QueryStringKeyValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go index f61170202f..c4fc3600f5 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_RedirectConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.RedirectConfig) @@ -38,53 +38,17 @@ type ListenerRule_RedirectConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-redirectconfig.html#cfn-elasticloadbalancingv2-listenerrule-redirectconfig-statuscode StatusCode string `json:"StatusCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_RedirectConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.RedirectConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_RedirectConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_RedirectConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_RedirectConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_RedirectConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_RedirectConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_RedirectConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go index 668ea355d9..b36ad50d1e 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_RuleCondition AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.RuleCondition) @@ -48,53 +48,17 @@ type ListenerRule_RuleCondition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-conditions.html#cfn-elasticloadbalancingv2-listenerrule-conditions-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_RuleCondition) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.RuleCondition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_RuleCondition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_RuleCondition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_RuleCondition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_RuleCondition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_RuleCondition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_RuleCondition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go index 53170a95a8..2cf5783475 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ListenerRule_SourceIpConfig AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::ListenerRule.SourceIpConfig) @@ -13,53 +13,17 @@ type ListenerRule_SourceIpConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-sourceipconfig.html#cfn-elasticloadbalancingv2-listenerrule-sourceipconfig-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ListenerRule_SourceIpConfig) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::ListenerRule.SourceIpConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_SourceIpConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ListenerRule_SourceIpConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_SourceIpConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ListenerRule_SourceIpConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_SourceIpConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ListenerRule_SourceIpConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go index 37c4b69c91..b914851547 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // LoadBalancer AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::LoadBalancer) @@ -58,14 +58,14 @@ type LoadBalancer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -73,42 +73,6 @@ func (r *LoadBalancer) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::LoadBalancer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LoadBalancer) MarshalJSON() ([]byte, error) { @@ -122,9 +86,9 @@ func (r LoadBalancer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -153,13 +117,13 @@ func (r *LoadBalancer) UnmarshalJSON(b []byte) error { *r = LoadBalancer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go index 34538a7b6e..d6114d3f57 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_LoadBalancerAttribute AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttribute) @@ -18,53 +18,17 @@ type LoadBalancer_LoadBalancerAttribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattributes-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_LoadBalancerAttribute) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_LoadBalancerAttribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_LoadBalancerAttribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_LoadBalancerAttribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_LoadBalancerAttribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_LoadBalancerAttribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_LoadBalancerAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go index eeefd7252d..e0df4f7dd5 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoadBalancer_SubnetMapping AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMapping) @@ -18,53 +18,17 @@ type LoadBalancer_SubnetMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-subnetmapping.html#cfn-elasticloadbalancingv2-loadbalancer-subnetmapping-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoadBalancer_SubnetMapping) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_SubnetMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoadBalancer_SubnetMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_SubnetMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoadBalancer_SubnetMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_SubnetMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoadBalancer_SubnetMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go index f6f6dbf599..dc637c627e 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // TargetGroup AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup) @@ -98,14 +98,14 @@ type TargetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -113,42 +113,6 @@ func (r *TargetGroup) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::TargetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TargetGroup) MarshalJSON() ([]byte, error) { @@ -162,9 +126,9 @@ func (r TargetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -193,13 +157,13 @@ func (r *TargetGroup) UnmarshalJSON(b []byte) error { *r = TargetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go index 28598b8f77..ebc2594b88 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TargetGroup_Matcher AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup.Matcher) @@ -13,53 +13,17 @@ type TargetGroup_Matcher struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-matcher.html#cfn-elasticloadbalancingv2-targetgroup-matcher-httpcode HttpCode string `json:"HttpCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TargetGroup_Matcher) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::TargetGroup.Matcher" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup_Matcher) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup_Matcher) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup_Matcher) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup_Matcher) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup_Matcher) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup_Matcher) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go index 256becdafe..c3143910e3 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TargetGroup_TargetDescription AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup.TargetDescription) @@ -23,53 +23,17 @@ type TargetGroup_TargetDescription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetdescription.html#cfn-elasticloadbalancingv2-targetgroup-targetdescription-port Port int `json:"Port,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TargetGroup_TargetDescription) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::TargetGroup.TargetDescription" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup_TargetDescription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup_TargetDescription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup_TargetDescription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup_TargetDescription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup_TargetDescription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup_TargetDescription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go index 7505cd25d1..8e33c50a37 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go @@ -1,7 +1,7 @@ package elasticloadbalancingv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TargetGroup_TargetGroupAttribute AWS CloudFormation Resource (AWS::ElasticLoadBalancingV2::TargetGroup.TargetGroupAttribute) @@ -18,53 +18,17 @@ type TargetGroup_TargetGroupAttribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-targetgroupattribute.html#cfn-elasticloadbalancingv2-targetgroup-targetgroupattribute-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TargetGroup_TargetGroupAttribute) AWSCloudFormationType() string { return "AWS::ElasticLoadBalancingV2::TargetGroup.TargetGroupAttribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup_TargetGroupAttribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TargetGroup_TargetGroupAttribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup_TargetGroupAttribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TargetGroup_TargetGroupAttribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup_TargetGroupAttribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TargetGroup_TargetGroupAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain.go b/cloudformation/elasticsearch/aws-elasticsearch-domain.go index 2cff787580..690d9ab4c9 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Domain AWS CloudFormation Resource (AWS::Elasticsearch::Domain) @@ -23,6 +23,11 @@ type Domain struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-advancedoptions AdvancedOptions map[string]string `json:"AdvancedOptions,omitempty"` + // CognitoOptions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-cognitooptions + CognitoOptions *Domain_CognitoOptions `json:"CognitoOptions,omitempty"` + // DomainName AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-domainname @@ -48,6 +53,11 @@ type Domain struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-encryptionatrestoptions EncryptionAtRestOptions *Domain_EncryptionAtRestOptions `json:"EncryptionAtRestOptions,omitempty"` + // LogPublishingOptions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-logpublishingoptions + LogPublishingOptions map[string]Domain_LogPublishingOption `json:"LogPublishingOptions,omitempty"` + // NodeToNodeEncryptionOptions AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-nodetonodeencryptionoptions @@ -68,14 +78,14 @@ type Domain struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#cfn-elasticsearch-domain-vpcoptions VPCOptions *Domain_VPCOptions `json:"VPCOptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +93,6 @@ func (r *Domain) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Domain) MarshalJSON() ([]byte, error) { @@ -132,9 +106,9 @@ func (r Domain) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +137,13 @@ func (r *Domain) UnmarshalJSON(b []byte) error { *r = Domain(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go new file mode 100644 index 0000000000..cd732ded0a --- /dev/null +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go @@ -0,0 +1,44 @@ +package elasticsearch + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Domain_CognitoOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.CognitoOptions) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-cognitooptions.html +type Domain_CognitoOptions struct { + + // Enabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-cognitooptions.html#cfn-elasticsearch-domain-cognitooptions-enabled + Enabled bool `json:"Enabled,omitempty"` + + // IdentityPoolId AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-cognitooptions.html#cfn-elasticsearch-domain-cognitooptions-identitypoolid + IdentityPoolId string `json:"IdentityPoolId,omitempty"` + + // RoleArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-cognitooptions.html#cfn-elasticsearch-domain-cognitooptions-rolearn + RoleArn string `json:"RoleArn,omitempty"` + + // UserPoolId AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-cognitooptions.html#cfn-elasticsearch-domain-cognitooptions-userpoolid + UserPoolId string `json:"UserPoolId,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Domain_CognitoOptions) AWSCloudFormationType() string { + return "AWS::Elasticsearch::Domain.CognitoOptions" +} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go index 374747ffcb..8bedf7fd6a 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_EBSOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.EBSOptions) @@ -28,53 +28,17 @@ type Domain_EBSOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-ebsoptions.html#cfn-elasticsearch-domain-ebsoptions-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_EBSOptions) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.EBSOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_EBSOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_EBSOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_EBSOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_EBSOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_EBSOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_EBSOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go index 9f28fbbcc1..0d197ce387 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_ElasticsearchClusterConfig AWS CloudFormation Resource (AWS::Elasticsearch::Domain.ElasticsearchClusterConfig) @@ -43,53 +43,17 @@ type Domain_ElasticsearchClusterConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-elasticsearchclusterconfig.html#cfn-elasticsearch-domain-elasticseachclusterconfig-zoneawarenessenabled ZoneAwarenessEnabled bool `json:"ZoneAwarenessEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_ElasticsearchClusterConfig) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.ElasticsearchClusterConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_ElasticsearchClusterConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_ElasticsearchClusterConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_ElasticsearchClusterConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_ElasticsearchClusterConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_ElasticsearchClusterConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_ElasticsearchClusterConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go index ae002a21a7..e37b9c053c 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_EncryptionAtRestOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.EncryptionAtRestOptions) @@ -18,53 +18,17 @@ type Domain_EncryptionAtRestOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-encryptionatrestoptions.html#cfn-elasticsearch-domain-encryptionatrestoptions-kmskeyid KmsKeyId string `json:"KmsKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_EncryptionAtRestOptions) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.EncryptionAtRestOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_EncryptionAtRestOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_EncryptionAtRestOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_EncryptionAtRestOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_EncryptionAtRestOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_EncryptionAtRestOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_EncryptionAtRestOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go new file mode 100644 index 0000000000..9654d85ea7 --- /dev/null +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go @@ -0,0 +1,34 @@ +package elasticsearch + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Domain_LogPublishingOption AWS CloudFormation Resource (AWS::Elasticsearch::Domain.LogPublishingOption) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-logpublishingoption.html +type Domain_LogPublishingOption struct { + + // CloudWatchLogsLogGroupArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-logpublishingoption.html#cfn-elasticsearch-domain-logpublishingoption-cloudwatchlogsloggrouparn + CloudWatchLogsLogGroupArn string `json:"CloudWatchLogsLogGroupArn,omitempty"` + + // Enabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-logpublishingoption.html#cfn-elasticsearch-domain-logpublishingoption-enabled + Enabled bool `json:"Enabled,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Domain_LogPublishingOption) AWSCloudFormationType() string { + return "AWS::Elasticsearch::Domain.LogPublishingOption" +} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go index 8c677a6fb7..4af8abb773 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_NodeToNodeEncryptionOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions) @@ -13,53 +13,17 @@ type Domain_NodeToNodeEncryptionOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-nodetonodeencryptionoptions.html#cfn-elasticsearch-domain-nodetonodeencryptionoptions-enabled Enabled bool `json:"Enabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_NodeToNodeEncryptionOptions) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_NodeToNodeEncryptionOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_NodeToNodeEncryptionOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_NodeToNodeEncryptionOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_NodeToNodeEncryptionOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_NodeToNodeEncryptionOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_NodeToNodeEncryptionOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go index ef9cf0a37b..5246972fe2 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_SnapshotOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.SnapshotOptions) @@ -13,53 +13,17 @@ type Domain_SnapshotOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-snapshotoptions.html#cfn-elasticsearch-domain-snapshotoptions-automatedsnapshotstarthour AutomatedSnapshotStartHour int `json:"AutomatedSnapshotStartHour,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_SnapshotOptions) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.SnapshotOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_SnapshotOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_SnapshotOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_SnapshotOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_SnapshotOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_SnapshotOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_SnapshotOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go index 47479a9332..dd8e24bbf1 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_VPCOptions AWS CloudFormation Resource (AWS::Elasticsearch::Domain.VPCOptions) @@ -18,53 +18,17 @@ type Domain_VPCOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html#cfn-elasticsearch-domain-vpcoptions-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_VPCOptions) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.VPCOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_VPCOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_VPCOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_VPCOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_VPCOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_VPCOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_VPCOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go index 7329c08ce2..29f3b8c4e2 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go @@ -1,7 +1,7 @@ package elasticsearch import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain_ZoneAwarenessConfig AWS CloudFormation Resource (AWS::Elasticsearch::Domain.ZoneAwarenessConfig) @@ -13,53 +13,17 @@ type Domain_ZoneAwarenessConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-zoneawarenessconfig.html#cfn-elasticsearch-domain-zoneawarenessconfig-availabilityzonecount AvailabilityZoneCount int `json:"AvailabilityZoneCount,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Domain_ZoneAwarenessConfig) AWSCloudFormationType() string { return "AWS::Elasticsearch::Domain.ZoneAwarenessConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_ZoneAwarenessConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain_ZoneAwarenessConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_ZoneAwarenessConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain_ZoneAwarenessConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_ZoneAwarenessConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain_ZoneAwarenessConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster.go b/cloudformation/emr/aws-emr-cluster.go index e9a58792aa..ca5e9aff37 100644 --- a/cloudformation/emr/aws-emr-cluster.go +++ b/cloudformation/emr/aws-emr-cluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Cluster AWS CloudFormation Resource (AWS::EMR::Cluster) @@ -108,14 +108,14 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-cluster.html#cfn-elasticmapreduce-cluster-visibletoallusers VisibleToAllUsers bool `json:"VisibleToAllUsers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -123,42 +123,6 @@ func (r *Cluster) AWSCloudFormationType() string { return "AWS::EMR::Cluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Cluster) MarshalJSON() ([]byte, error) { @@ -172,9 +136,9 @@ func (r Cluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -203,13 +167,13 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { *r = Cluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/emr/aws-emr-cluster_application.go b/cloudformation/emr/aws-emr-cluster_application.go index d1c54ea89d..a09d904f12 100644 --- a/cloudformation/emr/aws-emr-cluster_application.go +++ b/cloudformation/emr/aws-emr-cluster_application.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_Application AWS CloudFormation Resource (AWS::EMR::Cluster.Application) @@ -28,53 +28,17 @@ type Cluster_Application struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-application.html#cfn-elasticmapreduce-cluster-application-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_Application) AWSCloudFormationType() string { return "AWS::EMR::Cluster.Application" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_Application) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_Application) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_Application) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_Application) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_Application) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_Application) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go b/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go index 31d75efd29..a8f6413990 100644 --- a/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go +++ b/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_AutoScalingPolicy AWS CloudFormation Resource (AWS::EMR::Cluster.AutoScalingPolicy) @@ -18,53 +18,17 @@ type Cluster_AutoScalingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-autoscalingpolicy.html#cfn-elasticmapreduce-cluster-autoscalingpolicy-rules Rules []Cluster_ScalingRule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_AutoScalingPolicy) AWSCloudFormationType() string { return "AWS::EMR::Cluster.AutoScalingPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_AutoScalingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_AutoScalingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_AutoScalingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_AutoScalingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_AutoScalingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_AutoScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go b/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go index 0656c103f7..082ffb840a 100644 --- a/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go +++ b/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_BootstrapActionConfig AWS CloudFormation Resource (AWS::EMR::Cluster.BootstrapActionConfig) @@ -18,53 +18,17 @@ type Cluster_BootstrapActionConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-bootstrapactionconfig.html#cfn-elasticmapreduce-cluster-bootstrapactionconfig-scriptbootstrapaction ScriptBootstrapAction *Cluster_ScriptBootstrapActionConfig `json:"ScriptBootstrapAction,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_BootstrapActionConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.BootstrapActionConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_BootstrapActionConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_BootstrapActionConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_BootstrapActionConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_BootstrapActionConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_BootstrapActionConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_BootstrapActionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go b/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go index e0669f8a8c..a0fe17f372 100644 --- a/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go +++ b/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_CloudWatchAlarmDefinition AWS CloudFormation Resource (AWS::EMR::Cluster.CloudWatchAlarmDefinition) @@ -53,53 +53,17 @@ type Cluster_CloudWatchAlarmDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-cluster-cloudwatchalarmdefinition-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_CloudWatchAlarmDefinition) AWSCloudFormationType() string { return "AWS::EMR::Cluster.CloudWatchAlarmDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_CloudWatchAlarmDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_CloudWatchAlarmDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_CloudWatchAlarmDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_CloudWatchAlarmDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_CloudWatchAlarmDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_CloudWatchAlarmDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_configuration.go b/cloudformation/emr/aws-emr-cluster_configuration.go index 190e178f6f..6431bc5b39 100644 --- a/cloudformation/emr/aws-emr-cluster_configuration.go +++ b/cloudformation/emr/aws-emr-cluster_configuration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_Configuration AWS CloudFormation Resource (AWS::EMR::Cluster.Configuration) @@ -23,53 +23,17 @@ type Cluster_Configuration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-configuration.html#cfn-elasticmapreduce-cluster-configuration-configurations Configurations []Cluster_Configuration `json:"Configurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_Configuration) AWSCloudFormationType() string { return "AWS::EMR::Cluster.Configuration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_Configuration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_Configuration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_Configuration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_Configuration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_Configuration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go b/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go index c0be50764d..e487f9995b 100644 --- a/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go +++ b/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_EbsBlockDeviceConfig AWS CloudFormation Resource (AWS::EMR::Cluster.EbsBlockDeviceConfig) @@ -18,53 +18,17 @@ type Cluster_EbsBlockDeviceConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsblockdeviceconfig.html#cfn-elasticmapreduce-cluster-ebsblockdeviceconfig-volumesperinstance VolumesPerInstance int `json:"VolumesPerInstance,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_EbsBlockDeviceConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.EbsBlockDeviceConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EbsBlockDeviceConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EbsBlockDeviceConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EbsBlockDeviceConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EbsBlockDeviceConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EbsBlockDeviceConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EbsBlockDeviceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go b/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go index 10d42966ec..51a1d17518 100644 --- a/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go +++ b/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_EbsConfiguration AWS CloudFormation Resource (AWS::EMR::Cluster.EbsConfiguration) @@ -18,53 +18,17 @@ type Cluster_EbsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsconfiguration.html#cfn-elasticmapreduce-cluster-ebsconfiguration-ebsoptimized EbsOptimized bool `json:"EbsOptimized,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_EbsConfiguration) AWSCloudFormationType() string { return "AWS::EMR::Cluster.EbsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EbsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EbsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EbsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EbsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EbsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EbsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go b/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go index 33bd2af785..add815349e 100644 --- a/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go +++ b/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_HadoopJarStepConfig AWS CloudFormation Resource (AWS::EMR::Cluster.HadoopJarStepConfig) @@ -28,53 +28,17 @@ type Cluster_HadoopJarStepConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html#cfn-elasticmapreduce-cluster-hadoopjarstepconfig-stepproperties StepProperties []Cluster_KeyValue `json:"StepProperties,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_HadoopJarStepConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.HadoopJarStepConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_HadoopJarStepConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_HadoopJarStepConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_HadoopJarStepConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_HadoopJarStepConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_HadoopJarStepConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_HadoopJarStepConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go b/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go index a1bb4b9e46..aa1adf0944 100644 --- a/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go +++ b/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_InstanceFleetConfig AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceFleetConfig) @@ -33,53 +33,17 @@ type Cluster_InstanceFleetConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetconfig.html#cfn-elasticmapreduce-cluster-instancefleetconfig-targetspotcapacity TargetSpotCapacity int `json:"TargetSpotCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_InstanceFleetConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.InstanceFleetConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceFleetConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceFleetConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceFleetConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceFleetConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceFleetConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceFleetConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go b/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go index 11efc26bdc..61f681cc92 100644 --- a/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go +++ b/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_InstanceFleetProvisioningSpecifications AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceFleetProvisioningSpecifications) @@ -13,53 +13,17 @@ type Cluster_InstanceFleetProvisioningSpecifications struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancefleetprovisioningspecifications.html#cfn-elasticmapreduce-cluster-instancefleetprovisioningspecifications-spotspecification SpotSpecification *Cluster_SpotProvisioningSpecification `json:"SpotSpecification,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_InstanceFleetProvisioningSpecifications) AWSCloudFormationType() string { return "AWS::EMR::Cluster.InstanceFleetProvisioningSpecifications" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceFleetProvisioningSpecifications) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceFleetProvisioningSpecifications) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceFleetProvisioningSpecifications) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceFleetProvisioningSpecifications) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceFleetProvisioningSpecifications) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceFleetProvisioningSpecifications) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go b/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go index cff4d7c2e1..3643108577 100644 --- a/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go +++ b/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_InstanceGroupConfig AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceGroupConfig) @@ -48,53 +48,17 @@ type Cluster_InstanceGroupConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancegroupconfig.html#cfn-elasticmapreduce-cluster-instancegroupconfig-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_InstanceGroupConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.InstanceGroupConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceGroupConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceGroupConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceGroupConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceGroupConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceGroupConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceGroupConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go b/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go index 0fe82be6f2..a7d9435438 100644 --- a/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go +++ b/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_InstanceTypeConfig AWS CloudFormation Resource (AWS::EMR::Cluster.InstanceTypeConfig) @@ -38,53 +38,17 @@ type Cluster_InstanceTypeConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-weightedcapacity WeightedCapacity int `json:"WeightedCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_InstanceTypeConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.InstanceTypeConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceTypeConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_InstanceTypeConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceTypeConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_InstanceTypeConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceTypeConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_InstanceTypeConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go b/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go index 9fc8def9e0..ee0fab2c5e 100644 --- a/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go +++ b/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_JobFlowInstancesConfig AWS CloudFormation Resource (AWS::EMR::Cluster.JobFlowInstancesConfig) @@ -88,53 +88,17 @@ type Cluster_JobFlowInstancesConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-jobflowinstancesconfig.html#cfn-elasticmapreduce-cluster-jobflowinstancesconfig-terminationprotected TerminationProtected bool `json:"TerminationProtected,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_JobFlowInstancesConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.JobFlowInstancesConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_JobFlowInstancesConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_JobFlowInstancesConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_JobFlowInstancesConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_JobFlowInstancesConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_JobFlowInstancesConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_JobFlowInstancesConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_kerberosattributes.go b/cloudformation/emr/aws-emr-cluster_kerberosattributes.go index a18e7e9845..a53cb3b469 100644 --- a/cloudformation/emr/aws-emr-cluster_kerberosattributes.go +++ b/cloudformation/emr/aws-emr-cluster_kerberosattributes.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_KerberosAttributes AWS CloudFormation Resource (AWS::EMR::Cluster.KerberosAttributes) @@ -33,53 +33,17 @@ type Cluster_KerberosAttributes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-kerberosattributes.html#cfn-elasticmapreduce-cluster-kerberosattributes-realm Realm string `json:"Realm,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_KerberosAttributes) AWSCloudFormationType() string { return "AWS::EMR::Cluster.KerberosAttributes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_KerberosAttributes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_KerberosAttributes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_KerberosAttributes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_KerberosAttributes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_KerberosAttributes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_KerberosAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_keyvalue.go b/cloudformation/emr/aws-emr-cluster_keyvalue.go index ab24761b58..661fe7d95c 100644 --- a/cloudformation/emr/aws-emr-cluster_keyvalue.go +++ b/cloudformation/emr/aws-emr-cluster_keyvalue.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_KeyValue AWS CloudFormation Resource (AWS::EMR::Cluster.KeyValue) @@ -18,53 +18,17 @@ type Cluster_KeyValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-keyvalue.html#cfn-elasticmapreduce-cluster-keyvalue-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_KeyValue) AWSCloudFormationType() string { return "AWS::EMR::Cluster.KeyValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_KeyValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_KeyValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_KeyValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_KeyValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_KeyValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_KeyValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_metricdimension.go b/cloudformation/emr/aws-emr-cluster_metricdimension.go index ba467d3dbe..bf857e5acf 100644 --- a/cloudformation/emr/aws-emr-cluster_metricdimension.go +++ b/cloudformation/emr/aws-emr-cluster_metricdimension.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_MetricDimension AWS CloudFormation Resource (AWS::EMR::Cluster.MetricDimension) @@ -18,53 +18,17 @@ type Cluster_MetricDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-metricdimension.html#cfn-elasticmapreduce-cluster-metricdimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_MetricDimension) AWSCloudFormationType() string { return "AWS::EMR::Cluster.MetricDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_MetricDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_MetricDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_MetricDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_MetricDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_MetricDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_placementtype.go b/cloudformation/emr/aws-emr-cluster_placementtype.go index ace3b75649..160c81d2d1 100644 --- a/cloudformation/emr/aws-emr-cluster_placementtype.go +++ b/cloudformation/emr/aws-emr-cluster_placementtype.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_PlacementType AWS CloudFormation Resource (AWS::EMR::Cluster.PlacementType) @@ -13,53 +13,17 @@ type Cluster_PlacementType struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-placementtype.html#cfn-elasticmapreduce-cluster-placementtype-availabilityzone AvailabilityZone string `json:"AvailabilityZone,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_PlacementType) AWSCloudFormationType() string { return "AWS::EMR::Cluster.PlacementType" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_PlacementType) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_PlacementType) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_PlacementType) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_PlacementType) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_PlacementType) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_PlacementType) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_scalingaction.go b/cloudformation/emr/aws-emr-cluster_scalingaction.go index 51d88a5257..1f2b6232eb 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingaction.go +++ b/cloudformation/emr/aws-emr-cluster_scalingaction.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ScalingAction AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingAction) @@ -18,53 +18,17 @@ type Cluster_ScalingAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingaction.html#cfn-elasticmapreduce-cluster-scalingaction-simplescalingpolicyconfiguration SimpleScalingPolicyConfiguration *Cluster_SimpleScalingPolicyConfiguration `json:"SimpleScalingPolicyConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ScalingAction) AWSCloudFormationType() string { return "AWS::EMR::Cluster.ScalingAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_scalingconstraints.go b/cloudformation/emr/aws-emr-cluster_scalingconstraints.go index 9e3295200b..457b058069 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingconstraints.go +++ b/cloudformation/emr/aws-emr-cluster_scalingconstraints.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ScalingConstraints AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingConstraints) @@ -18,53 +18,17 @@ type Cluster_ScalingConstraints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingconstraints.html#cfn-elasticmapreduce-cluster-scalingconstraints-mincapacity MinCapacity int `json:"MinCapacity"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ScalingConstraints) AWSCloudFormationType() string { return "AWS::EMR::Cluster.ScalingConstraints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingConstraints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingConstraints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingConstraints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingConstraints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingConstraints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_scalingrule.go b/cloudformation/emr/aws-emr-cluster_scalingrule.go index 1fbb700ae7..f0ebf10247 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingrule.go +++ b/cloudformation/emr/aws-emr-cluster_scalingrule.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ScalingRule AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingRule) @@ -28,53 +28,17 @@ type Cluster_ScalingRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingrule.html#cfn-elasticmapreduce-cluster-scalingrule-trigger Trigger *Cluster_ScalingTrigger `json:"Trigger,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ScalingRule) AWSCloudFormationType() string { return "AWS::EMR::Cluster.ScalingRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_scalingtrigger.go b/cloudformation/emr/aws-emr-cluster_scalingtrigger.go index abf571ac08..cd4571333b 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingtrigger.go +++ b/cloudformation/emr/aws-emr-cluster_scalingtrigger.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ScalingTrigger AWS CloudFormation Resource (AWS::EMR::Cluster.ScalingTrigger) @@ -13,53 +13,17 @@ type Cluster_ScalingTrigger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scalingtrigger.html#cfn-elasticmapreduce-cluster-scalingtrigger-cloudwatchalarmdefinition CloudWatchAlarmDefinition *Cluster_CloudWatchAlarmDefinition `json:"CloudWatchAlarmDefinition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ScalingTrigger) AWSCloudFormationType() string { return "AWS::EMR::Cluster.ScalingTrigger" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingTrigger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScalingTrigger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingTrigger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScalingTrigger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingTrigger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScalingTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go b/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go index ec4de0718f..608b3a78b5 100644 --- a/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go +++ b/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ScriptBootstrapActionConfig AWS CloudFormation Resource (AWS::EMR::Cluster.ScriptBootstrapActionConfig) @@ -18,53 +18,17 @@ type Cluster_ScriptBootstrapActionConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-scriptbootstrapactionconfig.html#cfn-elasticmapreduce-cluster-scriptbootstrapactionconfig-path Path string `json:"Path,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ScriptBootstrapActionConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.ScriptBootstrapActionConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScriptBootstrapActionConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ScriptBootstrapActionConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScriptBootstrapActionConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ScriptBootstrapActionConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScriptBootstrapActionConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ScriptBootstrapActionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go b/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go index c2df901884..ae40317465 100644 --- a/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go +++ b/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_SimpleScalingPolicyConfiguration AWS CloudFormation Resource (AWS::EMR::Cluster.SimpleScalingPolicyConfiguration) @@ -23,53 +23,17 @@ type Cluster_SimpleScalingPolicyConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-scalingadjustment ScalingAdjustment int `json:"ScalingAdjustment"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_SimpleScalingPolicyConfiguration) AWSCloudFormationType() string { return "AWS::EMR::Cluster.SimpleScalingPolicyConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_SimpleScalingPolicyConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_SimpleScalingPolicyConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_SimpleScalingPolicyConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_SimpleScalingPolicyConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_SimpleScalingPolicyConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_SimpleScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go b/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go index c467d77053..997b40ad86 100644 --- a/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go +++ b/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_SpotProvisioningSpecification AWS CloudFormation Resource (AWS::EMR::Cluster.SpotProvisioningSpecification) @@ -23,53 +23,17 @@ type Cluster_SpotProvisioningSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-spotprovisioningspecification.html#cfn-elasticmapreduce-cluster-spotprovisioningspecification-timeoutdurationminutes TimeoutDurationMinutes int `json:"TimeoutDurationMinutes"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_SpotProvisioningSpecification) AWSCloudFormationType() string { return "AWS::EMR::Cluster.SpotProvisioningSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_SpotProvisioningSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_SpotProvisioningSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_SpotProvisioningSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_SpotProvisioningSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_SpotProvisioningSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_SpotProvisioningSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_stepconfig.go b/cloudformation/emr/aws-emr-cluster_stepconfig.go index 54a02133a6..ba69821304 100644 --- a/cloudformation/emr/aws-emr-cluster_stepconfig.go +++ b/cloudformation/emr/aws-emr-cluster_stepconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_StepConfig AWS CloudFormation Resource (AWS::EMR::Cluster.StepConfig) @@ -23,53 +23,17 @@ type Cluster_StepConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-stepconfig.html#cfn-elasticmapreduce-cluster-stepconfig-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_StepConfig) AWSCloudFormationType() string { return "AWS::EMR::Cluster.StepConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_StepConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_StepConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_StepConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_StepConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_StepConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_StepConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-cluster_volumespecification.go b/cloudformation/emr/aws-emr-cluster_volumespecification.go index 3da00aee2c..d8b854b45d 100644 --- a/cloudformation/emr/aws-emr-cluster_volumespecification.go +++ b/cloudformation/emr/aws-emr-cluster_volumespecification.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_VolumeSpecification AWS CloudFormation Resource (AWS::EMR::Cluster.VolumeSpecification) @@ -23,53 +23,17 @@ type Cluster_VolumeSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-volumespecification.html#cfn-elasticmapreduce-cluster-volumespecification-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_VolumeSpecification) AWSCloudFormationType() string { return "AWS::EMR::Cluster.VolumeSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_VolumeSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_VolumeSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_VolumeSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_VolumeSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_VolumeSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_VolumeSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig.go b/cloudformation/emr/aws-emr-instancefleetconfig.go index 7e1acc4ea7..85c82a4658 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig) @@ -47,14 +47,14 @@ type InstanceFleetConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html#cfn-elasticmapreduce-instancefleetconfig-targetspotcapacity TargetSpotCapacity int `json:"TargetSpotCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *InstanceFleetConfig) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 InstanceFleetConfig) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r InstanceFleetConfig) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *InstanceFleetConfig) UnmarshalJSON(b []byte) error { *r = InstanceFleetConfig(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go b/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go index 6cb5ee9db7..c73c95d1e1 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_Configuration AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.Configuration) @@ -23,53 +23,17 @@ type InstanceFleetConfig_Configuration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-configuration.html#cfn-elasticmapreduce-instancefleetconfig-configuration-configurations Configurations []InstanceFleetConfig_Configuration `json:"Configurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_Configuration) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.Configuration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_Configuration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_Configuration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_Configuration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_Configuration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_Configuration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go b/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go index 83a60ec6f1..4b1a20b963 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_EbsBlockDeviceConfig AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.EbsBlockDeviceConfig) @@ -18,53 +18,17 @@ type InstanceFleetConfig_EbsBlockDeviceConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig.html#cfn-elasticmapreduce-instancefleetconfig-ebsblockdeviceconfig-volumesperinstance VolumesPerInstance int `json:"VolumesPerInstance,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_EbsBlockDeviceConfig) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.EbsBlockDeviceConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_EbsBlockDeviceConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_EbsBlockDeviceConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_EbsBlockDeviceConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_EbsBlockDeviceConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_EbsBlockDeviceConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_EbsBlockDeviceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go b/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go index a1b1d3994b..03a06b25df 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_EbsConfiguration AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.EbsConfiguration) @@ -18,53 +18,17 @@ type InstanceFleetConfig_EbsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-ebsconfiguration.html#cfn-elasticmapreduce-instancefleetconfig-ebsconfiguration-ebsoptimized EbsOptimized bool `json:"EbsOptimized,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_EbsConfiguration) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.EbsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_EbsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_EbsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_EbsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_EbsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_EbsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_EbsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go b/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go index 96e6d2a23b..d22e691f6d 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_InstanceFleetProvisioningSpecifications AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.InstanceFleetProvisioningSpecifications) @@ -13,53 +13,17 @@ type InstanceFleetConfig_InstanceFleetProvisioningSpecifications struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancefleetprovisioningspecifications.html#cfn-elasticmapreduce-instancefleetconfig-instancefleetprovisioningspecifications-spotspecification SpotSpecification *InstanceFleetConfig_SpotProvisioningSpecification `json:"SpotSpecification,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.InstanceFleetProvisioningSpecifications" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_InstanceFleetProvisioningSpecifications) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go b/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go index 5b6a542248..d358d62c86 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_InstanceTypeConfig AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.InstanceTypeConfig) @@ -38,53 +38,17 @@ type InstanceFleetConfig_InstanceTypeConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-instancetypeconfig.html#cfn-elasticmapreduce-instancefleetconfig-instancetypeconfig-weightedcapacity WeightedCapacity int `json:"WeightedCapacity,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_InstanceTypeConfig) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.InstanceTypeConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_InstanceTypeConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_InstanceTypeConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_InstanceTypeConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_InstanceTypeConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_InstanceTypeConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_InstanceTypeConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go b/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go index 7e90c00242..dedac5d873 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_SpotProvisioningSpecification AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.SpotProvisioningSpecification) @@ -23,53 +23,17 @@ type InstanceFleetConfig_SpotProvisioningSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html#cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-timeoutdurationminutes TimeoutDurationMinutes int `json:"TimeoutDurationMinutes"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_SpotProvisioningSpecification) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.SpotProvisioningSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_SpotProvisioningSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_SpotProvisioningSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_SpotProvisioningSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_SpotProvisioningSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_SpotProvisioningSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_SpotProvisioningSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go b/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go index f4d97a0660..e819e0fa7a 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceFleetConfig_VolumeSpecification AWS CloudFormation Resource (AWS::EMR::InstanceFleetConfig.VolumeSpecification) @@ -23,53 +23,17 @@ type InstanceFleetConfig_VolumeSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-volumespecification.html#cfn-elasticmapreduce-instancefleetconfig-volumespecification-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceFleetConfig_VolumeSpecification) AWSCloudFormationType() string { return "AWS::EMR::InstanceFleetConfig.VolumeSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_VolumeSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceFleetConfig_VolumeSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_VolumeSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceFleetConfig_VolumeSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_VolumeSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceFleetConfig_VolumeSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig.go b/cloudformation/emr/aws-emr-instancegroupconfig.go index ccceeb20b0..429d13166c 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig) @@ -62,14 +62,14 @@ type InstanceGroupConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-instancegroupconfig.html#cfn-emr-instancegroupconfig-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +77,6 @@ func (r *InstanceGroupConfig) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 InstanceGroupConfig) MarshalJSON() ([]byte, error) { @@ -126,9 +90,9 @@ func (r InstanceGroupConfig) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +121,13 @@ func (r *InstanceGroupConfig) UnmarshalJSON(b []byte) error { *r = InstanceGroupConfig(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go b/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go index e1f775fe50..ca014ff8e8 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_AutoScalingPolicy AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.AutoScalingPolicy) @@ -18,53 +18,17 @@ type InstanceGroupConfig_AutoScalingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-autoscalingpolicy.html#cfn-elasticmapreduce-instancegroupconfig-autoscalingpolicy-rules Rules []InstanceGroupConfig_ScalingRule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_AutoScalingPolicy) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.AutoScalingPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_AutoScalingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_AutoScalingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_AutoScalingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_AutoScalingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_AutoScalingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_AutoScalingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go b/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go index 94a2a5a8e4..cdd0d470ba 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_CloudWatchAlarmDefinition AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.CloudWatchAlarmDefinition) @@ -53,53 +53,17 @@ type InstanceGroupConfig_CloudWatchAlarmDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition.html#cfn-elasticmapreduce-instancegroupconfig-cloudwatchalarmdefinition-unit Unit string `json:"Unit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.CloudWatchAlarmDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_CloudWatchAlarmDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go b/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go index ceda6e1872..0ad552ad69 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_Configuration AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.Configuration) @@ -23,53 +23,17 @@ type InstanceGroupConfig_Configuration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-configuration.html#cfn-emr-cluster-configuration-configurations Configurations []InstanceGroupConfig_Configuration `json:"Configurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_Configuration) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.Configuration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_Configuration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_Configuration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_Configuration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_Configuration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_Configuration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_Configuration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go b/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go index 6cbb5a69af..1f3486a126 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_EbsBlockDeviceConfig AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.EbsBlockDeviceConfig) @@ -18,53 +18,17 @@ type InstanceGroupConfig_EbsBlockDeviceConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumesperinstance VolumesPerInstance int `json:"VolumesPerInstance,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_EbsBlockDeviceConfig) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.EbsBlockDeviceConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_EbsBlockDeviceConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_EbsBlockDeviceConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_EbsBlockDeviceConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_EbsBlockDeviceConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_EbsBlockDeviceConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_EbsBlockDeviceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go b/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go index b9a9988bf4..15775d51bd 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_EbsConfiguration AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.EbsConfiguration) @@ -18,53 +18,17 @@ type InstanceGroupConfig_EbsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration.html#cfn-emr-ebsconfiguration-ebsoptimized EbsOptimized bool `json:"EbsOptimized,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_EbsConfiguration) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.EbsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_EbsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_EbsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_EbsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_EbsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_EbsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_EbsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go b/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go index ccf0b73372..095000ceb1 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_MetricDimension AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.MetricDimension) @@ -18,53 +18,17 @@ type InstanceGroupConfig_MetricDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-metricdimension.html#cfn-elasticmapreduce-instancegroupconfig-metricdimension-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_MetricDimension) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.MetricDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_MetricDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_MetricDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_MetricDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_MetricDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_MetricDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go index 3bd3640c72..00e83749b1 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_ScalingAction AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingAction) @@ -18,53 +18,17 @@ type InstanceGroupConfig_ScalingAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingaction.html#cfn-elasticmapreduce-instancegroupconfig-scalingaction-simplescalingpolicyconfiguration SimpleScalingPolicyConfiguration *InstanceGroupConfig_SimpleScalingPolicyConfiguration `json:"SimpleScalingPolicyConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_ScalingAction) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.ScalingAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go index 38eea3e230..53c81965e5 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_ScalingConstraints AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingConstraints) @@ -18,53 +18,17 @@ type InstanceGroupConfig_ScalingConstraints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingconstraints.html#cfn-elasticmapreduce-instancegroupconfig-scalingconstraints-mincapacity MinCapacity int `json:"MinCapacity"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_ScalingConstraints) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.ScalingConstraints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingConstraints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingConstraints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingConstraints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingConstraints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingConstraints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingConstraints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go index b259adeb8d..61bc4cd83e 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_ScalingRule AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingRule) @@ -28,53 +28,17 @@ type InstanceGroupConfig_ScalingRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingrule.html#cfn-elasticmapreduce-instancegroupconfig-scalingrule-trigger Trigger *InstanceGroupConfig_ScalingTrigger `json:"Trigger,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_ScalingRule) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.ScalingRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go index 4aa8f29135..6ce6ff4ff0 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_ScalingTrigger AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.ScalingTrigger) @@ -13,53 +13,17 @@ type InstanceGroupConfig_ScalingTrigger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingtrigger.html#cfn-elasticmapreduce-instancegroupconfig-scalingtrigger-cloudwatchalarmdefinition CloudWatchAlarmDefinition *InstanceGroupConfig_CloudWatchAlarmDefinition `json:"CloudWatchAlarmDefinition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_ScalingTrigger) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.ScalingTrigger" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingTrigger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_ScalingTrigger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingTrigger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_ScalingTrigger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingTrigger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_ScalingTrigger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go b/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go index d263368e7a..27ff709c17 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_SimpleScalingPolicyConfiguration AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.SimpleScalingPolicyConfiguration) @@ -23,53 +23,17 @@ type InstanceGroupConfig_SimpleScalingPolicyConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration.html#cfn-elasticmapreduce-instancegroupconfig-simplescalingpolicyconfiguration-scalingadjustment ScalingAdjustment int `json:"ScalingAdjustment"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.SimpleScalingPolicyConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_SimpleScalingPolicyConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go b/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go index 62b6ac0ae0..5744fbcae8 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceGroupConfig_VolumeSpecification AWS CloudFormation Resource (AWS::EMR::InstanceGroupConfig.VolumeSpecification) @@ -23,53 +23,17 @@ type InstanceGroupConfig_VolumeSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification.html#cfn-emr-ebsconfiguration-ebsblockdeviceconfig-volumespecification-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InstanceGroupConfig_VolumeSpecification) AWSCloudFormationType() string { return "AWS::EMR::InstanceGroupConfig.VolumeSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_VolumeSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceGroupConfig_VolumeSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_VolumeSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceGroupConfig_VolumeSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_VolumeSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceGroupConfig_VolumeSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-securityconfiguration.go b/cloudformation/emr/aws-emr-securityconfiguration.go index a29765ee21..9a2201017d 100644 --- a/cloudformation/emr/aws-emr-securityconfiguration.go +++ b/cloudformation/emr/aws-emr-securityconfiguration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration AWS CloudFormation Resource (AWS::EMR::SecurityConfiguration) @@ -22,14 +22,14 @@ type SecurityConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-securityconfiguration.html#cfn-emr-securityconfiguration-securityconfiguration SecurityConfiguration interface{} `json:"SecurityConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SecurityConfiguration) AWSCloudFormationType() string { return "AWS::EMR::SecurityConfiguration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityConfiguration) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SecurityConfiguration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SecurityConfiguration) UnmarshalJSON(b []byte) error { *r = SecurityConfiguration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/emr/aws-emr-step.go b/cloudformation/emr/aws-emr-step.go index a742d10d4d..51b34e8a1d 100644 --- a/cloudformation/emr/aws-emr-step.go +++ b/cloudformation/emr/aws-emr-step.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Step AWS CloudFormation Resource (AWS::EMR::Step) @@ -32,14 +32,14 @@ type Step struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Step) AWSCloudFormationType() string { return "AWS::EMR::Step" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Step) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Step) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Step) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Step) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Step) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Step) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Step) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Step) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Step) UnmarshalJSON(b []byte) error { *r = Step(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go b/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go index 9c0f4ae8c4..921377c863 100644 --- a/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go +++ b/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Step_HadoopJarStepConfig AWS CloudFormation Resource (AWS::EMR::Step.HadoopJarStepConfig) @@ -28,53 +28,17 @@ type Step_HadoopJarStepConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-hadoopjarstepconfig.html#cfn-elasticmapreduce-step-hadoopjarstepconfig-stepproperties StepProperties []Step_KeyValue `json:"StepProperties,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Step_HadoopJarStepConfig) AWSCloudFormationType() string { return "AWS::EMR::Step.HadoopJarStepConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Step_HadoopJarStepConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Step_HadoopJarStepConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Step_HadoopJarStepConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Step_HadoopJarStepConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Step_HadoopJarStepConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Step_HadoopJarStepConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/emr/aws-emr-step_keyvalue.go b/cloudformation/emr/aws-emr-step_keyvalue.go index 7475458626..ffada820e7 100644 --- a/cloudformation/emr/aws-emr-step_keyvalue.go +++ b/cloudformation/emr/aws-emr-step_keyvalue.go @@ -1,7 +1,7 @@ package emr import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Step_KeyValue AWS CloudFormation Resource (AWS::EMR::Step.KeyValue) @@ -18,53 +18,17 @@ type Step_KeyValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-step-keyvalue.html#cfn-elasticmapreduce-step-keyvalue-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Step_KeyValue) AWSCloudFormationType() string { return "AWS::EMR::Step.KeyValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Step_KeyValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Step_KeyValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Step_KeyValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Step_KeyValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Step_KeyValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Step_KeyValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-eventbus.go b/cloudformation/events/aws-events-eventbus.go index 4f61d9b588..6ab633a6cc 100644 --- a/cloudformation/events/aws-events-eventbus.go +++ b/cloudformation/events/aws-events-eventbus.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EventBus AWS CloudFormation Resource (AWS::Events::EventBus) @@ -22,14 +22,14 @@ type EventBus struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html#cfn-events-eventbus-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *EventBus) AWSCloudFormationType() string { return "AWS::Events::EventBus" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventBus) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventBus) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventBus) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventBus) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventBus) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventBus) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EventBus) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r EventBus) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *EventBus) UnmarshalJSON(b []byte) error { *r = EventBus(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/events/aws-events-eventbuspolicy.go b/cloudformation/events/aws-events-eventbuspolicy.go index b0a3f0a558..58f188f65c 100644 --- a/cloudformation/events/aws-events-eventbuspolicy.go +++ b/cloudformation/events/aws-events-eventbuspolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EventBusPolicy AWS CloudFormation Resource (AWS::Events::EventBusPolicy) @@ -37,14 +37,14 @@ type EventBusPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbuspolicy.html#cfn-events-eventbuspolicy-statementid StatementId string `json:"StatementId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *EventBusPolicy) AWSCloudFormationType() string { return "AWS::Events::EventBusPolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventBusPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventBusPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventBusPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventBusPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventBusPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventBusPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EventBusPolicy) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r EventBusPolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *EventBusPolicy) UnmarshalJSON(b []byte) error { *r = EventBusPolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/events/aws-events-eventbuspolicy_condition.go b/cloudformation/events/aws-events-eventbuspolicy_condition.go index 838286a315..94179554e8 100644 --- a/cloudformation/events/aws-events-eventbuspolicy_condition.go +++ b/cloudformation/events/aws-events-eventbuspolicy_condition.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EventBusPolicy_Condition AWS CloudFormation Resource (AWS::Events::EventBusPolicy.Condition) @@ -23,53 +23,17 @@ type EventBusPolicy_Condition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-eventbuspolicy-condition.html#cfn-events-eventbuspolicy-condition-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EventBusPolicy_Condition) AWSCloudFormationType() string { return "AWS::Events::EventBusPolicy.Condition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventBusPolicy_Condition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventBusPolicy_Condition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventBusPolicy_Condition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventBusPolicy_Condition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventBusPolicy_Condition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventBusPolicy_Condition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule.go b/cloudformation/events/aws-events-rule.go index 0cbec61741..f5fe7d2920 100644 --- a/cloudformation/events/aws-events-rule.go +++ b/cloudformation/events/aws-events-rule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule AWS CloudFormation Resource (AWS::Events::Rule) @@ -17,6 +17,11 @@ type Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-description Description string `json:"Description,omitempty"` + // EventBusName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventbusname + EventBusName string `json:"EventBusName,omitempty"` + // EventPattern AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern @@ -47,14 +52,14 @@ type Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-targets Targets []Rule_Target `json:"Targets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +67,6 @@ func (r *Rule) AWSCloudFormationType() string { return "AWS::Events::Rule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Rule) MarshalJSON() ([]byte, error) { @@ -111,9 +80,9 @@ func (r Rule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +111,13 @@ func (r *Rule) UnmarshalJSON(b []byte) error { *r = Rule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/events/aws-events-rule_awsvpcconfiguration.go b/cloudformation/events/aws-events-rule_awsvpcconfiguration.go index 2ff5b92f73..da192bd773 100644 --- a/cloudformation/events/aws-events-rule_awsvpcconfiguration.go +++ b/cloudformation/events/aws-events-rule_awsvpcconfiguration.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_AwsVpcConfiguration AWS CloudFormation Resource (AWS::Events::Rule.AwsVpcConfiguration) @@ -23,53 +23,17 @@ type Rule_AwsVpcConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-awsvpcconfiguration.html#cfn-events-rule-awsvpcconfiguration-subnets Subnets []string `json:"Subnets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_AwsVpcConfiguration) AWSCloudFormationType() string { return "AWS::Events::Rule.AwsVpcConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_AwsVpcConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_AwsVpcConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_AwsVpcConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_AwsVpcConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_AwsVpcConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_AwsVpcConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_batcharrayproperties.go b/cloudformation/events/aws-events-rule_batcharrayproperties.go new file mode 100644 index 0000000000..8b45e92734 --- /dev/null +++ b/cloudformation/events/aws-events-rule_batcharrayproperties.go @@ -0,0 +1,29 @@ +package events + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Rule_BatchArrayProperties AWS CloudFormation Resource (AWS::Events::Rule.BatchArrayProperties) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batcharrayproperties.html +type Rule_BatchArrayProperties struct { + + // Size AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batcharrayproperties.html#cfn-events-rule-batcharrayproperties-size + Size int `json:"Size,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Rule_BatchArrayProperties) AWSCloudFormationType() string { + return "AWS::Events::Rule.BatchArrayProperties" +} diff --git a/cloudformation/events/aws-events-rule_batchparameters.go b/cloudformation/events/aws-events-rule_batchparameters.go new file mode 100644 index 0000000000..b2372fc919 --- /dev/null +++ b/cloudformation/events/aws-events-rule_batchparameters.go @@ -0,0 +1,44 @@ +package events + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Rule_BatchParameters AWS CloudFormation Resource (AWS::Events::Rule.BatchParameters) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchparameters.html +type Rule_BatchParameters struct { + + // ArrayProperties AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchparameters.html#cfn-events-rule-batchparameters-arrayproperties + ArrayProperties *Rule_BatchArrayProperties `json:"ArrayProperties,omitempty"` + + // JobDefinition AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchparameters.html#cfn-events-rule-batchparameters-jobdefinition + JobDefinition string `json:"JobDefinition,omitempty"` + + // JobName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchparameters.html#cfn-events-rule-batchparameters-jobname + JobName string `json:"JobName,omitempty"` + + // RetryStrategy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchparameters.html#cfn-events-rule-batchparameters-retrystrategy + RetryStrategy *Rule_BatchRetryStrategy `json:"RetryStrategy,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Rule_BatchParameters) AWSCloudFormationType() string { + return "AWS::Events::Rule.BatchParameters" +} diff --git a/cloudformation/events/aws-events-rule_batchretrystrategy.go b/cloudformation/events/aws-events-rule_batchretrystrategy.go new file mode 100644 index 0000000000..9f32b6c62c --- /dev/null +++ b/cloudformation/events/aws-events-rule_batchretrystrategy.go @@ -0,0 +1,29 @@ +package events + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Rule_BatchRetryStrategy AWS CloudFormation Resource (AWS::Events::Rule.BatchRetryStrategy) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchretrystrategy.html +type Rule_BatchRetryStrategy struct { + + // Attempts AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-batchretrystrategy.html#cfn-events-rule-batchretrystrategy-attempts + Attempts int `json:"Attempts,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Rule_BatchRetryStrategy) AWSCloudFormationType() string { + return "AWS::Events::Rule.BatchRetryStrategy" +} diff --git a/cloudformation/events/aws-events-rule_ecsparameters.go b/cloudformation/events/aws-events-rule_ecsparameters.go index 4b77aafa72..06c66c80df 100644 --- a/cloudformation/events/aws-events-rule_ecsparameters.go +++ b/cloudformation/events/aws-events-rule_ecsparameters.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_EcsParameters AWS CloudFormation Resource (AWS::Events::Rule.EcsParameters) @@ -38,53 +38,17 @@ type Rule_EcsParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-ecsparameters.html#cfn-events-rule-ecsparameters-taskdefinitionarn TaskDefinitionArn string `json:"TaskDefinitionArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_EcsParameters) AWSCloudFormationType() string { return "AWS::Events::Rule.EcsParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_EcsParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_EcsParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_EcsParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_EcsParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_EcsParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_EcsParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_inputtransformer.go b/cloudformation/events/aws-events-rule_inputtransformer.go index f583202b3b..958e119226 100644 --- a/cloudformation/events/aws-events-rule_inputtransformer.go +++ b/cloudformation/events/aws-events-rule_inputtransformer.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_InputTransformer AWS CloudFormation Resource (AWS::Events::Rule.InputTransformer) @@ -18,53 +18,17 @@ type Rule_InputTransformer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html#cfn-events-rule-inputtransformer-inputtemplate InputTemplate string `json:"InputTemplate,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_InputTransformer) AWSCloudFormationType() string { return "AWS::Events::Rule.InputTransformer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_InputTransformer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_InputTransformer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_InputTransformer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_InputTransformer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_InputTransformer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_InputTransformer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_kinesisparameters.go b/cloudformation/events/aws-events-rule_kinesisparameters.go index 5ceff1d4ce..69eec1b2ea 100644 --- a/cloudformation/events/aws-events-rule_kinesisparameters.go +++ b/cloudformation/events/aws-events-rule_kinesisparameters.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_KinesisParameters AWS CloudFormation Resource (AWS::Events::Rule.KinesisParameters) @@ -13,53 +13,17 @@ type Rule_KinesisParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-kinesisparameters.html#cfn-events-rule-kinesisparameters-partitionkeypath PartitionKeyPath string `json:"PartitionKeyPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_KinesisParameters) AWSCloudFormationType() string { return "AWS::Events::Rule.KinesisParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_KinesisParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_KinesisParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_KinesisParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_KinesisParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_KinesisParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_KinesisParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_networkconfiguration.go b/cloudformation/events/aws-events-rule_networkconfiguration.go index 4a64d851ab..c865ecafa2 100644 --- a/cloudformation/events/aws-events-rule_networkconfiguration.go +++ b/cloudformation/events/aws-events-rule_networkconfiguration.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_NetworkConfiguration AWS CloudFormation Resource (AWS::Events::Rule.NetworkConfiguration) @@ -13,53 +13,17 @@ type Rule_NetworkConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-networkconfiguration.html#cfn-events-rule-networkconfiguration-awsvpcconfiguration AwsVpcConfiguration *Rule_AwsVpcConfiguration `json:"AwsVpcConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_NetworkConfiguration) AWSCloudFormationType() string { return "AWS::Events::Rule.NetworkConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_NetworkConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_NetworkConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_NetworkConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_NetworkConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_NetworkConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_NetworkConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_runcommandparameters.go b/cloudformation/events/aws-events-rule_runcommandparameters.go index 621c1ec0d0..2666f7a209 100644 --- a/cloudformation/events/aws-events-rule_runcommandparameters.go +++ b/cloudformation/events/aws-events-rule_runcommandparameters.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_RunCommandParameters AWS CloudFormation Resource (AWS::Events::Rule.RunCommandParameters) @@ -13,53 +13,17 @@ type Rule_RunCommandParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandparameters.html#cfn-events-rule-runcommandparameters-runcommandtargets RunCommandTargets []Rule_RunCommandTarget `json:"RunCommandTargets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_RunCommandParameters) AWSCloudFormationType() string { return "AWS::Events::Rule.RunCommandParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_RunCommandParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_RunCommandParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_RunCommandParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_RunCommandParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_RunCommandParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_RunCommandParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_runcommandtarget.go b/cloudformation/events/aws-events-rule_runcommandtarget.go index 9a49b17e27..91d59f2a59 100644 --- a/cloudformation/events/aws-events-rule_runcommandtarget.go +++ b/cloudformation/events/aws-events-rule_runcommandtarget.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_RunCommandTarget AWS CloudFormation Resource (AWS::Events::Rule.RunCommandTarget) @@ -18,53 +18,17 @@ type Rule_RunCommandTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html#cfn-events-rule-runcommandtarget-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_RunCommandTarget) AWSCloudFormationType() string { return "AWS::Events::Rule.RunCommandTarget" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_RunCommandTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_RunCommandTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_RunCommandTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_RunCommandTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_RunCommandTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_RunCommandTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_sqsparameters.go b/cloudformation/events/aws-events-rule_sqsparameters.go index 91231cce2f..98309c91ef 100644 --- a/cloudformation/events/aws-events-rule_sqsparameters.go +++ b/cloudformation/events/aws-events-rule_sqsparameters.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_SqsParameters AWS CloudFormation Resource (AWS::Events::Rule.SqsParameters) @@ -13,53 +13,17 @@ type Rule_SqsParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-sqsparameters.html#cfn-events-rule-sqsparameters-messagegroupid MessageGroupId string `json:"MessageGroupId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_SqsParameters) AWSCloudFormationType() string { return "AWS::Events::Rule.SqsParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_SqsParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_SqsParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_SqsParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_SqsParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_SqsParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_SqsParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/events/aws-events-rule_target.go b/cloudformation/events/aws-events-rule_target.go index e0aaf08e07..4a204d8236 100644 --- a/cloudformation/events/aws-events-rule_target.go +++ b/cloudformation/events/aws-events-rule_target.go @@ -1,7 +1,7 @@ package events import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_Target AWS CloudFormation Resource (AWS::Events::Rule.Target) @@ -13,6 +13,11 @@ type Rule_Target struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-arn Arn string `json:"Arn,omitempty"` + // BatchParameters AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-batchparameters + BatchParameters *Rule_BatchParameters `json:"BatchParameters,omitempty"` + // EcsParameters AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-ecsparameters @@ -58,53 +63,17 @@ type Rule_Target struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-target.html#cfn-events-rule-target-sqsparameters SqsParameters *Rule_SqsParameters `json:"SqsParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_Target) AWSCloudFormationType() string { return "AWS::Events::Rule.Target" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_Target) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_Target) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_Target) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_Target) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_Target) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_Target) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/fsx/aws-fsx-filesystem.go b/cloudformation/fsx/aws-fsx-filesystem.go index 20e67684a2..1a64e0b03a 100644 --- a/cloudformation/fsx/aws-fsx-filesystem.go +++ b/cloudformation/fsx/aws-fsx-filesystem.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // FileSystem AWS CloudFormation Resource (AWS::FSx::FileSystem) @@ -58,14 +58,14 @@ type FileSystem struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-windowsconfiguration WindowsConfiguration *FileSystem_WindowsConfiguration `json:"WindowsConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -73,42 +73,6 @@ func (r *FileSystem) AWSCloudFormationType() string { return "AWS::FSx::FileSystem" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FileSystem) MarshalJSON() ([]byte, error) { @@ -122,9 +86,9 @@ func (r FileSystem) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -153,13 +117,13 @@ func (r *FileSystem) UnmarshalJSON(b []byte) error { *r = FileSystem(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go b/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go index db57c69456..687c8e5661 100644 --- a/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go +++ b/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go @@ -1,7 +1,7 @@ package fsx import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FileSystem_LustreConfiguration AWS CloudFormation Resource (AWS::FSx::FileSystem.LustreConfiguration) @@ -28,53 +28,17 @@ type FileSystem_LustreConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-lustreconfiguration.html#cfn-fsx-filesystem-lustreconfiguration-weeklymaintenancestarttime WeeklyMaintenanceStartTime string `json:"WeeklyMaintenanceStartTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FileSystem_LustreConfiguration) AWSCloudFormationType() string { return "AWS::FSx::FileSystem.LustreConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_LustreConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_LustreConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_LustreConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_LustreConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_LustreConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_LustreConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go b/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go index 7b5e1bd123..15485da201 100644 --- a/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go +++ b/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go @@ -1,7 +1,7 @@ package fsx import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FileSystem_SelfManagedActiveDirectoryConfiguration AWS CloudFormation Resource (AWS::FSx::FileSystem.SelfManagedActiveDirectoryConfiguration) @@ -38,53 +38,17 @@ type FileSystem_SelfManagedActiveDirectoryConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-windowsconfiguration-selfmanagedactivedirectoryconfiguration.html#cfn-fsx-filesystem-windowsconfiguration-selfmanagedactivedirectoryconfiguration-username UserName string `json:"UserName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) AWSCloudFormationType() string { return "AWS::FSx::FileSystem.SelfManagedActiveDirectoryConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_SelfManagedActiveDirectoryConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go b/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go index 7602dd2b8e..cdef206f99 100644 --- a/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go +++ b/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go @@ -1,7 +1,7 @@ package fsx import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FileSystem_WindowsConfiguration AWS CloudFormation Resource (AWS::FSx::FileSystem.WindowsConfiguration) @@ -43,53 +43,17 @@ type FileSystem_WindowsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fsx-filesystem-windowsconfiguration.html#cfn-fsx-filesystem-windowsconfiguration-weeklymaintenancestarttime WeeklyMaintenanceStartTime string `json:"WeeklyMaintenanceStartTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FileSystem_WindowsConfiguration) AWSCloudFormationType() string { return "AWS::FSx::FileSystem.WindowsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_WindowsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FileSystem_WindowsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_WindowsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FileSystem_WindowsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_WindowsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FileSystem_WindowsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/gamelift/aws-gamelift-alias.go b/cloudformation/gamelift/aws-gamelift-alias.go index 4e789bd049..e6e939c900 100644 --- a/cloudformation/gamelift/aws-gamelift-alias.go +++ b/cloudformation/gamelift/aws-gamelift-alias.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alias AWS CloudFormation Resource (AWS::GameLift::Alias) @@ -27,14 +27,14 @@ type Alias struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-alias.html#cfn-gamelift-alias-routingstrategy RoutingStrategy *Alias_RoutingStrategy `json:"RoutingStrategy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Alias) AWSCloudFormationType() string { return "AWS::GameLift::Alias" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Alias) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Alias) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Alias) UnmarshalJSON(b []byte) error { *r = Alias(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go b/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go index d0733db33e..bc5e3cb3d9 100644 --- a/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go +++ b/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go @@ -1,7 +1,7 @@ package gamelift import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alias_RoutingStrategy AWS CloudFormation Resource (AWS::GameLift::Alias.RoutingStrategy) @@ -23,53 +23,17 @@ type Alias_RoutingStrategy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-alias-routingstrategy.html#cfn-gamelift-alias-routingstrategy-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alias_RoutingStrategy) AWSCloudFormationType() string { return "AWS::GameLift::Alias.RoutingStrategy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias_RoutingStrategy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias_RoutingStrategy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias_RoutingStrategy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias_RoutingStrategy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias_RoutingStrategy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias_RoutingStrategy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/gamelift/aws-gamelift-build.go b/cloudformation/gamelift/aws-gamelift-build.go index 8a57f55f19..5010fba3e2 100644 --- a/cloudformation/gamelift/aws-gamelift-build.go +++ b/cloudformation/gamelift/aws-gamelift-build.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Build AWS CloudFormation Resource (AWS::GameLift::Build) @@ -17,6 +17,11 @@ type Build struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-name Name string `json:"Name,omitempty"` + // OperatingSystem AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-operatingsystem + OperatingSystem string `json:"OperatingSystem,omitempty"` + // StorageLocation AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-storagelocation @@ -27,14 +32,14 @@ type Build struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-build.html#cfn-gamelift-build-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +47,6 @@ func (r *Build) AWSCloudFormationType() string { return "AWS::GameLift::Build" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Build) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Build) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Build) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Build) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Build) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Build) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Build) MarshalJSON() ([]byte, error) { @@ -91,9 +60,9 @@ func (r Build) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +91,13 @@ func (r *Build) UnmarshalJSON(b []byte) error { *r = Build(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-build_s3location.go b/cloudformation/gamelift/aws-gamelift-build_s3location.go index 44c0910c70..659f9553f3 100644 --- a/cloudformation/gamelift/aws-gamelift-build_s3location.go +++ b/cloudformation/gamelift/aws-gamelift-build_s3location.go @@ -1,7 +1,7 @@ package gamelift import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Build_S3Location AWS CloudFormation Resource (AWS::GameLift::Build.S3Location) @@ -18,58 +18,27 @@ type Build_S3Location struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html#cfn-gamelift-build-storage-key Key string `json:"Key,omitempty"` + // ObjectVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html#cfn-gamelift-build-object-verison + ObjectVersion string `json:"ObjectVersion,omitempty"` + // RoleArn AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-build-storagelocation.html#cfn-gamelift-build-storage-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Build_S3Location) AWSCloudFormationType() string { return "AWS::GameLift::Build.S3Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Build_S3Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Build_S3Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Build_S3Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Build_S3Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Build_S3Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Build_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/gamelift/aws-gamelift-fleet.go b/cloudformation/gamelift/aws-gamelift-fleet.go index b0f4d494f8..c5708a16a6 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet.go +++ b/cloudformation/gamelift/aws-gamelift-fleet.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Fleet AWS CloudFormation Resource (AWS::GameLift::Fleet) @@ -13,19 +13,24 @@ import ( type Fleet struct { // BuildId AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-buildid BuildId string `json:"BuildId,omitempty"` + // CertificateConfiguration AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-certificateconfiguration + CertificateConfiguration *Fleet_CertificateConfiguration `json:"CertificateConfiguration,omitempty"` + // Description AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-description Description string `json:"Description,omitempty"` // DesiredEC2Instances AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-desiredec2instances - DesiredEC2Instances int `json:"DesiredEC2Instances"` + DesiredEC2Instances int `json:"DesiredEC2Instances,omitempty"` // EC2InboundPermissions AWS CloudFormation Property // Required: false @@ -37,6 +42,16 @@ type Fleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-ec2instancetype EC2InstanceType string `json:"EC2InstanceType,omitempty"` + // FleetType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-fleettype + FleetType string `json:"FleetType,omitempty"` + + // InstanceRoleARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-instancerolearn + InstanceRoleARN string `json:"InstanceRoleARN,omitempty"` + // LogPaths AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-logpaths @@ -47,6 +62,11 @@ type Fleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-maxsize MaxSize int `json:"MaxSize,omitempty"` + // MetricGroups AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-metricgroups + MetricGroups []string `json:"MetricGroups,omitempty"` + // MinSize AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-minsize @@ -57,24 +77,54 @@ type Fleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-name Name string `json:"Name,omitempty"` + // NewGameSessionProtectionPolicy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-newgamesessionprotectionpolicy + NewGameSessionProtectionPolicy string `json:"NewGameSessionProtectionPolicy,omitempty"` + + // PeerVpcAwsAccountId AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-peervpcawsaccountid + PeerVpcAwsAccountId string `json:"PeerVpcAwsAccountId,omitempty"` + + // PeerVpcId AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-peervpcid + PeerVpcId string `json:"PeerVpcId,omitempty"` + + // ResourceCreationLimitPolicy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-resourcecreationlimitpolicy + ResourceCreationLimitPolicy *Fleet_ResourceCreationLimitPolicy `json:"ResourceCreationLimitPolicy,omitempty"` + + // RuntimeConfiguration AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-runtimeconfiguration + RuntimeConfiguration *Fleet_RuntimeConfiguration `json:"RuntimeConfiguration,omitempty"` + + // ScriptId AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-scriptid + ScriptId string `json:"ScriptId,omitempty"` + // ServerLaunchParameters AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-serverlaunchparameters ServerLaunchParameters string `json:"ServerLaunchParameters,omitempty"` // ServerLaunchPath AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-serverlaunchpath ServerLaunchPath string `json:"ServerLaunchPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -82,42 +132,6 @@ func (r *Fleet) AWSCloudFormationType() string { return "AWS::GameLift::Fleet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Fleet) MarshalJSON() ([]byte, error) { @@ -131,9 +145,9 @@ func (r Fleet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -162,13 +176,13 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { *r = Fleet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go b/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go new file mode 100644 index 0000000000..08dc3eacf4 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go @@ -0,0 +1,29 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Fleet_CertificateConfiguration AWS CloudFormation Resource (AWS::GameLift::Fleet.CertificateConfiguration) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-certificateconfiguration.html +type Fleet_CertificateConfiguration struct { + + // CertificateType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-certificateconfiguration.html#cfn-gamelift-fleet-certificateconfiguration-certificatetype + CertificateType string `json:"CertificateType,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Fleet_CertificateConfiguration) AWSCloudFormationType() string { + return "AWS::GameLift::Fleet.CertificateConfiguration" +} diff --git a/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go b/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go index e37fcf38c6..8bf67ff8e2 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go +++ b/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go @@ -1,7 +1,7 @@ package gamelift import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Fleet_IpPermission AWS CloudFormation Resource (AWS::GameLift::Fleet.IpPermission) @@ -28,53 +28,17 @@ type Fleet_IpPermission struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-toport ToPort int `json:"ToPort"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Fleet_IpPermission) AWSCloudFormationType() string { return "AWS::GameLift::Fleet.IpPermission" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_IpPermission) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet_IpPermission) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_IpPermission) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet_IpPermission) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_IpPermission) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet_IpPermission) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go b/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go new file mode 100644 index 0000000000..0f258abe70 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go @@ -0,0 +1,34 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Fleet_ResourceCreationLimitPolicy AWS CloudFormation Resource (AWS::GameLift::Fleet.ResourceCreationLimitPolicy) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-resourcecreationlimitpolicy.html +type Fleet_ResourceCreationLimitPolicy struct { + + // NewGameSessionsPerCreator AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-resourcecreationlimitpolicy.html#cfn-gamelift-fleet-resourcecreationlimitpolicy-newgamesessionspercreator + NewGameSessionsPerCreator int `json:"NewGameSessionsPerCreator,omitempty"` + + // PolicyPeriodInMinutes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-resourcecreationlimitpolicy.html#cfn-gamelift-fleet-resourcecreationlimitpolicy-policyperiodinminutes + PolicyPeriodInMinutes int `json:"PolicyPeriodInMinutes,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Fleet_ResourceCreationLimitPolicy) AWSCloudFormationType() string { + return "AWS::GameLift::Fleet.ResourceCreationLimitPolicy" +} diff --git a/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go b/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go new file mode 100644 index 0000000000..5cfc448a10 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go @@ -0,0 +1,39 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Fleet_RuntimeConfiguration AWS CloudFormation Resource (AWS::GameLift::Fleet.RuntimeConfiguration) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-runtimeconfiguration.html +type Fleet_RuntimeConfiguration struct { + + // GameSessionActivationTimeoutSeconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-runtimeconfiguration.html#cfn-gamelift-fleet-runtimeconfiguration-gamesessionactivationtimeoutseconds + GameSessionActivationTimeoutSeconds int `json:"GameSessionActivationTimeoutSeconds,omitempty"` + + // MaxConcurrentGameSessionActivations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-runtimeconfiguration.html#cfn-gamelift-fleet-runtimeconfiguration-maxconcurrentgamesessionactivations + MaxConcurrentGameSessionActivations int `json:"MaxConcurrentGameSessionActivations,omitempty"` + + // ServerProcesses AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-runtimeconfiguration.html#cfn-gamelift-fleet-runtimeconfiguration-serverprocesses + ServerProcesses []Fleet_ServerProcess `json:"ServerProcesses,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Fleet_RuntimeConfiguration) AWSCloudFormationType() string { + return "AWS::GameLift::Fleet.RuntimeConfiguration" +} diff --git a/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go b/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go new file mode 100644 index 0000000000..1d7728432c --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go @@ -0,0 +1,39 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Fleet_ServerProcess AWS CloudFormation Resource (AWS::GameLift::Fleet.ServerProcess) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-serverprocess.html +type Fleet_ServerProcess struct { + + // ConcurrentExecutions AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-serverprocess.html#cfn-gamelift-fleet-serverprocess-concurrentexecutions + ConcurrentExecutions int `json:"ConcurrentExecutions"` + + // LaunchPath AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-serverprocess.html#cfn-gamelift-fleet-serverprocess-launchpath + LaunchPath string `json:"LaunchPath,omitempty"` + + // Parameters AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-serverprocess.html#cfn-gamelift-fleet-serverprocess-parameters + Parameters string `json:"Parameters,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Fleet_ServerProcess) AWSCloudFormationType() string { + return "AWS::GameLift::Fleet.ServerProcess" +} diff --git a/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go b/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go new file mode 100644 index 0000000000..65a4f28169 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go @@ -0,0 +1,103 @@ +package gamelift + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// GameSessionQueue AWS CloudFormation Resource (AWS::GameLift::GameSessionQueue) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-gamesessionqueue.html +type GameSessionQueue struct { + + // Destinations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-gamesessionqueue.html#cfn-gamelift-gamesessionqueue-destinations + Destinations []GameSessionQueue_Destination `json:"Destinations,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-gamesessionqueue.html#cfn-gamelift-gamesessionqueue-name + Name string `json:"Name,omitempty"` + + // PlayerLatencyPolicies AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-gamesessionqueue.html#cfn-gamelift-gamesessionqueue-playerlatencypolicies + PlayerLatencyPolicies []GameSessionQueue_PlayerLatencyPolicy `json:"PlayerLatencyPolicies,omitempty"` + + // TimeoutInSeconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-gamesessionqueue.html#cfn-gamelift-gamesessionqueue-timeoutinseconds + TimeoutInSeconds int `json:"TimeoutInSeconds,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *GameSessionQueue) AWSCloudFormationType() string { + return "AWS::GameLift::GameSessionQueue" +} + +// 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 GameSessionQueue) MarshalJSON() ([]byte, error) { + type Properties GameSessionQueue + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *GameSessionQueue) UnmarshalJSON(b []byte) error { + type Properties GameSessionQueue + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = GameSessionQueue(*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) + } + return nil +} diff --git a/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go new file mode 100644 index 0000000000..cf2cbf4f10 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go @@ -0,0 +1,29 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// GameSessionQueue_Destination AWS CloudFormation Resource (AWS::GameLift::GameSessionQueue.Destination) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gamesessionqueue-destination.html +type GameSessionQueue_Destination struct { + + // DestinationArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gamesessionqueue-destination.html#cfn-gamelift-gamesessionqueue-destination-destinationarn + DestinationArn string `json:"DestinationArn,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *GameSessionQueue_Destination) AWSCloudFormationType() string { + return "AWS::GameLift::GameSessionQueue.Destination" +} diff --git a/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go new file mode 100644 index 0000000000..cc3d2a423f --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go @@ -0,0 +1,34 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// GameSessionQueue_PlayerLatencyPolicy AWS CloudFormation Resource (AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gamesessionqueue-playerlatencypolicy.html +type GameSessionQueue_PlayerLatencyPolicy struct { + + // MaximumIndividualPlayerLatencyMilliseconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gamesessionqueue-playerlatencypolicy.html#cfn-gamelift-gamesessionqueue-playerlatencypolicy-maximumindividualplayerlatencymilliseconds + MaximumIndividualPlayerLatencyMilliseconds int `json:"MaximumIndividualPlayerLatencyMilliseconds,omitempty"` + + // PolicyDurationSeconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-gamesessionqueue-playerlatencypolicy.html#cfn-gamelift-gamesessionqueue-playerlatencypolicy-policydurationseconds + PolicyDurationSeconds int `json:"PolicyDurationSeconds,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *GameSessionQueue_PlayerLatencyPolicy) AWSCloudFormationType() string { + return "AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy" +} diff --git a/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go new file mode 100644 index 0000000000..25c65c4ed5 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go @@ -0,0 +1,148 @@ +package gamelift + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// MatchmakingConfiguration AWS CloudFormation Resource (AWS::GameLift::MatchmakingConfiguration) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html +type MatchmakingConfiguration struct { + + // AcceptanceRequired AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-acceptancerequired + AcceptanceRequired bool `json:"AcceptanceRequired"` + + // AcceptanceTimeoutSeconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-acceptancetimeoutseconds + AcceptanceTimeoutSeconds int `json:"AcceptanceTimeoutSeconds,omitempty"` + + // AdditionalPlayerCount AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-additionalplayercount + AdditionalPlayerCount int `json:"AdditionalPlayerCount,omitempty"` + + // BackfillMode AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-backfillmode + BackfillMode string `json:"BackfillMode,omitempty"` + + // CustomEventData AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-customeventdata + CustomEventData string `json:"CustomEventData,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-description + Description string `json:"Description,omitempty"` + + // GameProperties AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-gameproperties + GameProperties []MatchmakingConfiguration_GameProperty `json:"GameProperties,omitempty"` + + // GameSessionData AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-gamesessiondata + GameSessionData string `json:"GameSessionData,omitempty"` + + // GameSessionQueueArns AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-gamesessionqueuearns + GameSessionQueueArns []string `json:"GameSessionQueueArns,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-name + Name string `json:"Name,omitempty"` + + // NotificationTarget AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-notificationtarget + NotificationTarget string `json:"NotificationTarget,omitempty"` + + // RequestTimeoutSeconds AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-requesttimeoutseconds + RequestTimeoutSeconds int `json:"RequestTimeoutSeconds"` + + // RuleSetName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingconfiguration.html#cfn-gamelift-matchmakingconfiguration-rulesetname + RuleSetName string `json:"RuleSetName,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *MatchmakingConfiguration) AWSCloudFormationType() string { + return "AWS::GameLift::MatchmakingConfiguration" +} + +// 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 MatchmakingConfiguration) MarshalJSON() ([]byte, error) { + type Properties MatchmakingConfiguration + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *MatchmakingConfiguration) UnmarshalJSON(b []byte) error { + type Properties MatchmakingConfiguration + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = MatchmakingConfiguration(*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) + } + return nil +} diff --git a/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go new file mode 100644 index 0000000000..4e4f2937cb --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go @@ -0,0 +1,34 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// MatchmakingConfiguration_GameProperty AWS CloudFormation Resource (AWS::GameLift::MatchmakingConfiguration.GameProperty) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-matchmakingconfiguration-gameproperty.html +type MatchmakingConfiguration_GameProperty struct { + + // Key AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-matchmakingconfiguration-gameproperty.html#cfn-gamelift-matchmakingconfiguration-gameproperty-key + Key string `json:"Key,omitempty"` + + // Value AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-matchmakingconfiguration-gameproperty.html#cfn-gamelift-matchmakingconfiguration-gameproperty-value + Value string `json:"Value,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *MatchmakingConfiguration_GameProperty) AWSCloudFormationType() string { + return "AWS::GameLift::MatchmakingConfiguration.GameProperty" +} diff --git a/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go b/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go new file mode 100644 index 0000000000..80b36bf36b --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go @@ -0,0 +1,93 @@ +package gamelift + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// MatchmakingRuleSet AWS CloudFormation Resource (AWS::GameLift::MatchmakingRuleSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingruleset.html +type MatchmakingRuleSet struct { + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingruleset.html#cfn-gamelift-matchmakingruleset-name + Name string `json:"Name,omitempty"` + + // RuleSetBody AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-matchmakingruleset.html#cfn-gamelift-matchmakingruleset-rulesetbody + RuleSetBody string `json:"RuleSetBody,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *MatchmakingRuleSet) AWSCloudFormationType() string { + return "AWS::GameLift::MatchmakingRuleSet" +} + +// 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 MatchmakingRuleSet) MarshalJSON() ([]byte, error) { + type Properties MatchmakingRuleSet + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *MatchmakingRuleSet) UnmarshalJSON(b []byte) error { + type Properties MatchmakingRuleSet + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = MatchmakingRuleSet(*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) + } + return nil +} diff --git a/cloudformation/gamelift/aws-gamelift-script.go b/cloudformation/gamelift/aws-gamelift-script.go new file mode 100644 index 0000000000..187614e9e1 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-script.go @@ -0,0 +1,98 @@ +package gamelift + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Script AWS CloudFormation Resource (AWS::GameLift::Script) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-script.html +type Script struct { + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-script.html#cfn-gamelift-script-name + Name string `json:"Name,omitempty"` + + // StorageLocation AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-script.html#cfn-gamelift-script-storagelocation + StorageLocation *Script_S3Location `json:"StorageLocation,omitempty"` + + // Version AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-script.html#cfn-gamelift-script-version + Version string `json:"Version,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Script) AWSCloudFormationType() string { + return "AWS::GameLift::Script" +} + +// 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 Script) MarshalJSON() ([]byte, error) { + type Properties Script + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *Script) UnmarshalJSON(b []byte) error { + type Properties Script + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = Script(*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) + } + return nil +} diff --git a/cloudformation/gamelift/aws-gamelift-script_s3location.go b/cloudformation/gamelift/aws-gamelift-script_s3location.go new file mode 100644 index 0000000000..0709334615 --- /dev/null +++ b/cloudformation/gamelift/aws-gamelift-script_s3location.go @@ -0,0 +1,44 @@ +package gamelift + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Script_S3Location AWS CloudFormation Resource (AWS::GameLift::Script.S3Location) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-script-s3location.html +type Script_S3Location struct { + + // Bucket AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-script-s3location.html#cfn-gamelift-script-s3location-bucket + Bucket string `json:"Bucket,omitempty"` + + // Key AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-script-s3location.html#cfn-gamelift-script-s3location-key + Key string `json:"Key,omitempty"` + + // ObjectVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-script-s3location.html#cfn-gamelift-script-s3location-objectversion + ObjectVersion string `json:"ObjectVersion,omitempty"` + + // RoleArn AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-script-s3location.html#cfn-gamelift-script-s3location-rolearn + RoleArn string `json:"RoleArn,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Script_S3Location) AWSCloudFormationType() string { + return "AWS::GameLift::Script.S3Location" +} diff --git a/cloudformation/glue/aws-glue-classifier.go b/cloudformation/glue/aws-glue-classifier.go index fda872f34e..2b8daa49ee 100644 --- a/cloudformation/glue/aws-glue-classifier.go +++ b/cloudformation/glue/aws-glue-classifier.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Classifier AWS CloudFormation Resource (AWS::Glue::Classifier) @@ -32,14 +32,14 @@ type Classifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-classifier.html#cfn-glue-classifier-xmlclassifier XMLClassifier *Classifier_XMLClassifier `json:"XMLClassifier,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Classifier) AWSCloudFormationType() string { return "AWS::Glue::Classifier" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Classifier) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Classifier) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Classifier) UnmarshalJSON(b []byte) error { *r = Classifier(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-classifier_csvclassifier.go b/cloudformation/glue/aws-glue-classifier_csvclassifier.go index 1a4045fc98..69d34a36a5 100644 --- a/cloudformation/glue/aws-glue-classifier_csvclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_csvclassifier.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Classifier_CsvClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.CsvClassifier) @@ -43,53 +43,17 @@ type Classifier_CsvClassifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-csvclassifier.html#cfn-glue-classifier-csvclassifier-quotesymbol QuoteSymbol string `json:"QuoteSymbol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Classifier_CsvClassifier) AWSCloudFormationType() string { return "AWS::Glue::Classifier.CsvClassifier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_CsvClassifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_CsvClassifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_CsvClassifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_CsvClassifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_CsvClassifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_CsvClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-classifier_grokclassifier.go b/cloudformation/glue/aws-glue-classifier_grokclassifier.go index bf7308a474..d44296f303 100644 --- a/cloudformation/glue/aws-glue-classifier_grokclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_grokclassifier.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Classifier_GrokClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.GrokClassifier) @@ -28,53 +28,17 @@ type Classifier_GrokClassifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-grokclassifier.html#cfn-glue-classifier-grokclassifier-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Classifier_GrokClassifier) AWSCloudFormationType() string { return "AWS::Glue::Classifier.GrokClassifier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_GrokClassifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_GrokClassifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_GrokClassifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_GrokClassifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_GrokClassifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_GrokClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-classifier_jsonclassifier.go b/cloudformation/glue/aws-glue-classifier_jsonclassifier.go index 7abd400b59..4273d7f977 100644 --- a/cloudformation/glue/aws-glue-classifier_jsonclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_jsonclassifier.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Classifier_JsonClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.JsonClassifier) @@ -18,53 +18,17 @@ type Classifier_JsonClassifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html#cfn-glue-classifier-jsonclassifier-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Classifier_JsonClassifier) AWSCloudFormationType() string { return "AWS::Glue::Classifier.JsonClassifier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_JsonClassifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_JsonClassifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_JsonClassifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_JsonClassifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_JsonClassifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_JsonClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-classifier_xmlclassifier.go b/cloudformation/glue/aws-glue-classifier_xmlclassifier.go index 5d57155756..fad222ee87 100644 --- a/cloudformation/glue/aws-glue-classifier_xmlclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_xmlclassifier.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Classifier_XMLClassifier AWS CloudFormation Resource (AWS::Glue::Classifier.XMLClassifier) @@ -23,53 +23,17 @@ type Classifier_XMLClassifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-rowtag RowTag string `json:"RowTag,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Classifier_XMLClassifier) AWSCloudFormationType() string { return "AWS::Glue::Classifier.XMLClassifier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_XMLClassifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Classifier_XMLClassifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_XMLClassifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Classifier_XMLClassifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_XMLClassifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Classifier_XMLClassifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-connection.go b/cloudformation/glue/aws-glue-connection.go index 173b88991d..b822cf75fe 100644 --- a/cloudformation/glue/aws-glue-connection.go +++ b/cloudformation/glue/aws-glue-connection.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Connection AWS CloudFormation Resource (AWS::Glue::Connection) @@ -22,14 +22,14 @@ type Connection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html#cfn-glue-connection-connectioninput ConnectionInput *Connection_ConnectionInput `json:"ConnectionInput,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Connection) AWSCloudFormationType() string { return "AWS::Glue::Connection" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Connection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Connection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Connection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Connection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Connection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Connection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Connection) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Connection) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Connection) UnmarshalJSON(b []byte) error { *r = Connection(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-connection_connectioninput.go b/cloudformation/glue/aws-glue-connection_connectioninput.go index 551c88f3fa..1c4e2ce92d 100644 --- a/cloudformation/glue/aws-glue-connection_connectioninput.go +++ b/cloudformation/glue/aws-glue-connection_connectioninput.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Connection_ConnectionInput AWS CloudFormation Resource (AWS::Glue::Connection.ConnectionInput) @@ -38,53 +38,17 @@ type Connection_ConnectionInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-physicalconnectionrequirements PhysicalConnectionRequirements *Connection_PhysicalConnectionRequirements `json:"PhysicalConnectionRequirements,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Connection_ConnectionInput) AWSCloudFormationType() string { return "AWS::Glue::Connection.ConnectionInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Connection_ConnectionInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Connection_ConnectionInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Connection_ConnectionInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Connection_ConnectionInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Connection_ConnectionInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Connection_ConnectionInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go b/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go index 332fbe1d0f..9100e0804e 100644 --- a/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go +++ b/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Connection_PhysicalConnectionRequirements AWS CloudFormation Resource (AWS::Glue::Connection.PhysicalConnectionRequirements) @@ -23,53 +23,17 @@ type Connection_PhysicalConnectionRequirements struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-physicalconnectionrequirements.html#cfn-glue-connection-physicalconnectionrequirements-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Connection_PhysicalConnectionRequirements) AWSCloudFormationType() string { return "AWS::Glue::Connection.PhysicalConnectionRequirements" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Connection_PhysicalConnectionRequirements) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Connection_PhysicalConnectionRequirements) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Connection_PhysicalConnectionRequirements) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Connection_PhysicalConnectionRequirements) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Connection_PhysicalConnectionRequirements) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Connection_PhysicalConnectionRequirements) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-crawler.go b/cloudformation/glue/aws-glue-crawler.go index 15f68176ab..83db2a2c05 100644 --- a/cloudformation/glue/aws-glue-crawler.go +++ b/cloudformation/glue/aws-glue-crawler.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Crawler AWS CloudFormation Resource (AWS::Glue::Crawler) @@ -28,7 +28,7 @@ type Crawler struct { CrawlerSecurityConfiguration string `json:"CrawlerSecurityConfiguration,omitempty"` // DatabaseName AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-databasename DatabaseName string `json:"DatabaseName,omitempty"` @@ -72,14 +72,14 @@ type Crawler struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-crawler.html#cfn-glue-crawler-targets Targets *Crawler_Targets `json:"Targets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -87,42 +87,6 @@ func (r *Crawler) AWSCloudFormationType() string { return "AWS::Glue::Crawler" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Crawler) MarshalJSON() ([]byte, error) { @@ -136,9 +100,9 @@ func (r Crawler) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -167,13 +131,13 @@ func (r *Crawler) UnmarshalJSON(b []byte) error { *r = Crawler(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-crawler_catalogtarget.go b/cloudformation/glue/aws-glue-crawler_catalogtarget.go new file mode 100644 index 0000000000..91e42aef27 --- /dev/null +++ b/cloudformation/glue/aws-glue-crawler_catalogtarget.go @@ -0,0 +1,34 @@ +package glue + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Crawler_CatalogTarget AWS CloudFormation Resource (AWS::Glue::Crawler.CatalogTarget) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-catalogtarget.html +type Crawler_CatalogTarget struct { + + // DatabaseName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-catalogtarget.html#cfn-glue-crawler-catalogtarget-databasename + DatabaseName string `json:"DatabaseName,omitempty"` + + // Tables AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-catalogtarget.html#cfn-glue-crawler-catalogtarget-tables + Tables []string `json:"Tables,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Crawler_CatalogTarget) AWSCloudFormationType() string { + return "AWS::Glue::Crawler.CatalogTarget" +} diff --git a/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go b/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go new file mode 100644 index 0000000000..8bc261b857 --- /dev/null +++ b/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go @@ -0,0 +1,29 @@ +package glue + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Crawler_DynamoDBTarget AWS CloudFormation Resource (AWS::Glue::Crawler.DynamoDBTarget) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-dynamodbtarget.html +type Crawler_DynamoDBTarget struct { + + // Path AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-dynamodbtarget.html#cfn-glue-crawler-dynamodbtarget-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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Crawler_DynamoDBTarget) AWSCloudFormationType() string { + return "AWS::Glue::Crawler.DynamoDBTarget" +} diff --git a/cloudformation/glue/aws-glue-crawler_jdbctarget.go b/cloudformation/glue/aws-glue-crawler_jdbctarget.go index 75b48f9fb7..0b1a9448e9 100644 --- a/cloudformation/glue/aws-glue-crawler_jdbctarget.go +++ b/cloudformation/glue/aws-glue-crawler_jdbctarget.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Crawler_JdbcTarget AWS CloudFormation Resource (AWS::Glue::Crawler.JdbcTarget) @@ -23,53 +23,17 @@ type Crawler_JdbcTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-path Path string `json:"Path,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Crawler_JdbcTarget) AWSCloudFormationType() string { return "AWS::Glue::Crawler.JdbcTarget" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_JdbcTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_JdbcTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_JdbcTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_JdbcTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_JdbcTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_JdbcTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-crawler_s3target.go b/cloudformation/glue/aws-glue-crawler_s3target.go index 2bddb2a0ff..ad143ef412 100644 --- a/cloudformation/glue/aws-glue-crawler_s3target.go +++ b/cloudformation/glue/aws-glue-crawler_s3target.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Crawler_S3Target AWS CloudFormation Resource (AWS::Glue::Crawler.S3Target) @@ -18,53 +18,17 @@ type Crawler_S3Target struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-s3target.html#cfn-glue-crawler-s3target-path Path string `json:"Path,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Crawler_S3Target) AWSCloudFormationType() string { return "AWS::Glue::Crawler.S3Target" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_S3Target) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_S3Target) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_S3Target) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_S3Target) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_S3Target) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_S3Target) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-crawler_schedule.go b/cloudformation/glue/aws-glue-crawler_schedule.go index 770b37434a..fdb7607d87 100644 --- a/cloudformation/glue/aws-glue-crawler_schedule.go +++ b/cloudformation/glue/aws-glue-crawler_schedule.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Crawler_Schedule AWS CloudFormation Resource (AWS::Glue::Crawler.Schedule) @@ -13,53 +13,17 @@ type Crawler_Schedule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schedule.html#cfn-glue-crawler-schedule-scheduleexpression ScheduleExpression string `json:"ScheduleExpression,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Crawler_Schedule) AWSCloudFormationType() string { return "AWS::Glue::Crawler.Schedule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_Schedule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_Schedule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_Schedule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_Schedule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_Schedule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go b/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go index 77f411fc9d..f3aeff948f 100644 --- a/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go +++ b/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Crawler_SchemaChangePolicy AWS CloudFormation Resource (AWS::Glue::Crawler.SchemaChangePolicy) @@ -18,53 +18,17 @@ type Crawler_SchemaChangePolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-schemachangepolicy.html#cfn-glue-crawler-schemachangepolicy-updatebehavior UpdateBehavior string `json:"UpdateBehavior,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Crawler_SchemaChangePolicy) AWSCloudFormationType() string { return "AWS::Glue::Crawler.SchemaChangePolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_SchemaChangePolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_SchemaChangePolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_SchemaChangePolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_SchemaChangePolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_SchemaChangePolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_SchemaChangePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-crawler_targets.go b/cloudformation/glue/aws-glue-crawler_targets.go index 64543b664f..4a7dbe0814 100644 --- a/cloudformation/glue/aws-glue-crawler_targets.go +++ b/cloudformation/glue/aws-glue-crawler_targets.go @@ -1,13 +1,23 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Crawler_Targets AWS CloudFormation Resource (AWS::Glue::Crawler.Targets) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html type Crawler_Targets struct { + // CatalogTargets AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html#cfn-glue-crawler-targets-catalogtargets + CatalogTargets []Crawler_CatalogTarget `json:"CatalogTargets,omitempty"` + + // DynamoDBTargets AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html#cfn-glue-crawler-targets-dynamodbtargets + DynamoDBTargets []Crawler_DynamoDBTarget `json:"DynamoDBTargets,omitempty"` + // JdbcTargets AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html#cfn-glue-crawler-targets-jdbctargets @@ -18,53 +28,17 @@ type Crawler_Targets struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-targets.html#cfn-glue-crawler-targets-s3targets S3Targets []Crawler_S3Target `json:"S3Targets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Crawler_Targets) AWSCloudFormationType() string { return "AWS::Glue::Crawler.Targets" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_Targets) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Crawler_Targets) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_Targets) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Crawler_Targets) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_Targets) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Crawler_Targets) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-database.go b/cloudformation/glue/aws-glue-database.go index e6599541f9..f887b0b82f 100644 --- a/cloudformation/glue/aws-glue-database.go +++ b/cloudformation/glue/aws-glue-database.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Database AWS CloudFormation Resource (AWS::Glue::Database) @@ -22,14 +22,14 @@ type Database struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databaseinput DatabaseInput *Database_DatabaseInput `json:"DatabaseInput,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Database) AWSCloudFormationType() string { return "AWS::Glue::Database" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Database) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Database) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Database) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Database) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Database) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Database) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Database) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Database) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Database) UnmarshalJSON(b []byte) error { *r = Database(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-database_databaseinput.go b/cloudformation/glue/aws-glue-database_databaseinput.go index e63c1a21d8..d0c036465a 100644 --- a/cloudformation/glue/aws-glue-database_databaseinput.go +++ b/cloudformation/glue/aws-glue-database_databaseinput.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Database_DatabaseInput AWS CloudFormation Resource (AWS::Glue::Database.DatabaseInput) @@ -28,53 +28,17 @@ type Database_DatabaseInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html#cfn-glue-database-databaseinput-parameters Parameters interface{} `json:"Parameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Database_DatabaseInput) AWSCloudFormationType() string { return "AWS::Glue::Database.DatabaseInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Database_DatabaseInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Database_DatabaseInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Database_DatabaseInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Database_DatabaseInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Database_DatabaseInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Database_DatabaseInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go index d74f5e8128..33da2fc8df 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataCatalogEncryptionSettings AWS CloudFormation Resource (AWS::Glue::DataCatalogEncryptionSettings) @@ -22,14 +22,14 @@ type DataCatalogEncryptionSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-datacatalogencryptionsettings.html#cfn-glue-datacatalogencryptionsettings-datacatalogencryptionsettings DataCatalogEncryptionSettings *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings `json:"DataCatalogEncryptionSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *DataCatalogEncryptionSettings) AWSCloudFormationType() string { return "AWS::Glue::DataCatalogEncryptionSettings" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DataCatalogEncryptionSettings) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r DataCatalogEncryptionSettings) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *DataCatalogEncryptionSettings) UnmarshalJSON(b []byte) error { *r = DataCatalogEncryptionSettings(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go index 441ba564f7..55fd3605d4 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataCatalogEncryptionSettings_ConnectionPasswordEncryption AWS CloudFormation Resource (AWS::Glue::DataCatalogEncryptionSettings.ConnectionPasswordEncryption) @@ -18,53 +18,17 @@ type DataCatalogEncryptionSettings_ConnectionPasswordEncryption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-datacatalogencryptionsettings-connectionpasswordencryption.html#cfn-glue-datacatalogencryptionsettings-connectionpasswordencryption-returnconnectionpasswordencrypted ReturnConnectionPasswordEncrypted bool `json:"ReturnConnectionPasswordEncrypted,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) AWSCloudFormationType() string { return "AWS::Glue::DataCatalogEncryptionSettings.ConnectionPasswordEncryption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings_ConnectionPasswordEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go index 9c4234f4af..03d2a03bbb 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataCatalogEncryptionSettings_DataCatalogEncryptionSettings AWS CloudFormation Resource (AWS::Glue::DataCatalogEncryptionSettings.DataCatalogEncryptionSettings) @@ -18,53 +18,17 @@ type DataCatalogEncryptionSettings_DataCatalogEncryptionSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-datacatalogencryptionsettings-datacatalogencryptionsettings.html#cfn-glue-datacatalogencryptionsettings-datacatalogencryptionsettings-encryptionatrest EncryptionAtRest *DataCatalogEncryptionSettings_EncryptionAtRest `json:"EncryptionAtRest,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) AWSCloudFormationType() string { return "AWS::Glue::DataCatalogEncryptionSettings.DataCatalogEncryptionSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings_DataCatalogEncryptionSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go index 461a06a569..12c7b58839 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataCatalogEncryptionSettings_EncryptionAtRest AWS CloudFormation Resource (AWS::Glue::DataCatalogEncryptionSettings.EncryptionAtRest) @@ -18,53 +18,17 @@ type DataCatalogEncryptionSettings_EncryptionAtRest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-datacatalogencryptionsettings-encryptionatrest.html#cfn-glue-datacatalogencryptionsettings-encryptionatrest-sseawskmskeyid SseAwsKmsKeyId string `json:"SseAwsKmsKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataCatalogEncryptionSettings_EncryptionAtRest) AWSCloudFormationType() string { return "AWS::Glue::DataCatalogEncryptionSettings.EncryptionAtRest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings_EncryptionAtRest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataCatalogEncryptionSettings_EncryptionAtRest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings_EncryptionAtRest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataCatalogEncryptionSettings_EncryptionAtRest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings_EncryptionAtRest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataCatalogEncryptionSettings_EncryptionAtRest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-devendpoint.go b/cloudformation/glue/aws-glue-devendpoint.go index 38d74d392f..22e8d370c0 100644 --- a/cloudformation/glue/aws-glue-devendpoint.go +++ b/cloudformation/glue/aws-glue-devendpoint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DevEndpoint AWS CloudFormation Resource (AWS::Glue::DevEndpoint) @@ -82,14 +82,14 @@ type DevEndpoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-devendpoint.html#cfn-glue-devendpoint-workertype WorkerType string `json:"WorkerType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -97,42 +97,6 @@ func (r *DevEndpoint) AWSCloudFormationType() string { return "AWS::Glue::DevEndpoint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DevEndpoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DevEndpoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DevEndpoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DevEndpoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DevEndpoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DevEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DevEndpoint) MarshalJSON() ([]byte, error) { @@ -146,9 +110,9 @@ func (r DevEndpoint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -177,13 +141,13 @@ func (r *DevEndpoint) UnmarshalJSON(b []byte) error { *r = DevEndpoint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-job.go b/cloudformation/glue/aws-glue-job.go index f04f7f0d9b..44fe6faebb 100644 --- a/cloudformation/glue/aws-glue-job.go +++ b/cloudformation/glue/aws-glue-job.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Job AWS CloudFormation Resource (AWS::Glue::Job) @@ -102,14 +102,14 @@ type Job struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-workertype WorkerType string `json:"WorkerType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -117,42 +117,6 @@ func (r *Job) AWSCloudFormationType() string { return "AWS::Glue::Job" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Job) MarshalJSON() ([]byte, error) { @@ -166,9 +130,9 @@ func (r Job) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -197,13 +161,13 @@ func (r *Job) UnmarshalJSON(b []byte) error { *r = Job(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-job_connectionslist.go b/cloudformation/glue/aws-glue-job_connectionslist.go index 09750b27af..1c7dcb8817 100644 --- a/cloudformation/glue/aws-glue-job_connectionslist.go +++ b/cloudformation/glue/aws-glue-job_connectionslist.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Job_ConnectionsList AWS CloudFormation Resource (AWS::Glue::Job.ConnectionsList) @@ -13,53 +13,17 @@ type Job_ConnectionsList struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-connectionslist.html#cfn-glue-job-connectionslist-connections Connections []string `json:"Connections,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Job_ConnectionsList) AWSCloudFormationType() string { return "AWS::Glue::Job.ConnectionsList" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_ConnectionsList) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_ConnectionsList) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_ConnectionsList) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_ConnectionsList) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_ConnectionsList) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_ConnectionsList) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-job_executionproperty.go b/cloudformation/glue/aws-glue-job_executionproperty.go index e37c8a20eb..1542994904 100644 --- a/cloudformation/glue/aws-glue-job_executionproperty.go +++ b/cloudformation/glue/aws-glue-job_executionproperty.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Job_ExecutionProperty AWS CloudFormation Resource (AWS::Glue::Job.ExecutionProperty) @@ -13,53 +13,17 @@ type Job_ExecutionProperty struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-executionproperty.html#cfn-glue-job-executionproperty-maxconcurrentruns MaxConcurrentRuns float64 `json:"MaxConcurrentRuns,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Job_ExecutionProperty) AWSCloudFormationType() string { return "AWS::Glue::Job.ExecutionProperty" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_ExecutionProperty) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_ExecutionProperty) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_ExecutionProperty) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_ExecutionProperty) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_ExecutionProperty) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_ExecutionProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-job_jobcommand.go b/cloudformation/glue/aws-glue-job_jobcommand.go index 0392a0ab27..9744b4fde3 100644 --- a/cloudformation/glue/aws-glue-job_jobcommand.go +++ b/cloudformation/glue/aws-glue-job_jobcommand.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Job_JobCommand AWS CloudFormation Resource (AWS::Glue::Job.JobCommand) @@ -23,53 +23,17 @@ type Job_JobCommand struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html#cfn-glue-job-jobcommand-scriptlocation ScriptLocation string `json:"ScriptLocation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Job_JobCommand) AWSCloudFormationType() string { return "AWS::Glue::Job.JobCommand" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_JobCommand) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_JobCommand) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_JobCommand) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_JobCommand) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_JobCommand) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_JobCommand) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-job_notificationproperty.go b/cloudformation/glue/aws-glue-job_notificationproperty.go index 2c2fc50c79..8dc8abc80e 100644 --- a/cloudformation/glue/aws-glue-job_notificationproperty.go +++ b/cloudformation/glue/aws-glue-job_notificationproperty.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Job_NotificationProperty AWS CloudFormation Resource (AWS::Glue::Job.NotificationProperty) @@ -13,53 +13,17 @@ type Job_NotificationProperty struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-notificationproperty.html#cfn-glue-job-notificationproperty-notifydelayafter NotifyDelayAfter int `json:"NotifyDelayAfter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Job_NotificationProperty) AWSCloudFormationType() string { return "AWS::Glue::Job.NotificationProperty" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_NotificationProperty) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Job_NotificationProperty) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_NotificationProperty) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Job_NotificationProperty) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_NotificationProperty) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Job_NotificationProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-mltransform.go b/cloudformation/glue/aws-glue-mltransform.go index d87be8e8cb..7d29b7f63f 100644 --- a/cloudformation/glue/aws-glue-mltransform.go +++ b/cloudformation/glue/aws-glue-mltransform.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MLTransform AWS CloudFormation Resource (AWS::Glue::MLTransform) @@ -17,6 +17,11 @@ type MLTransform struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-description Description string `json:"Description,omitempty"` + // GlueVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-glueversion + GlueVersion string `json:"GlueVersion,omitempty"` + // InputRecordTables AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-inputrecordtables @@ -62,14 +67,14 @@ type MLTransform struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-workertype WorkerType string `json:"WorkerType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -77,42 +82,6 @@ func (r *MLTransform) AWSCloudFormationType() string { return "AWS::Glue::MLTransform" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MLTransform) MarshalJSON() ([]byte, error) { @@ -126,9 +95,9 @@ func (r MLTransform) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -157,13 +126,13 @@ func (r *MLTransform) UnmarshalJSON(b []byte) error { *r = MLTransform(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go b/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go index 022b38a860..b229db48e8 100644 --- a/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go +++ b/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MLTransform_FindMatchesParameters AWS CloudFormation Resource (AWS::Glue::MLTransform.FindMatchesParameters) @@ -28,53 +28,17 @@ type MLTransform_FindMatchesParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-transformparameters-findmatchesparameters.html#cfn-glue-mltransform-transformparameters-findmatchesparameters-primarykeycolumnname PrimaryKeyColumnName string `json:"PrimaryKeyColumnName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MLTransform_FindMatchesParameters) AWSCloudFormationType() string { return "AWS::Glue::MLTransform.FindMatchesParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_FindMatchesParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_FindMatchesParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_FindMatchesParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_FindMatchesParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_FindMatchesParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_FindMatchesParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-mltransform_gluetables.go b/cloudformation/glue/aws-glue-mltransform_gluetables.go index 0edda68413..6108722bb2 100644 --- a/cloudformation/glue/aws-glue-mltransform_gluetables.go +++ b/cloudformation/glue/aws-glue-mltransform_gluetables.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MLTransform_GlueTables AWS CloudFormation Resource (AWS::Glue::MLTransform.GlueTables) @@ -28,53 +28,17 @@ type MLTransform_GlueTables struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-inputrecordtables-gluetables.html#cfn-glue-mltransform-inputrecordtables-gluetables-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MLTransform_GlueTables) AWSCloudFormationType() string { return "AWS::Glue::MLTransform.GlueTables" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_GlueTables) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_GlueTables) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_GlueTables) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_GlueTables) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_GlueTables) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_GlueTables) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go b/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go index 0b1248a80a..dd27fade24 100644 --- a/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go +++ b/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MLTransform_InputRecordTables AWS CloudFormation Resource (AWS::Glue::MLTransform.InputRecordTables) @@ -13,53 +13,17 @@ type MLTransform_InputRecordTables struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-inputrecordtables.html#cfn-glue-mltransform-inputrecordtables-gluetables GlueTables []MLTransform_GlueTables `json:"GlueTables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MLTransform_InputRecordTables) AWSCloudFormationType() string { return "AWS::Glue::MLTransform.InputRecordTables" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_InputRecordTables) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_InputRecordTables) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_InputRecordTables) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_InputRecordTables) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_InputRecordTables) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_InputRecordTables) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-mltransform_transformparameters.go b/cloudformation/glue/aws-glue-mltransform_transformparameters.go index 6d9903e148..bff1d7d1de 100644 --- a/cloudformation/glue/aws-glue-mltransform_transformparameters.go +++ b/cloudformation/glue/aws-glue-mltransform_transformparameters.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MLTransform_TransformParameters AWS CloudFormation Resource (AWS::Glue::MLTransform.TransformParameters) @@ -18,53 +18,17 @@ type MLTransform_TransformParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-mltransform-transformparameters.html#cfn-glue-mltransform-transformparameters-transformtype TransformType string `json:"TransformType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MLTransform_TransformParameters) AWSCloudFormationType() string { return "AWS::Glue::MLTransform.TransformParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_TransformParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MLTransform_TransformParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_TransformParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MLTransform_TransformParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_TransformParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MLTransform_TransformParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-partition.go b/cloudformation/glue/aws-glue-partition.go index 82bcf0f8ec..1d4c319344 100644 --- a/cloudformation/glue/aws-glue-partition.go +++ b/cloudformation/glue/aws-glue-partition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition AWS CloudFormation Resource (AWS::Glue::Partition) @@ -32,14 +32,14 @@ type Partition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Partition) AWSCloudFormationType() string { return "AWS::Glue::Partition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Partition) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Partition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Partition) UnmarshalJSON(b []byte) error { *r = Partition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-partition_column.go b/cloudformation/glue/aws-glue-partition_column.go index fc17300db3..729a43241a 100644 --- a/cloudformation/glue/aws-glue-partition_column.go +++ b/cloudformation/glue/aws-glue-partition_column.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition_Column AWS CloudFormation Resource (AWS::Glue::Partition.Column) @@ -23,53 +23,17 @@ type Partition_Column struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-column.html#cfn-glue-partition-column-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Partition_Column) AWSCloudFormationType() string { return "AWS::Glue::Partition.Column" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_Column) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_Column) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_Column) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_Column) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_Column) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_Column) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-partition_order.go b/cloudformation/glue/aws-glue-partition_order.go index f8b7b86d6e..e3d8473744 100644 --- a/cloudformation/glue/aws-glue-partition_order.go +++ b/cloudformation/glue/aws-glue-partition_order.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition_Order AWS CloudFormation Resource (AWS::Glue::Partition.Order) @@ -18,53 +18,17 @@ type Partition_Order struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-order.html#cfn-glue-partition-order-sortorder SortOrder int `json:"SortOrder,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Partition_Order) AWSCloudFormationType() string { return "AWS::Glue::Partition.Order" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_Order) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_Order) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_Order) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_Order) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_Order) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_Order) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-partition_partitioninput.go b/cloudformation/glue/aws-glue-partition_partitioninput.go index 28338425b5..11d2a3daa2 100644 --- a/cloudformation/glue/aws-glue-partition_partitioninput.go +++ b/cloudformation/glue/aws-glue-partition_partitioninput.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition_PartitionInput AWS CloudFormation Resource (AWS::Glue::Partition.PartitionInput) @@ -23,53 +23,17 @@ type Partition_PartitionInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Partition_PartitionInput) AWSCloudFormationType() string { return "AWS::Glue::Partition.PartitionInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_PartitionInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_PartitionInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_PartitionInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_PartitionInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_PartitionInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_PartitionInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-partition_serdeinfo.go b/cloudformation/glue/aws-glue-partition_serdeinfo.go index edf7d84885..12ce983590 100644 --- a/cloudformation/glue/aws-glue-partition_serdeinfo.go +++ b/cloudformation/glue/aws-glue-partition_serdeinfo.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition_SerdeInfo AWS CloudFormation Resource (AWS::Glue::Partition.SerdeInfo) @@ -23,53 +23,17 @@ type Partition_SerdeInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-serdeinfo.html#cfn-glue-partition-serdeinfo-serializationlibrary SerializationLibrary string `json:"SerializationLibrary,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Partition_SerdeInfo) AWSCloudFormationType() string { return "AWS::Glue::Partition.SerdeInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_SerdeInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_SerdeInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_SerdeInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_SerdeInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_SerdeInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_SerdeInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-partition_skewedinfo.go b/cloudformation/glue/aws-glue-partition_skewedinfo.go index bb36d997d9..ff302aad97 100644 --- a/cloudformation/glue/aws-glue-partition_skewedinfo.go +++ b/cloudformation/glue/aws-glue-partition_skewedinfo.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition_SkewedInfo AWS CloudFormation Resource (AWS::Glue::Partition.SkewedInfo) @@ -23,53 +23,17 @@ type Partition_SkewedInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-skewedinfo.html#cfn-glue-partition-skewedinfo-skewedcolumnvalues SkewedColumnValues []string `json:"SkewedColumnValues,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Partition_SkewedInfo) AWSCloudFormationType() string { return "AWS::Glue::Partition.SkewedInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_SkewedInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_SkewedInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_SkewedInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_SkewedInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_SkewedInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_SkewedInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-partition_storagedescriptor.go b/cloudformation/glue/aws-glue-partition_storagedescriptor.go index dd26ce7b61..d893f4e2f0 100644 --- a/cloudformation/glue/aws-glue-partition_storagedescriptor.go +++ b/cloudformation/glue/aws-glue-partition_storagedescriptor.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Partition_StorageDescriptor AWS CloudFormation Resource (AWS::Glue::Partition.StorageDescriptor) @@ -68,53 +68,17 @@ type Partition_StorageDescriptor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-storagedescriptor.html#cfn-glue-partition-storagedescriptor-storedassubdirectories StoredAsSubDirectories bool `json:"StoredAsSubDirectories,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Partition_StorageDescriptor) AWSCloudFormationType() string { return "AWS::Glue::Partition.StorageDescriptor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_StorageDescriptor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Partition_StorageDescriptor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_StorageDescriptor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Partition_StorageDescriptor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_StorageDescriptor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Partition_StorageDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-securityconfiguration.go b/cloudformation/glue/aws-glue-securityconfiguration.go index 9fbcf8f320..9a1aae0650 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration.go +++ b/cloudformation/glue/aws-glue-securityconfiguration.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration AWS CloudFormation Resource (AWS::Glue::SecurityConfiguration) @@ -22,14 +22,14 @@ type SecurityConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-securityconfiguration.html#cfn-glue-securityconfiguration-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SecurityConfiguration) AWSCloudFormationType() string { return "AWS::Glue::SecurityConfiguration" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecurityConfiguration) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SecurityConfiguration) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SecurityConfiguration) UnmarshalJSON(b []byte) error { *r = SecurityConfiguration(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go b/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go index 94c7f6ae5f..58c06b2593 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration_CloudWatchEncryption AWS CloudFormation Resource (AWS::Glue::SecurityConfiguration.CloudWatchEncryption) @@ -18,53 +18,17 @@ type SecurityConfiguration_CloudWatchEncryption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-securityconfiguration-cloudwatchencryption.html#cfn-glue-securityconfiguration-cloudwatchencryption-kmskeyarn KmsKeyArn string `json:"KmsKeyArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityConfiguration_CloudWatchEncryption) AWSCloudFormationType() string { return "AWS::Glue::SecurityConfiguration.CloudWatchEncryption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_CloudWatchEncryption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_CloudWatchEncryption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_CloudWatchEncryption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_CloudWatchEncryption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_CloudWatchEncryption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_CloudWatchEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go b/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go index 64aaf68af6..5bf54110b3 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration_EncryptionConfiguration AWS CloudFormation Resource (AWS::Glue::SecurityConfiguration.EncryptionConfiguration) @@ -23,53 +23,17 @@ type SecurityConfiguration_EncryptionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-securityconfiguration-encryptionconfiguration.html#cfn-glue-securityconfiguration-encryptionconfiguration-s3encryptions S3Encryptions *SecurityConfiguration_S3Encryptions `json:"S3Encryptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityConfiguration_EncryptionConfiguration) AWSCloudFormationType() string { return "AWS::Glue::SecurityConfiguration.EncryptionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_EncryptionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_EncryptionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_EncryptionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_EncryptionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_EncryptionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_EncryptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go b/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go index 8e4cdbed92..b6cefc3b3f 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration_JobBookmarksEncryption AWS CloudFormation Resource (AWS::Glue::SecurityConfiguration.JobBookmarksEncryption) @@ -18,53 +18,17 @@ type SecurityConfiguration_JobBookmarksEncryption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-securityconfiguration-jobbookmarksencryption.html#cfn-glue-securityconfiguration-jobbookmarksencryption-kmskeyarn KmsKeyArn string `json:"KmsKeyArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityConfiguration_JobBookmarksEncryption) AWSCloudFormationType() string { return "AWS::Glue::SecurityConfiguration.JobBookmarksEncryption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_JobBookmarksEncryption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_JobBookmarksEncryption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_JobBookmarksEncryption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_JobBookmarksEncryption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_JobBookmarksEncryption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_JobBookmarksEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go b/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go index 0ed698e467..e4546ca910 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration_S3Encryption AWS CloudFormation Resource (AWS::Glue::SecurityConfiguration.S3Encryption) @@ -18,53 +18,17 @@ type SecurityConfiguration_S3Encryption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-securityconfiguration-s3encryption.html#cfn-glue-securityconfiguration-s3encryption-s3encryptionmode S3EncryptionMode string `json:"S3EncryptionMode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityConfiguration_S3Encryption) AWSCloudFormationType() string { return "AWS::Glue::SecurityConfiguration.S3Encryption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_S3Encryption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_S3Encryption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_S3Encryption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_S3Encryption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_S3Encryption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_S3Encryption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go b/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go index d8419ef9e8..31e92a1f85 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go @@ -1,60 +1,24 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecurityConfiguration_S3Encryptions AWS CloudFormation Resource (AWS::Glue::SecurityConfiguration.S3Encryptions) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-securityconfiguration-s3encryptions.html type SecurityConfiguration_S3Encryptions struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SecurityConfiguration_S3Encryptions) AWSCloudFormationType() string { return "AWS::Glue::SecurityConfiguration.S3Encryptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_S3Encryptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecurityConfiguration_S3Encryptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_S3Encryptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecurityConfiguration_S3Encryptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_S3Encryptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecurityConfiguration_S3Encryptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-table.go b/cloudformation/glue/aws-glue-table.go index 6ea35e7b33..e995a6bf24 100644 --- a/cloudformation/glue/aws-glue-table.go +++ b/cloudformation/glue/aws-glue-table.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table AWS CloudFormation Resource (AWS::Glue::Table) @@ -27,14 +27,14 @@ type Table struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html#cfn-glue-table-tableinput TableInput *Table_TableInput `json:"TableInput,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Table) AWSCloudFormationType() string { return "AWS::Glue::Table" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Table) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Table) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Table) UnmarshalJSON(b []byte) error { *r = Table(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-table_column.go b/cloudformation/glue/aws-glue-table_column.go index e8bddc8cce..835701f457 100644 --- a/cloudformation/glue/aws-glue-table_column.go +++ b/cloudformation/glue/aws-glue-table_column.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_Column AWS CloudFormation Resource (AWS::Glue::Table.Column) @@ -23,53 +23,17 @@ type Table_Column struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-column.html#cfn-glue-table-column-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_Column) AWSCloudFormationType() string { return "AWS::Glue::Table.Column" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_Column) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_Column) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_Column) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_Column) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_Column) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_Column) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-table_order.go b/cloudformation/glue/aws-glue-table_order.go index ba15e00c86..75cc80a0be 100644 --- a/cloudformation/glue/aws-glue-table_order.go +++ b/cloudformation/glue/aws-glue-table_order.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_Order AWS CloudFormation Resource (AWS::Glue::Table.Order) @@ -18,53 +18,17 @@ type Table_Order struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-order.html#cfn-glue-table-order-sortorder SortOrder int `json:"SortOrder"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_Order) AWSCloudFormationType() string { return "AWS::Glue::Table.Order" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_Order) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_Order) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_Order) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_Order) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_Order) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_Order) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-table_serdeinfo.go b/cloudformation/glue/aws-glue-table_serdeinfo.go index 587dce1b66..aa32f51dd8 100644 --- a/cloudformation/glue/aws-glue-table_serdeinfo.go +++ b/cloudformation/glue/aws-glue-table_serdeinfo.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_SerdeInfo AWS CloudFormation Resource (AWS::Glue::Table.SerdeInfo) @@ -23,53 +23,17 @@ type Table_SerdeInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-serdeinfo.html#cfn-glue-table-serdeinfo-serializationlibrary SerializationLibrary string `json:"SerializationLibrary,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_SerdeInfo) AWSCloudFormationType() string { return "AWS::Glue::Table.SerdeInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_SerdeInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_SerdeInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_SerdeInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_SerdeInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_SerdeInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_SerdeInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-table_skewedinfo.go b/cloudformation/glue/aws-glue-table_skewedinfo.go index 2d3643bb65..558e4a46e0 100644 --- a/cloudformation/glue/aws-glue-table_skewedinfo.go +++ b/cloudformation/glue/aws-glue-table_skewedinfo.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_SkewedInfo AWS CloudFormation Resource (AWS::Glue::Table.SkewedInfo) @@ -23,53 +23,17 @@ type Table_SkewedInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-skewedinfo.html#cfn-glue-table-skewedinfo-skewedcolumnvalues SkewedColumnValues []string `json:"SkewedColumnValues,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_SkewedInfo) AWSCloudFormationType() string { return "AWS::Glue::Table.SkewedInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_SkewedInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_SkewedInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_SkewedInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_SkewedInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_SkewedInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_SkewedInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-table_storagedescriptor.go b/cloudformation/glue/aws-glue-table_storagedescriptor.go index 21e2a34c64..fd81e2ef33 100644 --- a/cloudformation/glue/aws-glue-table_storagedescriptor.go +++ b/cloudformation/glue/aws-glue-table_storagedescriptor.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_StorageDescriptor AWS CloudFormation Resource (AWS::Glue::Table.StorageDescriptor) @@ -68,53 +68,17 @@ type Table_StorageDescriptor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-storagedescriptor.html#cfn-glue-table-storagedescriptor-storedassubdirectories StoredAsSubDirectories bool `json:"StoredAsSubDirectories,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_StorageDescriptor) AWSCloudFormationType() string { return "AWS::Glue::Table.StorageDescriptor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_StorageDescriptor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_StorageDescriptor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_StorageDescriptor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_StorageDescriptor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_StorageDescriptor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_StorageDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-table_tableinput.go b/cloudformation/glue/aws-glue-table_tableinput.go index e3aae97151..5e61289f94 100644 --- a/cloudformation/glue/aws-glue-table_tableinput.go +++ b/cloudformation/glue/aws-glue-table_tableinput.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Table_TableInput AWS CloudFormation Resource (AWS::Glue::Table.TableInput) @@ -58,53 +58,17 @@ type Table_TableInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-vieworiginaltext ViewOriginalText string `json:"ViewOriginalText,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Table_TableInput) AWSCloudFormationType() string { return "AWS::Glue::Table.TableInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_TableInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Table_TableInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_TableInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Table_TableInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_TableInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Table_TableInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-trigger.go b/cloudformation/glue/aws-glue-trigger.go index f974ab44f6..b7d70abb6e 100644 --- a/cloudformation/glue/aws-glue-trigger.go +++ b/cloudformation/glue/aws-glue-trigger.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trigger AWS CloudFormation Resource (AWS::Glue::Trigger) @@ -57,14 +57,14 @@ type Trigger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-workflowname WorkflowName string `json:"WorkflowName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *Trigger) AWSCloudFormationType() string { return "AWS::Glue::Trigger" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Trigger) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r Trigger) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *Trigger) UnmarshalJSON(b []byte) error { *r = Trigger(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/glue/aws-glue-trigger_action.go b/cloudformation/glue/aws-glue-trigger_action.go index 475c90dfa9..3ecc8035f9 100644 --- a/cloudformation/glue/aws-glue-trigger_action.go +++ b/cloudformation/glue/aws-glue-trigger_action.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trigger_Action AWS CloudFormation Resource (AWS::Glue::Trigger.Action) @@ -38,53 +38,17 @@ type Trigger_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-action.html#cfn-glue-trigger-action-timeout Timeout int `json:"Timeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Trigger_Action) AWSCloudFormationType() string { return "AWS::Glue::Trigger.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-trigger_condition.go b/cloudformation/glue/aws-glue-trigger_condition.go index 1cc1954ddc..fd481749b1 100644 --- a/cloudformation/glue/aws-glue-trigger_condition.go +++ b/cloudformation/glue/aws-glue-trigger_condition.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trigger_Condition AWS CloudFormation Resource (AWS::Glue::Trigger.Condition) @@ -33,53 +33,17 @@ type Trigger_Condition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-condition.html#cfn-glue-trigger-condition-state State string `json:"State,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Trigger_Condition) AWSCloudFormationType() string { return "AWS::Glue::Trigger.Condition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_Condition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_Condition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_Condition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_Condition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_Condition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_Condition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-trigger_notificationproperty.go b/cloudformation/glue/aws-glue-trigger_notificationproperty.go index 4efcdae5a6..8517d270fb 100644 --- a/cloudformation/glue/aws-glue-trigger_notificationproperty.go +++ b/cloudformation/glue/aws-glue-trigger_notificationproperty.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trigger_NotificationProperty AWS CloudFormation Resource (AWS::Glue::Trigger.NotificationProperty) @@ -13,53 +13,17 @@ type Trigger_NotificationProperty struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-notificationproperty.html#cfn-glue-trigger-notificationproperty-notifydelayafter NotifyDelayAfter int `json:"NotifyDelayAfter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Trigger_NotificationProperty) AWSCloudFormationType() string { return "AWS::Glue::Trigger.NotificationProperty" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_NotificationProperty) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_NotificationProperty) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_NotificationProperty) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_NotificationProperty) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_NotificationProperty) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_NotificationProperty) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-trigger_predicate.go b/cloudformation/glue/aws-glue-trigger_predicate.go index 9a95f8c637..f5d8a9d29a 100644 --- a/cloudformation/glue/aws-glue-trigger_predicate.go +++ b/cloudformation/glue/aws-glue-trigger_predicate.go @@ -1,7 +1,7 @@ package glue import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Trigger_Predicate AWS CloudFormation Resource (AWS::Glue::Trigger.Predicate) @@ -18,53 +18,17 @@ type Trigger_Predicate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-predicate.html#cfn-glue-trigger-predicate-logical Logical string `json:"Logical,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Trigger_Predicate) AWSCloudFormationType() string { return "AWS::Glue::Trigger.Predicate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_Predicate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Trigger_Predicate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_Predicate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Trigger_Predicate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_Predicate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Trigger_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/glue/aws-glue-workflow.go b/cloudformation/glue/aws-glue-workflow.go index 36885aef3f..5d83aced97 100644 --- a/cloudformation/glue/aws-glue-workflow.go +++ b/cloudformation/glue/aws-glue-workflow.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Workflow AWS CloudFormation Resource (AWS::Glue::Workflow) @@ -32,14 +32,14 @@ type Workflow struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Workflow) AWSCloudFormationType() string { return "AWS::Glue::Workflow" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workflow) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workflow) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workflow) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workflow) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workflow) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workflow) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Workflow) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Workflow) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Workflow) UnmarshalJSON(b []byte) error { *r = Workflow(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinition.go b/cloudformation/greengrass/aws-greengrass-connectordefinition.go index 73b1e7e95b..fd83b29e79 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinition.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConnectorDefinition AWS CloudFormation Resource (AWS::Greengrass::ConnectorDefinition) @@ -27,14 +27,14 @@ type ConnectorDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-connectordefinition.html#cfn-greengrass-connectordefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ConnectorDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::ConnectorDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConnectorDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ConnectorDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ConnectorDefinition) UnmarshalJSON(b []byte) error { *r = ConnectorDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go b/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go index 101c4a6bd0..300934998d 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConnectorDefinition_Connector AWS CloudFormation Resource (AWS::Greengrass::ConnectorDefinition.Connector) @@ -23,53 +23,17 @@ type ConnectorDefinition_Connector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-connectordefinition-connector.html#cfn-greengrass-connectordefinition-connector-parameters Parameters interface{} `json:"Parameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConnectorDefinition_Connector) AWSCloudFormationType() string { return "AWS::Greengrass::ConnectorDefinition.Connector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinition_Connector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinition_Connector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinition_Connector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinition_Connector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinition_Connector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinition_Connector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go b/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go index bcf5f61551..4607b309f7 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConnectorDefinition_ConnectorDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::ConnectorDefinition.ConnectorDefinitionVersion) @@ -13,53 +13,17 @@ type ConnectorDefinition_ConnectorDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-connectordefinition-connectordefinitionversion.html#cfn-greengrass-connectordefinition-connectordefinitionversion-connectors Connectors []ConnectorDefinition_Connector `json:"Connectors,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConnectorDefinition_ConnectorDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::ConnectorDefinition.ConnectorDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinition_ConnectorDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinition_ConnectorDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinition_ConnectorDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinition_ConnectorDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinition_ConnectorDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinition_ConnectorDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go index 2d409692b1..4e752afe65 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConnectorDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::ConnectorDefinitionVersion) @@ -22,14 +22,14 @@ type ConnectorDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-connectordefinitionversion.html#cfn-greengrass-connectordefinitionversion-connectors Connectors []ConnectorDefinitionVersion_Connector `json:"Connectors,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ConnectorDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::ConnectorDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConnectorDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ConnectorDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ConnectorDefinitionVersion) UnmarshalJSON(b []byte) error { *r = ConnectorDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go index 63a0923e22..31020ec658 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConnectorDefinitionVersion_Connector AWS CloudFormation Resource (AWS::Greengrass::ConnectorDefinitionVersion.Connector) @@ -23,53 +23,17 @@ type ConnectorDefinitionVersion_Connector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-connectordefinitionversion-connector.html#cfn-greengrass-connectordefinitionversion-connector-parameters Parameters interface{} `json:"Parameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConnectorDefinitionVersion_Connector) AWSCloudFormationType() string { return "AWS::Greengrass::ConnectorDefinitionVersion.Connector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinitionVersion_Connector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConnectorDefinitionVersion_Connector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinitionVersion_Connector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConnectorDefinitionVersion_Connector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinitionVersion_Connector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConnectorDefinitionVersion_Connector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-coredefinition.go b/cloudformation/greengrass/aws-greengrass-coredefinition.go index a2d48829ea..0f833b8e58 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinition.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CoreDefinition AWS CloudFormation Resource (AWS::Greengrass::CoreDefinition) @@ -27,14 +27,14 @@ type CoreDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-coredefinition.html#cfn-greengrass-coredefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *CoreDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::CoreDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CoreDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r CoreDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *CoreDefinition) UnmarshalJSON(b []byte) error { *r = CoreDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-coredefinition_core.go b/cloudformation/greengrass/aws-greengrass-coredefinition_core.go index fc90c7e361..16fc12817b 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinition_core.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinition_core.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CoreDefinition_Core AWS CloudFormation Resource (AWS::Greengrass::CoreDefinition.Core) @@ -28,53 +28,17 @@ type CoreDefinition_Core struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-coredefinition-core.html#cfn-greengrass-coredefinition-core-thingarn ThingArn string `json:"ThingArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CoreDefinition_Core) AWSCloudFormationType() string { return "AWS::Greengrass::CoreDefinition.Core" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinition_Core) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinition_Core) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinition_Core) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinition_Core) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinition_Core) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinition_Core) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go b/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go index bf59a59095..dbc65cb721 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CoreDefinition_CoreDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::CoreDefinition.CoreDefinitionVersion) @@ -13,53 +13,17 @@ type CoreDefinition_CoreDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-coredefinition-coredefinitionversion.html#cfn-greengrass-coredefinition-coredefinitionversion-cores Cores []CoreDefinition_Core `json:"Cores,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CoreDefinition_CoreDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::CoreDefinition.CoreDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinition_CoreDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinition_CoreDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinition_CoreDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinition_CoreDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinition_CoreDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinition_CoreDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go b/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go index 15867fa9f6..3f2881a1e1 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CoreDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::CoreDefinitionVersion) @@ -22,14 +22,14 @@ type CoreDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-coredefinitionversion.html#cfn-greengrass-coredefinitionversion-cores Cores []CoreDefinitionVersion_Core `json:"Cores,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *CoreDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::CoreDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CoreDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r CoreDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *CoreDefinitionVersion) UnmarshalJSON(b []byte) error { *r = CoreDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go b/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go index b95467d340..a7018fd3b6 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CoreDefinitionVersion_Core AWS CloudFormation Resource (AWS::Greengrass::CoreDefinitionVersion.Core) @@ -28,53 +28,17 @@ type CoreDefinitionVersion_Core struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-coredefinitionversion-core.html#cfn-greengrass-coredefinitionversion-core-thingarn ThingArn string `json:"ThingArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CoreDefinitionVersion_Core) AWSCloudFormationType() string { return "AWS::Greengrass::CoreDefinitionVersion.Core" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinitionVersion_Core) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CoreDefinitionVersion_Core) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinitionVersion_Core) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CoreDefinitionVersion_Core) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinitionVersion_Core) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CoreDefinitionVersion_Core) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinition.go b/cloudformation/greengrass/aws-greengrass-devicedefinition.go index bf4e261e07..0be16e6649 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinition.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeviceDefinition AWS CloudFormation Resource (AWS::Greengrass::DeviceDefinition) @@ -27,14 +27,14 @@ type DeviceDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-devicedefinition.html#cfn-greengrass-devicedefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *DeviceDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::DeviceDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DeviceDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r DeviceDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *DeviceDefinition) UnmarshalJSON(b []byte) error { *r = DeviceDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go b/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go index d468f7df2b..1512d847b7 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeviceDefinition_Device AWS CloudFormation Resource (AWS::Greengrass::DeviceDefinition.Device) @@ -28,53 +28,17 @@ type DeviceDefinition_Device struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-devicedefinition-device.html#cfn-greengrass-devicedefinition-device-thingarn ThingArn string `json:"ThingArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeviceDefinition_Device) AWSCloudFormationType() string { return "AWS::Greengrass::DeviceDefinition.Device" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinition_Device) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinition_Device) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinition_Device) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinition_Device) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinition_Device) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinition_Device) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go index 1f28c05b93..84d04aeb65 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeviceDefinition_DeviceDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::DeviceDefinition.DeviceDefinitionVersion) @@ -13,53 +13,17 @@ type DeviceDefinition_DeviceDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-devicedefinition-devicedefinitionversion.html#cfn-greengrass-devicedefinition-devicedefinitionversion-devices Devices []DeviceDefinition_Device `json:"Devices,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeviceDefinition_DeviceDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::DeviceDefinition.DeviceDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinition_DeviceDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinition_DeviceDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinition_DeviceDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinition_DeviceDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinition_DeviceDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinition_DeviceDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go index 602d1b8668..0c59cf789c 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeviceDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::DeviceDefinitionVersion) @@ -22,14 +22,14 @@ type DeviceDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-devicedefinitionversion.html#cfn-greengrass-devicedefinitionversion-devices Devices []DeviceDefinitionVersion_Device `json:"Devices,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *DeviceDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::DeviceDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DeviceDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r DeviceDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *DeviceDefinitionVersion) UnmarshalJSON(b []byte) error { *r = DeviceDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go index 1eb8e1c6ed..c1597fac3b 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeviceDefinitionVersion_Device AWS CloudFormation Resource (AWS::Greengrass::DeviceDefinitionVersion.Device) @@ -28,53 +28,17 @@ type DeviceDefinitionVersion_Device struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-devicedefinitionversion-device.html#cfn-greengrass-devicedefinitionversion-device-thingarn ThingArn string `json:"ThingArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeviceDefinitionVersion_Device) AWSCloudFormationType() string { return "AWS::Greengrass::DeviceDefinitionVersion.Device" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinitionVersion_Device) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeviceDefinitionVersion_Device) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinitionVersion_Device) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeviceDefinitionVersion_Device) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinitionVersion_Device) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeviceDefinitionVersion_Device) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition.go b/cloudformation/greengrass/aws-greengrass-functiondefinition.go index 5c7f5e8eb3..3f3c8f271e 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition) @@ -27,14 +27,14 @@ type FunctionDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinition.html#cfn-greengrass-functiondefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *FunctionDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FunctionDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r FunctionDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *FunctionDefinition) UnmarshalJSON(b []byte) error { *r = FunctionDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go index 700f686e87..415dd2be6d 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_DefaultConfig AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.DefaultConfig) @@ -13,53 +13,17 @@ type FunctionDefinition_DefaultConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-defaultconfig.html#cfn-greengrass-functiondefinition-defaultconfig-execution Execution *FunctionDefinition_Execution `json:"Execution,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_DefaultConfig) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.DefaultConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_DefaultConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_DefaultConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_DefaultConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_DefaultConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_DefaultConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_DefaultConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go index d5cecc8a51..e5466e0c9c 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_Environment AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.Environment) @@ -28,53 +28,17 @@ type FunctionDefinition_Environment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-environment.html#cfn-greengrass-functiondefinition-environment-variables Variables interface{} `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_Environment) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.Environment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_Environment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_Environment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_Environment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_Environment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_Environment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go index 710282a382..68a5d7bf4c 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_Execution AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.Execution) @@ -18,53 +18,17 @@ type FunctionDefinition_Execution struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-execution.html#cfn-greengrass-functiondefinition-execution-runas RunAs *FunctionDefinition_RunAs `json:"RunAs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_Execution) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.Execution" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_Execution) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_Execution) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_Execution) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_Execution) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_Execution) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_Execution) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go index e04bb63780..59c66f6dcc 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_Function AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.Function) @@ -23,53 +23,17 @@ type FunctionDefinition_Function struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-function.html#cfn-greengrass-functiondefinition-function-id Id string `json:"Id,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_Function) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.Function" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_Function) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_Function) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_Function) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_Function) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_Function) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_Function) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go index ea6c3121ee..8d76b551ed 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_FunctionConfiguration AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.FunctionConfiguration) @@ -43,53 +43,17 @@ type FunctionDefinition_FunctionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-functionconfiguration.html#cfn-greengrass-functiondefinition-functionconfiguration-timeout Timeout int `json:"Timeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_FunctionConfiguration) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.FunctionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_FunctionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_FunctionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_FunctionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_FunctionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_FunctionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_FunctionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go index 6f9a594033..352d921c4e 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_FunctionDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.FunctionDefinitionVersion) @@ -18,53 +18,17 @@ type FunctionDefinition_FunctionDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-functiondefinitionversion.html#cfn-greengrass-functiondefinition-functiondefinitionversion-functions Functions []FunctionDefinition_Function `json:"Functions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_FunctionDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.FunctionDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_FunctionDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_FunctionDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_FunctionDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_FunctionDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_FunctionDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_FunctionDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go index 47738e5497..d40f8cc4b5 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_ResourceAccessPolicy AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.ResourceAccessPolicy) @@ -18,53 +18,17 @@ type FunctionDefinition_ResourceAccessPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-resourceaccesspolicy.html#cfn-greengrass-functiondefinition-resourceaccesspolicy-resourceid ResourceId string `json:"ResourceId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_ResourceAccessPolicy) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.ResourceAccessPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_ResourceAccessPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_ResourceAccessPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_ResourceAccessPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_ResourceAccessPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_ResourceAccessPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_ResourceAccessPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go index 3ff0b7b854..dee37ab5a2 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinition_RunAs AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinition.RunAs) @@ -18,53 +18,17 @@ type FunctionDefinition_RunAs struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-runas.html#cfn-greengrass-functiondefinition-runas-uid Uid int `json:"Uid,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinition_RunAs) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinition.RunAs" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_RunAs) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinition_RunAs) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_RunAs) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinition_RunAs) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_RunAs) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinition_RunAs) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go index 7af7a61f5a..847e4fac8a 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion) @@ -27,14 +27,14 @@ type FunctionDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-functiondefinitionversion.html#cfn-greengrass-functiondefinitionversion-functions Functions []FunctionDefinitionVersion_Function `json:"Functions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *FunctionDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FunctionDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r FunctionDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *FunctionDefinitionVersion) UnmarshalJSON(b []byte) error { *r = FunctionDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go index fd0c1db590..9d8bb12a09 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_DefaultConfig AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.DefaultConfig) @@ -13,53 +13,17 @@ type FunctionDefinitionVersion_DefaultConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-defaultconfig.html#cfn-greengrass-functiondefinitionversion-defaultconfig-execution Execution *FunctionDefinitionVersion_Execution `json:"Execution,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_DefaultConfig) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.DefaultConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_DefaultConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_DefaultConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_DefaultConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_DefaultConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_DefaultConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_DefaultConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go index a6f20002b2..90294504a8 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_Environment AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.Environment) @@ -28,53 +28,17 @@ type FunctionDefinitionVersion_Environment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-environment.html#cfn-greengrass-functiondefinitionversion-environment-variables Variables interface{} `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_Environment) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.Environment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_Environment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_Environment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_Environment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_Environment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_Environment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go index 9eb2094f43..cda48de5ae 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_Execution AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.Execution) @@ -18,53 +18,17 @@ type FunctionDefinitionVersion_Execution struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-execution.html#cfn-greengrass-functiondefinitionversion-execution-runas RunAs *FunctionDefinitionVersion_RunAs `json:"RunAs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_Execution) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.Execution" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_Execution) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_Execution) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_Execution) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_Execution) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_Execution) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_Execution) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go index 4804fe1313..29c9de2f44 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_Function AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.Function) @@ -23,53 +23,17 @@ type FunctionDefinitionVersion_Function struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-function.html#cfn-greengrass-functiondefinitionversion-function-id Id string `json:"Id,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_Function) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.Function" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_Function) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_Function) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_Function) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_Function) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_Function) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_Function) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go index 49110dab13..2459bb3b2e 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_FunctionConfiguration AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.FunctionConfiguration) @@ -43,53 +43,17 @@ type FunctionDefinitionVersion_FunctionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-functionconfiguration.html#cfn-greengrass-functiondefinitionversion-functionconfiguration-timeout Timeout int `json:"Timeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_FunctionConfiguration) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.FunctionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_FunctionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_FunctionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_FunctionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_FunctionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_FunctionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_FunctionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go index 3a99e396db..1576193f30 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_ResourceAccessPolicy AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.ResourceAccessPolicy) @@ -18,53 +18,17 @@ type FunctionDefinitionVersion_ResourceAccessPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-resourceaccesspolicy.html#cfn-greengrass-functiondefinitionversion-resourceaccesspolicy-resourceid ResourceId string `json:"ResourceId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_ResourceAccessPolicy) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.ResourceAccessPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_ResourceAccessPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_ResourceAccessPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_ResourceAccessPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_ResourceAccessPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_ResourceAccessPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_ResourceAccessPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go index 504c9c6861..025d7bfc55 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FunctionDefinitionVersion_RunAs AWS CloudFormation Resource (AWS::Greengrass::FunctionDefinitionVersion.RunAs) @@ -18,53 +18,17 @@ type FunctionDefinitionVersion_RunAs struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-runas.html#cfn-greengrass-functiondefinitionversion-runas-uid Uid int `json:"Uid,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FunctionDefinitionVersion_RunAs) AWSCloudFormationType() string { return "AWS::Greengrass::FunctionDefinitionVersion.RunAs" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_RunAs) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FunctionDefinitionVersion_RunAs) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_RunAs) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FunctionDefinitionVersion_RunAs) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_RunAs) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FunctionDefinitionVersion_RunAs) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-group.go b/cloudformation/greengrass/aws-greengrass-group.go index 0e54326fa8..5883c283b2 100644 --- a/cloudformation/greengrass/aws-greengrass-group.go +++ b/cloudformation/greengrass/aws-greengrass-group.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Group AWS CloudFormation Resource (AWS::Greengrass::Group) @@ -32,14 +32,14 @@ type Group struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-group.html#cfn-greengrass-group-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Group) AWSCloudFormationType() string { return "AWS::Greengrass::Group" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Group) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Group) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Group) UnmarshalJSON(b []byte) error { *r = Group(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-group_groupversion.go b/cloudformation/greengrass/aws-greengrass-group_groupversion.go index 483c1e0294..0123186418 100644 --- a/cloudformation/greengrass/aws-greengrass-group_groupversion.go +++ b/cloudformation/greengrass/aws-greengrass-group_groupversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Group_GroupVersion AWS CloudFormation Resource (AWS::Greengrass::Group.GroupVersion) @@ -43,53 +43,17 @@ type Group_GroupVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-group-groupversion.html#cfn-greengrass-group-groupversion-subscriptiondefinitionversionarn SubscriptionDefinitionVersionArn string `json:"SubscriptionDefinitionVersionArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Group_GroupVersion) AWSCloudFormationType() string { return "AWS::Greengrass::Group.GroupVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group_GroupVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group_GroupVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group_GroupVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group_GroupVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group_GroupVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group_GroupVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-groupversion.go b/cloudformation/greengrass/aws-greengrass-groupversion.go index e79e22d198..ee4964f0b3 100644 --- a/cloudformation/greengrass/aws-greengrass-groupversion.go +++ b/cloudformation/greengrass/aws-greengrass-groupversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GroupVersion AWS CloudFormation Resource (AWS::Greengrass::GroupVersion) @@ -52,14 +52,14 @@ type GroupVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-groupversion.html#cfn-greengrass-groupversion-subscriptiondefinitionversionarn SubscriptionDefinitionVersionArn string `json:"SubscriptionDefinitionVersionArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *GroupVersion) AWSCloudFormationType() string { return "AWS::Greengrass::GroupVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GroupVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GroupVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GroupVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GroupVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GroupVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GroupVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GroupVersion) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r GroupVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *GroupVersion) UnmarshalJSON(b []byte) error { *r = GroupVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinition.go b/cloudformation/greengrass/aws-greengrass-loggerdefinition.go index 6d799b2812..d7c77722a0 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinition.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoggerDefinition AWS CloudFormation Resource (AWS::Greengrass::LoggerDefinition) @@ -27,14 +27,14 @@ type LoggerDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinition.html#cfn-greengrass-loggerdefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *LoggerDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::LoggerDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LoggerDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r LoggerDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *LoggerDefinition) UnmarshalJSON(b []byte) error { *r = LoggerDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go b/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go index 92c183fa58..a66cdac106 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoggerDefinition_Logger AWS CloudFormation Resource (AWS::Greengrass::LoggerDefinition.Logger) @@ -33,53 +33,17 @@ type LoggerDefinition_Logger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-loggerdefinition-logger.html#cfn-greengrass-loggerdefinition-logger-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoggerDefinition_Logger) AWSCloudFormationType() string { return "AWS::Greengrass::LoggerDefinition.Logger" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinition_Logger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinition_Logger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinition_Logger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinition_Logger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinition_Logger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinition_Logger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go b/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go index c7d54c1c8a..26f629c180 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoggerDefinition_LoggerDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::LoggerDefinition.LoggerDefinitionVersion) @@ -13,53 +13,17 @@ type LoggerDefinition_LoggerDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-loggerdefinition-loggerdefinitionversion.html#cfn-greengrass-loggerdefinition-loggerdefinitionversion-loggers Loggers []LoggerDefinition_Logger `json:"Loggers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoggerDefinition_LoggerDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::LoggerDefinition.LoggerDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinition_LoggerDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinition_LoggerDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinition_LoggerDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinition_LoggerDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinition_LoggerDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinition_LoggerDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go index 1944053c4e..3a231b59b6 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoggerDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::LoggerDefinitionVersion) @@ -22,14 +22,14 @@ type LoggerDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-loggerdefinitionversion.html#cfn-greengrass-loggerdefinitionversion-loggers Loggers []LoggerDefinitionVersion_Logger `json:"Loggers,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *LoggerDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::LoggerDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LoggerDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r LoggerDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *LoggerDefinitionVersion) UnmarshalJSON(b []byte) error { *r = LoggerDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go index 32fb53bd02..a8af0b2e6b 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LoggerDefinitionVersion_Logger AWS CloudFormation Resource (AWS::Greengrass::LoggerDefinitionVersion.Logger) @@ -33,53 +33,17 @@ type LoggerDefinitionVersion_Logger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-loggerdefinitionversion-logger.html#cfn-greengrass-loggerdefinitionversion-logger-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LoggerDefinitionVersion_Logger) AWSCloudFormationType() string { return "AWS::Greengrass::LoggerDefinitionVersion.Logger" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinitionVersion_Logger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LoggerDefinitionVersion_Logger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinitionVersion_Logger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LoggerDefinitionVersion_Logger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinitionVersion_Logger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LoggerDefinitionVersion_Logger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition.go index af64dc3b7e..fa226171b1 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition) @@ -27,14 +27,14 @@ type ResourceDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinition.html#cfn-greengrass-resourcedefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ResourceDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourceDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ResourceDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ResourceDefinition) UnmarshalJSON(b []byte) error { *r = ResourceDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go index de94faad7d..a8b56289d9 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_GroupOwnerSetting AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.GroupOwnerSetting) @@ -18,53 +18,17 @@ type ResourceDefinition_GroupOwnerSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-groupownersetting.html#cfn-greengrass-resourcedefinition-groupownersetting-groupowner GroupOwner string `json:"GroupOwner,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_GroupOwnerSetting) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.GroupOwnerSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_GroupOwnerSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_GroupOwnerSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_GroupOwnerSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_GroupOwnerSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_GroupOwnerSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_GroupOwnerSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go index b76981e4fa..c5f2963d80 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_LocalDeviceResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.LocalDeviceResourceData) @@ -18,53 +18,17 @@ type ResourceDefinition_LocalDeviceResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localdeviceresourcedata.html#cfn-greengrass-resourcedefinition-localdeviceresourcedata-sourcepath SourcePath string `json:"SourcePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_LocalDeviceResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.LocalDeviceResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_LocalDeviceResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_LocalDeviceResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_LocalDeviceResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_LocalDeviceResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_LocalDeviceResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_LocalDeviceResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go index b578b46f0e..275877f250 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_LocalVolumeResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.LocalVolumeResourceData) @@ -23,53 +23,17 @@ type ResourceDefinition_LocalVolumeResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-localvolumeresourcedata.html#cfn-greengrass-resourcedefinition-localvolumeresourcedata-sourcepath SourcePath string `json:"SourcePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_LocalVolumeResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.LocalVolumeResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_LocalVolumeResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_LocalVolumeResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_LocalVolumeResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_LocalVolumeResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_LocalVolumeResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_LocalVolumeResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go index 5dc38ec3d1..6c826aaa99 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_ResourceDataContainer AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.ResourceDataContainer) @@ -33,53 +33,17 @@ type ResourceDefinition_ResourceDataContainer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourcedatacontainer.html#cfn-greengrass-resourcedefinition-resourcedatacontainer-secretsmanagersecretresourcedata SecretsManagerSecretResourceData *ResourceDefinition_SecretsManagerSecretResourceData `json:"SecretsManagerSecretResourceData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_ResourceDataContainer) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.ResourceDataContainer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_ResourceDataContainer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_ResourceDataContainer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_ResourceDataContainer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_ResourceDataContainer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_ResourceDataContainer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_ResourceDataContainer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go index 675ff28692..226a66e83f 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_ResourceDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.ResourceDefinitionVersion) @@ -13,53 +13,17 @@ type ResourceDefinition_ResourceDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourcedefinitionversion.html#cfn-greengrass-resourcedefinition-resourcedefinitionversion-resources Resources []ResourceDefinition_ResourceInstance `json:"Resources,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_ResourceDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.ResourceDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_ResourceDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_ResourceDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_ResourceDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_ResourceDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_ResourceDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_ResourceDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go index f1bd6575c9..246d9389fd 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_ResourceInstance AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.ResourceInstance) @@ -23,53 +23,17 @@ type ResourceDefinition_ResourceInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-resourceinstance.html#cfn-greengrass-resourcedefinition-resourceinstance-resourcedatacontainer ResourceDataContainer *ResourceDefinition_ResourceDataContainer `json:"ResourceDataContainer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_ResourceInstance) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.ResourceInstance" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_ResourceInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_ResourceInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_ResourceInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_ResourceInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_ResourceInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_ResourceInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go index 6d3785e0d4..92decd03d9 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_S3MachineLearningModelResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.S3MachineLearningModelResourceData) @@ -18,53 +18,17 @@ type ResourceDefinition_S3MachineLearningModelResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-s3machinelearningmodelresourcedata.html#cfn-greengrass-resourcedefinition-s3machinelearningmodelresourcedata-s3uri S3Uri string `json:"S3Uri,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_S3MachineLearningModelResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.S3MachineLearningModelResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_S3MachineLearningModelResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_S3MachineLearningModelResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_S3MachineLearningModelResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_S3MachineLearningModelResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_S3MachineLearningModelResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_S3MachineLearningModelResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go index d73b605fc1..2dfbc7d0b9 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_SageMakerMachineLearningModelResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.SageMakerMachineLearningModelResourceData) @@ -18,53 +18,17 @@ type ResourceDefinition_SageMakerMachineLearningModelResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-sagemakermachinelearningmodelresourcedata.html#cfn-greengrass-resourcedefinition-sagemakermachinelearningmodelresourcedata-sagemakerjobarn SageMakerJobArn string `json:"SageMakerJobArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.SageMakerMachineLearningModelResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_SageMakerMachineLearningModelResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go index b5a060ff09..07947807bc 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinition_SecretsManagerSecretResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinition.SecretsManagerSecretResourceData) @@ -18,53 +18,17 @@ type ResourceDefinition_SecretsManagerSecretResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinition-secretsmanagersecretresourcedata.html#cfn-greengrass-resourcedefinition-secretsmanagersecretresourcedata-additionalstaginglabelstodownload AdditionalStagingLabelsToDownload []string `json:"AdditionalStagingLabelsToDownload,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinition_SecretsManagerSecretResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinition.SecretsManagerSecretResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_SecretsManagerSecretResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinition_SecretsManagerSecretResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_SecretsManagerSecretResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinition_SecretsManagerSecretResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_SecretsManagerSecretResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinition_SecretsManagerSecretResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go index 0bf29b79b5..7909585e42 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion) @@ -22,14 +22,14 @@ type ResourceDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-resourcedefinitionversion.html#cfn-greengrass-resourcedefinitionversion-resources Resources []ResourceDefinitionVersion_ResourceInstance `json:"Resources,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ResourceDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourceDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ResourceDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ResourceDefinitionVersion) UnmarshalJSON(b []byte) error { *r = ResourceDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go index 4ccede43c2..de47c4b7f7 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_GroupOwnerSetting AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.GroupOwnerSetting) @@ -18,53 +18,17 @@ type ResourceDefinitionVersion_GroupOwnerSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-groupownersetting.html#cfn-greengrass-resourcedefinitionversion-groupownersetting-groupowner GroupOwner string `json:"GroupOwner,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_GroupOwnerSetting) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.GroupOwnerSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_GroupOwnerSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_GroupOwnerSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_GroupOwnerSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_GroupOwnerSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_GroupOwnerSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_GroupOwnerSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go index cec30720fd..1e2444925c 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_LocalDeviceResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.LocalDeviceResourceData) @@ -18,53 +18,17 @@ type ResourceDefinitionVersion_LocalDeviceResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-localdeviceresourcedata.html#cfn-greengrass-resourcedefinitionversion-localdeviceresourcedata-sourcepath SourcePath string `json:"SourcePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_LocalDeviceResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.LocalDeviceResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_LocalDeviceResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_LocalDeviceResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_LocalDeviceResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_LocalDeviceResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_LocalDeviceResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_LocalDeviceResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go index 80b77196cb..6af06ede9c 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_LocalVolumeResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.LocalVolumeResourceData) @@ -23,53 +23,17 @@ type ResourceDefinitionVersion_LocalVolumeResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-localvolumeresourcedata.html#cfn-greengrass-resourcedefinitionversion-localvolumeresourcedata-sourcepath SourcePath string `json:"SourcePath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_LocalVolumeResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.LocalVolumeResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_LocalVolumeResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_LocalVolumeResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_LocalVolumeResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_LocalVolumeResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_LocalVolumeResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_LocalVolumeResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go index 92657a949d..37a378e588 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_ResourceDataContainer AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.ResourceDataContainer) @@ -33,53 +33,17 @@ type ResourceDefinitionVersion_ResourceDataContainer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html#cfn-greengrass-resourcedefinitionversion-resourcedatacontainer-secretsmanagersecretresourcedata SecretsManagerSecretResourceData *ResourceDefinitionVersion_SecretsManagerSecretResourceData `json:"SecretsManagerSecretResourceData,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_ResourceDataContainer) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.ResourceDataContainer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_ResourceDataContainer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_ResourceDataContainer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_ResourceDataContainer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_ResourceDataContainer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_ResourceDataContainer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_ResourceDataContainer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go index 668a26be94..ce72cdb915 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_ResourceInstance AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.ResourceInstance) @@ -23,53 +23,17 @@ type ResourceDefinitionVersion_ResourceInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourceinstance.html#cfn-greengrass-resourcedefinitionversion-resourceinstance-resourcedatacontainer ResourceDataContainer *ResourceDefinitionVersion_ResourceDataContainer `json:"ResourceDataContainer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_ResourceInstance) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.ResourceInstance" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_ResourceInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_ResourceInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_ResourceInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_ResourceInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_ResourceInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_ResourceInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go index f2825aed13..30fe00dc5c 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_S3MachineLearningModelResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.S3MachineLearningModelResourceData) @@ -18,53 +18,17 @@ type ResourceDefinitionVersion_S3MachineLearningModelResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-s3machinelearningmodelresourcedata.html#cfn-greengrass-resourcedefinitionversion-s3machinelearningmodelresourcedata-s3uri S3Uri string `json:"S3Uri,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.S3MachineLearningModelResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_S3MachineLearningModelResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go index 0dfc281daa..90919fc586 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.SageMakerMachineLearningModelResourceData) @@ -18,53 +18,17 @@ type ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData struct // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-sagemakermachinelearningmodelresourcedata.html#cfn-greengrass-resourcedefinitionversion-sagemakermachinelearningmodelresourcedata-sagemakerjobarn SageMakerJobArn string `json:"SageMakerJobArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.SageMakerMachineLearningModelResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go index f1ff0c41af..95d963020a 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDefinitionVersion_SecretsManagerSecretResourceData AWS CloudFormation Resource (AWS::Greengrass::ResourceDefinitionVersion.SecretsManagerSecretResourceData) @@ -18,53 +18,17 @@ type ResourceDefinitionVersion_SecretsManagerSecretResourceData struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-secretsmanagersecretresourcedata.html#cfn-greengrass-resourcedefinitionversion-secretsmanagersecretresourcedata-additionalstaginglabelstodownload AdditionalStagingLabelsToDownload []string `json:"AdditionalStagingLabelsToDownload,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) AWSCloudFormationType() string { return "AWS::Greengrass::ResourceDefinitionVersion.SecretsManagerSecretResourceData" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDefinitionVersion_SecretsManagerSecretResourceData) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go index 3b7b2330f3..0b70326da6 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubscriptionDefinition AWS CloudFormation Resource (AWS::Greengrass::SubscriptionDefinition) @@ -27,14 +27,14 @@ type SubscriptionDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-subscriptiondefinition.html#cfn-greengrass-subscriptiondefinition-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *SubscriptionDefinition) AWSCloudFormationType() string { return "AWS::Greengrass::SubscriptionDefinition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubscriptionDefinition) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r SubscriptionDefinition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *SubscriptionDefinition) UnmarshalJSON(b []byte) error { *r = SubscriptionDefinition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go index a3a3f4d581..146339d1a3 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubscriptionDefinition_Subscription AWS CloudFormation Resource (AWS::Greengrass::SubscriptionDefinition.Subscription) @@ -28,53 +28,17 @@ type SubscriptionDefinition_Subscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-subscriptiondefinition-subscription.html#cfn-greengrass-subscriptiondefinition-subscription-target Target string `json:"Target,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SubscriptionDefinition_Subscription) AWSCloudFormationType() string { return "AWS::Greengrass::SubscriptionDefinition.Subscription" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinition_Subscription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinition_Subscription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinition_Subscription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinition_Subscription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinition_Subscription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinition_Subscription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go index 6341e43890..772c82ab30 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubscriptionDefinition_SubscriptionDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::SubscriptionDefinition.SubscriptionDefinitionVersion) @@ -13,53 +13,17 @@ type SubscriptionDefinition_SubscriptionDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-subscriptiondefinition-subscriptiondefinitionversion.html#cfn-greengrass-subscriptiondefinition-subscriptiondefinitionversion-subscriptions Subscriptions []SubscriptionDefinition_Subscription `json:"Subscriptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::SubscriptionDefinition.SubscriptionDefinitionVersion" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinition_SubscriptionDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go index ecde9d04a2..ed38fe1f8e 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubscriptionDefinitionVersion AWS CloudFormation Resource (AWS::Greengrass::SubscriptionDefinitionVersion) @@ -22,14 +22,14 @@ type SubscriptionDefinitionVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-greengrass-subscriptiondefinitionversion.html#cfn-greengrass-subscriptiondefinitionversion-subscriptions Subscriptions []SubscriptionDefinitionVersion_Subscription `json:"Subscriptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SubscriptionDefinitionVersion) AWSCloudFormationType() string { return "AWS::Greengrass::SubscriptionDefinitionVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinitionVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinitionVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinitionVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinitionVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinitionVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinitionVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubscriptionDefinitionVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SubscriptionDefinitionVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SubscriptionDefinitionVersion) UnmarshalJSON(b []byte) error { *r = SubscriptionDefinitionVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go index 8c33757e72..0569a0949c 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go @@ -1,7 +1,7 @@ package greengrass import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubscriptionDefinitionVersion_Subscription AWS CloudFormation Resource (AWS::Greengrass::SubscriptionDefinitionVersion.Subscription) @@ -28,53 +28,17 @@ type SubscriptionDefinitionVersion_Subscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-subscriptiondefinitionversion-subscription.html#cfn-greengrass-subscriptiondefinitionversion-subscription-target Target string `json:"Target,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SubscriptionDefinitionVersion_Subscription) AWSCloudFormationType() string { return "AWS::Greengrass::SubscriptionDefinitionVersion.Subscription" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinitionVersion_Subscription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionDefinitionVersion_Subscription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinitionVersion_Subscription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionDefinitionVersion_Subscription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinitionVersion_Subscription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionDefinitionVersion_Subscription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/guardduty/aws-guardduty-detector.go b/cloudformation/guardduty/aws-guardduty-detector.go index 4a0eaa54bf..ff2974d817 100644 --- a/cloudformation/guardduty/aws-guardduty-detector.go +++ b/cloudformation/guardduty/aws-guardduty-detector.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Detector AWS CloudFormation Resource (AWS::GuardDuty::Detector) @@ -22,14 +22,14 @@ type Detector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-detector.html#cfn-guardduty-detector-findingpublishingfrequency FindingPublishingFrequency string `json:"FindingPublishingFrequency,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Detector) AWSCloudFormationType() string { return "AWS::GuardDuty::Detector" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Detector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Detector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Detector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Detector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Detector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Detector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Detector) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Detector) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Detector) UnmarshalJSON(b []byte) error { *r = Detector(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-filter.go b/cloudformation/guardduty/aws-guardduty-filter.go index c8c56b7d69..93f3c2230f 100644 --- a/cloudformation/guardduty/aws-guardduty-filter.go +++ b/cloudformation/guardduty/aws-guardduty-filter.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Filter AWS CloudFormation Resource (AWS::GuardDuty::Filter) @@ -42,14 +42,14 @@ type Filter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html#cfn-guardduty-filter-rank Rank int `json:"Rank"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *Filter) AWSCloudFormationType() string { return "AWS::GuardDuty::Filter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Filter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Filter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Filter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Filter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Filter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Filter) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r Filter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *Filter) UnmarshalJSON(b []byte) error { *r = Filter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-filter_condition.go b/cloudformation/guardduty/aws-guardduty-filter_condition.go index 7c4a3a6e2e..8cc3e48421 100644 --- a/cloudformation/guardduty/aws-guardduty-filter_condition.go +++ b/cloudformation/guardduty/aws-guardduty-filter_condition.go @@ -1,7 +1,7 @@ package guardduty import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Filter_Condition AWS CloudFormation Resource (AWS::GuardDuty::Filter.Condition) @@ -33,53 +33,17 @@ type Filter_Condition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-condition.html#cfn-guardduty-filter-condition-neq Neq []string `json:"Neq,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Filter_Condition) AWSCloudFormationType() string { return "AWS::GuardDuty::Filter.Condition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Filter_Condition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Filter_Condition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Filter_Condition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Filter_Condition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Filter_Condition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Filter_Condition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go b/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go index c844c58b0d..eb88bb70e3 100644 --- a/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go +++ b/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go @@ -1,7 +1,7 @@ package guardduty import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Filter_FindingCriteria AWS CloudFormation Resource (AWS::GuardDuty::Filter.FindingCriteria) @@ -18,53 +18,17 @@ type Filter_FindingCriteria struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-filter-findingcriteria.html#cfn-guardduty-filter-findingcriteria-itemtype ItemType *Filter_Condition `json:"ItemType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Filter_FindingCriteria) AWSCloudFormationType() string { return "AWS::GuardDuty::Filter.FindingCriteria" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Filter_FindingCriteria) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Filter_FindingCriteria) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Filter_FindingCriteria) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Filter_FindingCriteria) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Filter_FindingCriteria) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Filter_FindingCriteria) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/guardduty/aws-guardduty-ipset.go b/cloudformation/guardduty/aws-guardduty-ipset.go index a7af63e3bb..450468bfee 100644 --- a/cloudformation/guardduty/aws-guardduty-ipset.go +++ b/cloudformation/guardduty/aws-guardduty-ipset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IPSet AWS CloudFormation Resource (AWS::GuardDuty::IPSet) @@ -37,14 +37,14 @@ type IPSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *IPSet) AWSCloudFormationType() string { return "AWS::GuardDuty::IPSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 IPSet) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r IPSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { *r = IPSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-master.go b/cloudformation/guardduty/aws-guardduty-master.go index 28e5111c80..ccb560c22b 100644 --- a/cloudformation/guardduty/aws-guardduty-master.go +++ b/cloudformation/guardduty/aws-guardduty-master.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Master AWS CloudFormation Resource (AWS::GuardDuty::Master) @@ -27,14 +27,14 @@ type Master struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-master.html#cfn-guardduty-master-masterid MasterId string `json:"MasterId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Master) AWSCloudFormationType() string { return "AWS::GuardDuty::Master" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Master) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Master) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Master) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Master) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Master) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Master) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Master) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Master) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Master) UnmarshalJSON(b []byte) error { *r = Master(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-member.go b/cloudformation/guardduty/aws-guardduty-member.go index d6f7e7a1f4..3abe1a9878 100644 --- a/cloudformation/guardduty/aws-guardduty-member.go +++ b/cloudformation/guardduty/aws-guardduty-member.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member AWS CloudFormation Resource (AWS::GuardDuty::Member) @@ -42,14 +42,14 @@ type Member struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-member.html#cfn-guardduty-member-status Status string `json:"Status,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *Member) AWSCloudFormationType() string { return "AWS::GuardDuty::Member" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Member) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r Member) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *Member) UnmarshalJSON(b []byte) error { *r = Member(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-threatintelset.go b/cloudformation/guardduty/aws-guardduty-threatintelset.go index 2660ba839d..fae46ccd6e 100644 --- a/cloudformation/guardduty/aws-guardduty-threatintelset.go +++ b/cloudformation/guardduty/aws-guardduty-threatintelset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ThreatIntelSet AWS CloudFormation Resource (AWS::GuardDuty::ThreatIntelSet) @@ -37,14 +37,14 @@ type ThreatIntelSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *ThreatIntelSet) AWSCloudFormationType() string { return "AWS::GuardDuty::ThreatIntelSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ThreatIntelSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ThreatIntelSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ThreatIntelSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ThreatIntelSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ThreatIntelSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ThreatIntelSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ThreatIntelSet) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r ThreatIntelSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *ThreatIntelSet) UnmarshalJSON(b []byte) error { *r = ThreatIntelSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-accesskey.go b/cloudformation/iam/aws-iam-accesskey.go index ddc06ba90c..0ff06b5acd 100644 --- a/cloudformation/iam/aws-iam-accesskey.go +++ b/cloudformation/iam/aws-iam-accesskey.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AccessKey AWS CloudFormation Resource (AWS::IAM::AccessKey) @@ -27,14 +27,14 @@ type AccessKey struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-username UserName string `json:"UserName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *AccessKey) AWSCloudFormationType() string { return "AWS::IAM::AccessKey" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AccessKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AccessKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AccessKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AccessKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AccessKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AccessKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 AccessKey) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r AccessKey) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *AccessKey) UnmarshalJSON(b []byte) error { *r = AccessKey(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-group.go b/cloudformation/iam/aws-iam-group.go index ebe2298705..c8cac967b3 100644 --- a/cloudformation/iam/aws-iam-group.go +++ b/cloudformation/iam/aws-iam-group.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Group AWS CloudFormation Resource (AWS::IAM::Group) @@ -32,14 +32,14 @@ type Group struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-policies Policies []Group_Policy `json:"Policies,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Group) AWSCloudFormationType() string { return "AWS::IAM::Group" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Group) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Group) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Group) UnmarshalJSON(b []byte) error { *r = Group(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-group_policy.go b/cloudformation/iam/aws-iam-group_policy.go index 4056f010ab..8b37d0f3cb 100644 --- a/cloudformation/iam/aws-iam-group_policy.go +++ b/cloudformation/iam/aws-iam-group_policy.go @@ -1,7 +1,7 @@ package iam import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Group_Policy AWS CloudFormation Resource (AWS::IAM::Group.Policy) @@ -18,53 +18,17 @@ type Group_Policy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname PolicyName string `json:"PolicyName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Group_Policy) AWSCloudFormationType() string { return "AWS::IAM::Group.Policy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group_Policy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Group_Policy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group_Policy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Group_Policy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group_Policy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Group_Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iam/aws-iam-instanceprofile.go b/cloudformation/iam/aws-iam-instanceprofile.go index b1c6810f86..5d0edda09e 100644 --- a/cloudformation/iam/aws-iam-instanceprofile.go +++ b/cloudformation/iam/aws-iam-instanceprofile.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InstanceProfile AWS CloudFormation Resource (AWS::IAM::InstanceProfile) @@ -27,14 +27,14 @@ type InstanceProfile struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-roles Roles []string `json:"Roles,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *InstanceProfile) AWSCloudFormationType() string { return "AWS::IAM::InstanceProfile" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceProfile) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InstanceProfile) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceProfile) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InstanceProfile) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceProfile) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InstanceProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 InstanceProfile) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r InstanceProfile) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *InstanceProfile) UnmarshalJSON(b []byte) error { *r = InstanceProfile(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-managedpolicy.go b/cloudformation/iam/aws-iam-managedpolicy.go index c3cfbded9a..5b2b811fba 100644 --- a/cloudformation/iam/aws-iam-managedpolicy.go +++ b/cloudformation/iam/aws-iam-managedpolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ManagedPolicy AWS CloudFormation Resource (AWS::IAM::ManagedPolicy) @@ -47,14 +47,14 @@ type ManagedPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users Users []string `json:"Users,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *ManagedPolicy) AWSCloudFormationType() string { return "AWS::IAM::ManagedPolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ManagedPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ManagedPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ManagedPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ManagedPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ManagedPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ManagedPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ManagedPolicy) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r ManagedPolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *ManagedPolicy) UnmarshalJSON(b []byte) error { *r = ManagedPolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-policy.go b/cloudformation/iam/aws-iam-policy.go index 6c2be14f27..bd218d92ea 100644 --- a/cloudformation/iam/aws-iam-policy.go +++ b/cloudformation/iam/aws-iam-policy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Policy AWS CloudFormation Resource (AWS::IAM::Policy) @@ -37,14 +37,14 @@ type Policy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-users Users []string `json:"Users,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Policy) AWSCloudFormationType() string { return "AWS::IAM::Policy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Policy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Policy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Policy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Policy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Policy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Policy) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Policy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Policy) UnmarshalJSON(b []byte) error { *r = Policy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-role.go b/cloudformation/iam/aws-iam-role.go index 0c944d1657..61d2108ce1 100644 --- a/cloudformation/iam/aws-iam-role.go +++ b/cloudformation/iam/aws-iam-role.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Role AWS CloudFormation Resource (AWS::IAM::Role) @@ -58,14 +58,14 @@ type Role struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -73,42 +73,6 @@ func (r *Role) AWSCloudFormationType() string { return "AWS::IAM::Role" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Role) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Role) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Role) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Role) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Role) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Role) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Role) MarshalJSON() ([]byte, error) { @@ -122,9 +86,9 @@ func (r Role) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -153,13 +117,13 @@ func (r *Role) UnmarshalJSON(b []byte) error { *r = Role(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-role_policy.go b/cloudformation/iam/aws-iam-role_policy.go index bb689fb6d0..600ea86b63 100644 --- a/cloudformation/iam/aws-iam-role_policy.go +++ b/cloudformation/iam/aws-iam-role_policy.go @@ -1,7 +1,7 @@ package iam import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Role_Policy AWS CloudFormation Resource (AWS::IAM::Role.Policy) @@ -18,53 +18,17 @@ type Role_Policy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname PolicyName string `json:"PolicyName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Role_Policy) AWSCloudFormationType() string { return "AWS::IAM::Role.Policy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Role_Policy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Role_Policy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Role_Policy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Role_Policy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Role_Policy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Role_Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iam/aws-iam-servicelinkedrole.go b/cloudformation/iam/aws-iam-servicelinkedrole.go index 2be817d3c8..5a47c1bd00 100644 --- a/cloudformation/iam/aws-iam-servicelinkedrole.go +++ b/cloudformation/iam/aws-iam-servicelinkedrole.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ServiceLinkedRole AWS CloudFormation Resource (AWS::IAM::ServiceLinkedRole) @@ -27,14 +27,14 @@ type ServiceLinkedRole struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-description Description string `json:"Description,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ServiceLinkedRole) AWSCloudFormationType() string { return "AWS::IAM::ServiceLinkedRole" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ServiceLinkedRole) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ServiceLinkedRole) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ServiceLinkedRole) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ServiceLinkedRole) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ServiceLinkedRole) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ServiceLinkedRole) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ServiceLinkedRole) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ServiceLinkedRole) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ServiceLinkedRole) UnmarshalJSON(b []byte) error { *r = ServiceLinkedRole(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-user.go b/cloudformation/iam/aws-iam-user.go index 307b46e666..db88bacead 100644 --- a/cloudformation/iam/aws-iam-user.go +++ b/cloudformation/iam/aws-iam-user.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // User AWS CloudFormation Resource (AWS::IAM::User) @@ -42,19 +43,24 @@ type User struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-policies Policies []User_Policy `json:"Policies,omitempty"` + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-tags + Tags []tags.Tag `json:"Tags,omitempty"` + // UserName AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-username UserName string `json:"UserName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +68,6 @@ func (r *User) AWSCloudFormationType() string { return "AWS::IAM::User" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 User) MarshalJSON() ([]byte, error) { @@ -111,9 +81,9 @@ func (r User) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +112,13 @@ func (r *User) UnmarshalJSON(b []byte) error { *r = User(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iam/aws-iam-user_loginprofile.go b/cloudformation/iam/aws-iam-user_loginprofile.go index 799ae7820b..257183c2e0 100644 --- a/cloudformation/iam/aws-iam-user_loginprofile.go +++ b/cloudformation/iam/aws-iam-user_loginprofile.go @@ -1,7 +1,7 @@ package iam import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // User_LoginProfile AWS CloudFormation Resource (AWS::IAM::User.LoginProfile) @@ -18,53 +18,17 @@ type User_LoginProfile struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html#cfn-iam-user-loginprofile-passwordresetrequired PasswordResetRequired bool `json:"PasswordResetRequired,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *User_LoginProfile) AWSCloudFormationType() string { return "AWS::IAM::User.LoginProfile" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User_LoginProfile) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User_LoginProfile) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User_LoginProfile) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User_LoginProfile) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User_LoginProfile) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User_LoginProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iam/aws-iam-user_policy.go b/cloudformation/iam/aws-iam-user_policy.go index 90307e58e0..f926b34558 100644 --- a/cloudformation/iam/aws-iam-user_policy.go +++ b/cloudformation/iam/aws-iam-user_policy.go @@ -1,7 +1,7 @@ package iam import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // User_Policy AWS CloudFormation Resource (AWS::IAM::User.Policy) @@ -18,53 +18,17 @@ type User_Policy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname PolicyName string `json:"PolicyName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *User_Policy) AWSCloudFormationType() string { return "AWS::IAM::User.Policy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User_Policy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User_Policy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User_Policy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User_Policy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User_Policy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User_Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iam/aws-iam-usertogroupaddition.go b/cloudformation/iam/aws-iam-usertogroupaddition.go index c2c50fb4dc..95a7d77e33 100644 --- a/cloudformation/iam/aws-iam-usertogroupaddition.go +++ b/cloudformation/iam/aws-iam-usertogroupaddition.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserToGroupAddition AWS CloudFormation Resource (AWS::IAM::UserToGroupAddition) @@ -22,14 +22,14 @@ type UserToGroupAddition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-users Users []string `json:"Users,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *UserToGroupAddition) AWSCloudFormationType() string { return "AWS::IAM::UserToGroupAddition" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserToGroupAddition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserToGroupAddition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserToGroupAddition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserToGroupAddition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserToGroupAddition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserToGroupAddition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserToGroupAddition) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r UserToGroupAddition) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *UserToGroupAddition) UnmarshalJSON(b []byte) error { *r = UserToGroupAddition(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/inspector/aws-inspector-assessmenttarget.go b/cloudformation/inspector/aws-inspector-assessmenttarget.go index d03323f131..fbc9638660 100644 --- a/cloudformation/inspector/aws-inspector-assessmenttarget.go +++ b/cloudformation/inspector/aws-inspector-assessmenttarget.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AssessmentTarget AWS CloudFormation Resource (AWS::Inspector::AssessmentTarget) @@ -22,14 +22,14 @@ type AssessmentTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html#cfn-inspector-assessmenttarget-resourcegrouparn ResourceGroupArn string `json:"ResourceGroupArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *AssessmentTarget) AWSCloudFormationType() string { return "AWS::Inspector::AssessmentTarget" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AssessmentTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AssessmentTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AssessmentTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AssessmentTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AssessmentTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AssessmentTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 AssessmentTarget) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r AssessmentTarget) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *AssessmentTarget) UnmarshalJSON(b []byte) error { *r = AssessmentTarget(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/inspector/aws-inspector-assessmenttemplate.go b/cloudformation/inspector/aws-inspector-assessmenttemplate.go index 783181b0ad..9314e08181 100644 --- a/cloudformation/inspector/aws-inspector-assessmenttemplate.go +++ b/cloudformation/inspector/aws-inspector-assessmenttemplate.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // AssessmentTemplate AWS CloudFormation Resource (AWS::Inspector::AssessmentTemplate) @@ -38,14 +38,14 @@ type AssessmentTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings UserAttributesForFindings []tags.Tag `json:"UserAttributesForFindings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *AssessmentTemplate) AWSCloudFormationType() string { return "AWS::Inspector::AssessmentTemplate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AssessmentTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AssessmentTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AssessmentTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AssessmentTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AssessmentTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AssessmentTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 AssessmentTemplate) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r AssessmentTemplate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *AssessmentTemplate) UnmarshalJSON(b []byte) error { *r = AssessmentTemplate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/inspector/aws-inspector-resourcegroup.go b/cloudformation/inspector/aws-inspector-resourcegroup.go index 4fbf4f591b..dc3607ca29 100644 --- a/cloudformation/inspector/aws-inspector-resourcegroup.go +++ b/cloudformation/inspector/aws-inspector-resourcegroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ResourceGroup AWS CloudFormation Resource (AWS::Inspector::ResourceGroup) @@ -18,14 +18,14 @@ type ResourceGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html#cfn-inspector-resourcegroup-resourcegrouptags ResourceGroupTags []tags.Tag `json:"ResourceGroupTags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -33,42 +33,6 @@ func (r *ResourceGroup) AWSCloudFormationType() string { return "AWS::Inspector::ResourceGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourceGroup) MarshalJSON() ([]byte, error) { @@ -82,9 +46,9 @@ func (r ResourceGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -113,13 +77,13 @@ func (r *ResourceGroup) UnmarshalJSON(b []byte) error { *r = ResourceGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/intrinsics.go b/cloudformation/intrinsics.go index 3f82dcc6b2..a2b0816b10 100644 --- a/cloudformation/intrinsics.go +++ b/cloudformation/intrinsics.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/awslabs/goformation/v3/intrinsics" + "github.com/awslabs/goformation/v4/intrinsics" ) func strWrap(fn func(interface{}) string) intrinsics.IntrinsicHandler { diff --git a/cloudformation/intrinsics_test.go b/cloudformation/intrinsics_test.go index 503c345dcb..083d54e837 100644 --- a/cloudformation/intrinsics_test.go +++ b/cloudformation/intrinsics_test.go @@ -3,9 +3,9 @@ package cloudformation_test import ( "strings" - "github.com/awslabs/goformation/v3" - "github.com/awslabs/goformation/v3/cloudformation" - "github.com/awslabs/goformation/v3/intrinsics" + "github.com/awslabs/goformation/v4" + "github.com/awslabs/goformation/v4/cloudformation" + "github.com/awslabs/goformation/v4/intrinsics" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/cloudformation/iot/aws-iot-certificate.go b/cloudformation/iot/aws-iot-certificate.go index 1d9be4ec36..f225dd2503 100644 --- a/cloudformation/iot/aws-iot-certificate.go +++ b/cloudformation/iot/aws-iot-certificate.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Certificate AWS CloudFormation Resource (AWS::IoT::Certificate) @@ -22,14 +22,14 @@ type Certificate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-certificate.html#cfn-iot-certificate-status Status string `json:"Status,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Certificate) AWSCloudFormationType() string { return "AWS::IoT::Certificate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Certificate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Certificate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Certificate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Certificate) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Certificate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { *r = Certificate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot/aws-iot-policy.go b/cloudformation/iot/aws-iot-policy.go index 5c80b1265b..627a195ecf 100644 --- a/cloudformation/iot/aws-iot-policy.go +++ b/cloudformation/iot/aws-iot-policy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Policy AWS CloudFormation Resource (AWS::IoT::Policy) @@ -22,14 +22,14 @@ type Policy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policy.html#cfn-iot-policy-policyname PolicyName string `json:"PolicyName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Policy) AWSCloudFormationType() string { return "AWS::IoT::Policy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Policy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Policy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Policy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Policy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Policy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Policy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Policy) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Policy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Policy) UnmarshalJSON(b []byte) error { *r = Policy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot/aws-iot-policyprincipalattachment.go b/cloudformation/iot/aws-iot-policyprincipalattachment.go index a705271ab1..aa4eecdbcc 100644 --- a/cloudformation/iot/aws-iot-policyprincipalattachment.go +++ b/cloudformation/iot/aws-iot-policyprincipalattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PolicyPrincipalAttachment AWS CloudFormation Resource (AWS::IoT::PolicyPrincipalAttachment) @@ -22,14 +22,14 @@ type PolicyPrincipalAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policyprincipalattachment.html#cfn-iot-policyprincipalattachment-principal Principal string `json:"Principal,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *PolicyPrincipalAttachment) AWSCloudFormationType() string { return "AWS::IoT::PolicyPrincipalAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PolicyPrincipalAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PolicyPrincipalAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PolicyPrincipalAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PolicyPrincipalAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PolicyPrincipalAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PolicyPrincipalAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PolicyPrincipalAttachment) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r PolicyPrincipalAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *PolicyPrincipalAttachment) UnmarshalJSON(b []byte) error { *r = PolicyPrincipalAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot/aws-iot-thing.go b/cloudformation/iot/aws-iot-thing.go index e3399cf57a..1143419acf 100644 --- a/cloudformation/iot/aws-iot-thing.go +++ b/cloudformation/iot/aws-iot-thing.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Thing AWS CloudFormation Resource (AWS::IoT::Thing) @@ -22,14 +22,14 @@ type Thing struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-thingname ThingName string `json:"ThingName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Thing) AWSCloudFormationType() string { return "AWS::IoT::Thing" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Thing) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Thing) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Thing) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Thing) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Thing) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Thing) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Thing) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Thing) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Thing) UnmarshalJSON(b []byte) error { *r = Thing(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot/aws-iot-thing_attributepayload.go b/cloudformation/iot/aws-iot-thing_attributepayload.go index cbb29ea06d..2e8976e936 100644 --- a/cloudformation/iot/aws-iot-thing_attributepayload.go +++ b/cloudformation/iot/aws-iot-thing_attributepayload.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Thing_AttributePayload AWS CloudFormation Resource (AWS::IoT::Thing.AttributePayload) @@ -13,53 +13,17 @@ type Thing_AttributePayload struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thing-attributepayload.html#cfn-iot-thing-attributepayload-attributes Attributes map[string]string `json:"Attributes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Thing_AttributePayload) AWSCloudFormationType() string { return "AWS::IoT::Thing.AttributePayload" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Thing_AttributePayload) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Thing_AttributePayload) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Thing_AttributePayload) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Thing_AttributePayload) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Thing_AttributePayload) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Thing_AttributePayload) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-thingprincipalattachment.go b/cloudformation/iot/aws-iot-thingprincipalattachment.go index ed6620f7e4..cf6a8c2057 100644 --- a/cloudformation/iot/aws-iot-thingprincipalattachment.go +++ b/cloudformation/iot/aws-iot-thingprincipalattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ThingPrincipalAttachment AWS CloudFormation Resource (AWS::IoT::ThingPrincipalAttachment) @@ -22,14 +22,14 @@ type ThingPrincipalAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thingprincipalattachment.html#cfn-iot-thingprincipalattachment-thingname ThingName string `json:"ThingName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ThingPrincipalAttachment) AWSCloudFormationType() string { return "AWS::IoT::ThingPrincipalAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ThingPrincipalAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ThingPrincipalAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ThingPrincipalAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ThingPrincipalAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ThingPrincipalAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ThingPrincipalAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ThingPrincipalAttachment) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ThingPrincipalAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ThingPrincipalAttachment) UnmarshalJSON(b []byte) error { *r = ThingPrincipalAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot/aws-iot-topicrule.go b/cloudformation/iot/aws-iot-topicrule.go index ccf9edfcc1..2112db5e00 100644 --- a/cloudformation/iot/aws-iot-topicrule.go +++ b/cloudformation/iot/aws-iot-topicrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule AWS CloudFormation Resource (AWS::IoT::TopicRule) @@ -22,14 +22,14 @@ type TopicRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html#cfn-iot-topicrule-topicrulepayload TopicRulePayload *TopicRule_TopicRulePayload `json:"TopicRulePayload,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *TopicRule) AWSCloudFormationType() string { return "AWS::IoT::TopicRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TopicRule) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r TopicRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *TopicRule) UnmarshalJSON(b []byte) error { *r = TopicRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot/aws-iot-topicrule_action.go b/cloudformation/iot/aws-iot-topicrule_action.go index 6aad171de6..46c6cd4585 100644 --- a/cloudformation/iot/aws-iot-topicrule_action.go +++ b/cloudformation/iot/aws-iot-topicrule_action.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_Action AWS CloudFormation Resource (AWS::IoT::TopicRule.Action) @@ -78,53 +78,17 @@ type TopicRule_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-action.html#cfn-iot-topicrule-action-stepfunctions StepFunctions *TopicRule_StepFunctionsAction `json:"StepFunctions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_Action) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go b/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go index a43e2bd877..603ed37690 100644 --- a/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go +++ b/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_CloudwatchAlarmAction AWS CloudFormation Resource (AWS::IoT::TopicRule.CloudwatchAlarmAction) @@ -28,53 +28,17 @@ type TopicRule_CloudwatchAlarmAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-statevalue StateValue string `json:"StateValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_CloudwatchAlarmAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.CloudwatchAlarmAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_CloudwatchAlarmAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_CloudwatchAlarmAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_CloudwatchAlarmAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_CloudwatchAlarmAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_CloudwatchAlarmAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_CloudwatchAlarmAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go b/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go index 33b6a93539..a5c290319c 100644 --- a/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go +++ b/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_CloudwatchMetricAction AWS CloudFormation Resource (AWS::IoT::TopicRule.CloudwatchMetricAction) @@ -38,53 +38,17 @@ type TopicRule_CloudwatchMetricAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchmetricaction.html#cfn-iot-topicrule-cloudwatchmetricaction-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_CloudwatchMetricAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.CloudwatchMetricAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_CloudwatchMetricAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_CloudwatchMetricAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_CloudwatchMetricAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_CloudwatchMetricAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_CloudwatchMetricAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_CloudwatchMetricAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go b/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go index e83dd7d4ef..05cf752001 100644 --- a/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go +++ b/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_DynamoDBAction AWS CloudFormation Resource (AWS::IoT::TopicRule.DynamoDBAction) @@ -53,53 +53,17 @@ type TopicRule_DynamoDBAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbaction.html#cfn-iot-topicrule-dynamodbaction-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_DynamoDBAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.DynamoDBAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_DynamoDBAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_DynamoDBAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_DynamoDBAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_DynamoDBAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_DynamoDBAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_DynamoDBAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go b/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go index 9008d4a096..661d232f34 100644 --- a/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go +++ b/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_DynamoDBv2Action AWS CloudFormation Resource (AWS::IoT::TopicRule.DynamoDBv2Action) @@ -18,53 +18,17 @@ type TopicRule_DynamoDBv2Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-dynamodbv2action.html#cfn-iot-topicrule-dynamodbv2action-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_DynamoDBv2Action) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.DynamoDBv2Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_DynamoDBv2Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_DynamoDBv2Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_DynamoDBv2Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_DynamoDBv2Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_DynamoDBv2Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_DynamoDBv2Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go b/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go index b7499d3ff7..c63658f3c7 100644 --- a/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go +++ b/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_ElasticsearchAction AWS CloudFormation Resource (AWS::IoT::TopicRule.ElasticsearchAction) @@ -33,53 +33,17 @@ type TopicRule_ElasticsearchAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_ElasticsearchAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.ElasticsearchAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_ElasticsearchAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_ElasticsearchAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_ElasticsearchAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_ElasticsearchAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_ElasticsearchAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_ElasticsearchAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_firehoseaction.go b/cloudformation/iot/aws-iot-topicrule_firehoseaction.go index d62e1618ee..40abe92b4f 100644 --- a/cloudformation/iot/aws-iot-topicrule_firehoseaction.go +++ b/cloudformation/iot/aws-iot-topicrule_firehoseaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_FirehoseAction AWS CloudFormation Resource (AWS::IoT::TopicRule.FirehoseAction) @@ -23,53 +23,17 @@ type TopicRule_FirehoseAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-firehoseaction.html#cfn-iot-topicrule-firehoseaction-separator Separator string `json:"Separator,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_FirehoseAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.FirehoseAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_FirehoseAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_FirehoseAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_FirehoseAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_FirehoseAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_FirehoseAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_FirehoseAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go b/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go index 9c4224dada..02da686878 100644 --- a/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_IotAnalyticsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.IotAnalyticsAction) @@ -18,53 +18,17 @@ type TopicRule_IotAnalyticsAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-iotanalyticsaction.html#cfn-iot-topicrule-iotanalyticsaction-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_IotAnalyticsAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.IotAnalyticsAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_IotAnalyticsAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_IotAnalyticsAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_IotAnalyticsAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_IotAnalyticsAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_IotAnalyticsAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_IotAnalyticsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_kinesisaction.go b/cloudformation/iot/aws-iot-topicrule_kinesisaction.go index 826396cb33..99b4a1e8f4 100644 --- a/cloudformation/iot/aws-iot-topicrule_kinesisaction.go +++ b/cloudformation/iot/aws-iot-topicrule_kinesisaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_KinesisAction AWS CloudFormation Resource (AWS::IoT::TopicRule.KinesisAction) @@ -23,53 +23,17 @@ type TopicRule_KinesisAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-kinesisaction.html#cfn-iot-topicrule-kinesisaction-streamname StreamName string `json:"StreamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_KinesisAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.KinesisAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_KinesisAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_KinesisAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_KinesisAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_KinesisAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_KinesisAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_KinesisAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_lambdaaction.go b/cloudformation/iot/aws-iot-topicrule_lambdaaction.go index b4adde4624..00cae38445 100644 --- a/cloudformation/iot/aws-iot-topicrule_lambdaaction.go +++ b/cloudformation/iot/aws-iot-topicrule_lambdaaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_LambdaAction AWS CloudFormation Resource (AWS::IoT::TopicRule.LambdaAction) @@ -13,53 +13,17 @@ type TopicRule_LambdaAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-lambdaaction.html#cfn-iot-topicrule-lambdaaction-functionarn FunctionArn string `json:"FunctionArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_LambdaAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.LambdaAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_LambdaAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_LambdaAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_LambdaAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_LambdaAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_LambdaAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_LambdaAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_putiteminput.go b/cloudformation/iot/aws-iot-topicrule_putiteminput.go index becd736dd0..452c5f39d1 100644 --- a/cloudformation/iot/aws-iot-topicrule_putiteminput.go +++ b/cloudformation/iot/aws-iot-topicrule_putiteminput.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_PutItemInput AWS CloudFormation Resource (AWS::IoT::TopicRule.PutItemInput) @@ -13,53 +13,17 @@ type TopicRule_PutItemInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-putiteminput.html#cfn-iot-topicrule-putiteminput-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_PutItemInput) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.PutItemInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_PutItemInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_PutItemInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_PutItemInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_PutItemInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_PutItemInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_PutItemInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_republishaction.go b/cloudformation/iot/aws-iot-topicrule_republishaction.go index b7edd4b548..28a85bbcff 100644 --- a/cloudformation/iot/aws-iot-topicrule_republishaction.go +++ b/cloudformation/iot/aws-iot-topicrule_republishaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_RepublishAction AWS CloudFormation Resource (AWS::IoT::TopicRule.RepublishAction) @@ -18,53 +18,17 @@ type TopicRule_RepublishAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-republishaction.html#cfn-iot-topicrule-republishaction-topic Topic string `json:"Topic,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_RepublishAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.RepublishAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_RepublishAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_RepublishAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_RepublishAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_RepublishAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_RepublishAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_RepublishAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_s3action.go b/cloudformation/iot/aws-iot-topicrule_s3action.go index 39f300d4ee..ba78d7313c 100644 --- a/cloudformation/iot/aws-iot-topicrule_s3action.go +++ b/cloudformation/iot/aws-iot-topicrule_s3action.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_S3Action AWS CloudFormation Resource (AWS::IoT::TopicRule.S3Action) @@ -23,53 +23,17 @@ type TopicRule_S3Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-s3action.html#cfn-iot-topicrule-s3action-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_S3Action) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.S3Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_S3Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_S3Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_S3Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_S3Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_S3Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_S3Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_snsaction.go b/cloudformation/iot/aws-iot-topicrule_snsaction.go index ddd8b68c50..eb98bc88d2 100644 --- a/cloudformation/iot/aws-iot-topicrule_snsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_snsaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_SnsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.SnsAction) @@ -23,53 +23,17 @@ type TopicRule_SnsAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-targetarn TargetArn string `json:"TargetArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_SnsAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.SnsAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_SnsAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_SnsAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_SnsAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_SnsAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_SnsAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_SnsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_sqsaction.go b/cloudformation/iot/aws-iot-topicrule_sqsaction.go index 3b61b2e502..c925dc8ec6 100644 --- a/cloudformation/iot/aws-iot-topicrule_sqsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_sqsaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_SqsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.SqsAction) @@ -23,53 +23,17 @@ type TopicRule_SqsAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-sqsaction.html#cfn-iot-topicrule-sqsaction-usebase64 UseBase64 bool `json:"UseBase64,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_SqsAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.SqsAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_SqsAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_SqsAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_SqsAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_SqsAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_SqsAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_SqsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go b/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go index c4e6263acc..c7d84e1c8a 100644 --- a/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_StepFunctionsAction AWS CloudFormation Resource (AWS::IoT::TopicRule.StepFunctionsAction) @@ -23,53 +23,17 @@ type TopicRule_StepFunctionsAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-stepfunctionsaction.html#cfn-iot-topicrule-stepfunctionsaction-statemachinename StateMachineName string `json:"StateMachineName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_StepFunctionsAction) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.StepFunctionsAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_StepFunctionsAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_StepFunctionsAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_StepFunctionsAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_StepFunctionsAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_StepFunctionsAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_StepFunctionsAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go b/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go index 7b89d8f755..8dc96ebdac 100644 --- a/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go +++ b/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go @@ -1,7 +1,7 @@ package iot import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicRule_TopicRulePayload AWS CloudFormation Resource (AWS::IoT::TopicRule.TopicRulePayload) @@ -38,53 +38,17 @@ type TopicRule_TopicRulePayload struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-topicrulepayload.html#cfn-iot-topicrule-topicrulepayload-sql Sql string `json:"Sql,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *TopicRule_TopicRulePayload) AWSCloudFormationType() string { return "AWS::IoT::TopicRule.TopicRulePayload" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_TopicRulePayload) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicRule_TopicRulePayload) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_TopicRulePayload) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicRule_TopicRulePayload) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_TopicRulePayload) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicRule_TopicRulePayload) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot1click/aws-iot1click-device.go b/cloudformation/iot1click/aws-iot1click-device.go index 8689e51b52..f2b0eda955 100644 --- a/cloudformation/iot1click/aws-iot1click-device.go +++ b/cloudformation/iot1click/aws-iot1click-device.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Device AWS CloudFormation Resource (AWS::IoT1Click::Device) @@ -22,14 +22,14 @@ type Device struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-device.html#cfn-iot1click-device-enabled Enabled bool `json:"Enabled"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Device) AWSCloudFormationType() string { return "AWS::IoT1Click::Device" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Device) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Device) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Device) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Device) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Device) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Device) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Device) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Device) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Device) UnmarshalJSON(b []byte) error { *r = Device(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot1click/aws-iot1click-placement.go b/cloudformation/iot1click/aws-iot1click-placement.go index c962ad9e3a..aa92c3fc10 100644 --- a/cloudformation/iot1click/aws-iot1click-placement.go +++ b/cloudformation/iot1click/aws-iot1click-placement.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Placement AWS CloudFormation Resource (AWS::IoT1Click::Placement) @@ -32,14 +32,14 @@ type Placement struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-placement.html#cfn-iot1click-placement-projectname ProjectName string `json:"ProjectName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Placement) AWSCloudFormationType() string { return "AWS::IoT1Click::Placement" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Placement) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Placement) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Placement) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Placement) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Placement) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Placement) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Placement) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Placement) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Placement) UnmarshalJSON(b []byte) error { *r = Placement(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot1click/aws-iot1click-project.go b/cloudformation/iot1click/aws-iot1click-project.go index 8932e400e1..ab66cf1740 100644 --- a/cloudformation/iot1click/aws-iot1click-project.go +++ b/cloudformation/iot1click/aws-iot1click-project.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project AWS CloudFormation Resource (AWS::IoT1Click::Project) @@ -27,14 +27,14 @@ type Project struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot1click-project.html#cfn-iot1click-project-projectname ProjectName string `json:"ProjectName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Project) AWSCloudFormationType() string { return "AWS::IoT1Click::Project" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Project) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Project) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Project) UnmarshalJSON(b []byte) error { *r = Project(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go b/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go index c8d894e2a2..fadea0b52b 100644 --- a/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go +++ b/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go @@ -1,7 +1,7 @@ package iot1click import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_DeviceTemplate AWS CloudFormation Resource (AWS::IoT1Click::Project.DeviceTemplate) @@ -18,53 +18,17 @@ type Project_DeviceTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html#cfn-iot1click-project-devicetemplate-devicetype DeviceType string `json:"DeviceType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_DeviceTemplate) AWSCloudFormationType() string { return "AWS::IoT1Click::Project.DeviceTemplate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_DeviceTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_DeviceTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_DeviceTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_DeviceTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_DeviceTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_DeviceTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go b/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go index 21be59cf21..1388e2aabf 100644 --- a/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go +++ b/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go @@ -1,7 +1,7 @@ package iot1click import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Project_PlacementTemplate AWS CloudFormation Resource (AWS::IoT1Click::Project.PlacementTemplate) @@ -18,53 +18,17 @@ type Project_PlacementTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html#cfn-iot1click-project-placementtemplate-devicetemplates DeviceTemplates interface{} `json:"DeviceTemplates,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Project_PlacementTemplate) AWSCloudFormationType() string { return "AWS::IoT1Click::Project.PlacementTemplate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_PlacementTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Project_PlacementTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_PlacementTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Project_PlacementTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_PlacementTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Project_PlacementTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel.go b/cloudformation/iotanalytics/aws-iotanalytics-channel.go index e1dde75d8d..0bbe121dbc 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Channel AWS CloudFormation Resource (AWS::IoTAnalytics::Channel) @@ -33,14 +33,14 @@ type Channel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-channel.html#cfn-iotanalytics-channel-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *Channel) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Channel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Channel) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r Channel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *Channel) UnmarshalJSON(b []byte) error { *r = Channel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go index 3c7863797e..8635fcac3b 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_ChannelStorage AWS CloudFormation Resource (AWS::IoTAnalytics::Channel.ChannelStorage) @@ -18,53 +18,17 @@ type Channel_ChannelStorage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-channel-channelstorage.html#cfn-iotanalytics-channel-channelstorage-servicemanageds3 ServiceManagedS3 *Channel_ServiceManagedS3 `json:"ServiceManagedS3,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_ChannelStorage) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Channel.ChannelStorage" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_ChannelStorage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_ChannelStorage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_ChannelStorage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_ChannelStorage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_ChannelStorage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_ChannelStorage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go index dc477a7304..c715fceaf0 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_CustomerManagedS3 AWS CloudFormation Resource (AWS::IoTAnalytics::Channel.CustomerManagedS3) @@ -23,53 +23,17 @@ type Channel_CustomerManagedS3 struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-channel-customermanageds3.html#cfn-iotanalytics-channel-customermanageds3-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_CustomerManagedS3) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Channel.CustomerManagedS3" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_CustomerManagedS3) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_CustomerManagedS3) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_CustomerManagedS3) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_CustomerManagedS3) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_CustomerManagedS3) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_CustomerManagedS3) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go index b9aac4f6ea..afeb8fe962 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_RetentionPeriod AWS CloudFormation Resource (AWS::IoTAnalytics::Channel.RetentionPeriod) @@ -18,53 +18,17 @@ type Channel_RetentionPeriod struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-channel-retentionperiod.html#cfn-iotanalytics-channel-retentionperiod-unlimited Unlimited bool `json:"Unlimited,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_RetentionPeriod) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Channel.RetentionPeriod" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_RetentionPeriod) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_RetentionPeriod) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_RetentionPeriod) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_RetentionPeriod) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_RetentionPeriod) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_RetentionPeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go index 130d167970..c564860ca8 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go @@ -1,60 +1,24 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_ServiceManagedS3 AWS CloudFormation Resource (AWS::IoTAnalytics::Channel.ServiceManagedS3) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-channel-servicemanageds3.html type Channel_ServiceManagedS3 struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_ServiceManagedS3) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Channel.ServiceManagedS3" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_ServiceManagedS3) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_ServiceManagedS3) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_ServiceManagedS3) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_ServiceManagedS3) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_ServiceManagedS3) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_ServiceManagedS3) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset.go index d758fd1f70..312a365ad9 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Dataset AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset) @@ -48,14 +48,14 @@ type Dataset struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-dataset.html#cfn-iotanalytics-dataset-versioningconfiguration VersioningConfiguration *Dataset_VersioningConfiguration `json:"VersioningConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *Dataset) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Dataset) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r Dataset) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *Dataset) UnmarshalJSON(b []byte) error { *r = Dataset(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go index d5676af46a..f24282dc25 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_Action AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Action) @@ -23,53 +23,17 @@ type Dataset_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-action.html#cfn-iotanalytics-dataset-action-queryaction QueryAction *Dataset_QueryAction `json:"QueryAction,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_Action) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go index 16cf564ffd..4a35cc3409 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_ContainerAction AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.ContainerAction) @@ -28,53 +28,17 @@ type Dataset_ContainerAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-containeraction.html#cfn-iotanalytics-dataset-containeraction-variables Variables []Dataset_Variable `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_ContainerAction) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.ContainerAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_ContainerAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_ContainerAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_ContainerAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_ContainerAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_ContainerAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_ContainerAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go index 2eaa4eee51..086fc49834 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_DatasetContentDeliveryRule AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.DatasetContentDeliveryRule) @@ -18,53 +18,17 @@ type Dataset_DatasetContentDeliveryRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-datasetcontentdeliveryrule.html#cfn-iotanalytics-dataset-datasetcontentdeliveryrule-entryname EntryName string `json:"EntryName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_DatasetContentDeliveryRule) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.DatasetContentDeliveryRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DatasetContentDeliveryRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DatasetContentDeliveryRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DatasetContentDeliveryRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DatasetContentDeliveryRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DatasetContentDeliveryRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DatasetContentDeliveryRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go index 10d70c9826..d3b584b658 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_DatasetContentDeliveryRuleDestination AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.DatasetContentDeliveryRuleDestination) @@ -18,53 +18,17 @@ type Dataset_DatasetContentDeliveryRuleDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-datasetcontentdeliveryruledestination.html#cfn-iotanalytics-dataset-datasetcontentdeliveryruledestination-s3destinationconfiguration S3DestinationConfiguration *Dataset_S3DestinationConfiguration `json:"S3DestinationConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_DatasetContentDeliveryRuleDestination) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.DatasetContentDeliveryRuleDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DatasetContentDeliveryRuleDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DatasetContentDeliveryRuleDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DatasetContentDeliveryRuleDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DatasetContentDeliveryRuleDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DatasetContentDeliveryRuleDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DatasetContentDeliveryRuleDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go index 426e0b7a17..5fe4a2baad 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_DatasetContentVersionValue AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.DatasetContentVersionValue) @@ -13,53 +13,17 @@ type Dataset_DatasetContentVersionValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable-datasetcontentversionvalue.html#cfn-iotanalytics-dataset-variable-datasetcontentversionvalue-datasetname DatasetName string `json:"DatasetName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_DatasetContentVersionValue) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.DatasetContentVersionValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DatasetContentVersionValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DatasetContentVersionValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DatasetContentVersionValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DatasetContentVersionValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DatasetContentVersionValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DatasetContentVersionValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go index 647acca1c9..f19654e4f1 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_DeltaTime AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.DeltaTime) @@ -18,53 +18,17 @@ type Dataset_DeltaTime struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-deltatime.html#cfn-iotanalytics-dataset-deltatime-timeexpression TimeExpression string `json:"TimeExpression,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_DeltaTime) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.DeltaTime" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DeltaTime) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_DeltaTime) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DeltaTime) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_DeltaTime) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DeltaTime) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_DeltaTime) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go index 520bde72b5..c943b4e549 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_Filter AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Filter) @@ -13,53 +13,17 @@ type Dataset_Filter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-filter.html#cfn-iotanalytics-dataset-filter-deltatime DeltaTime *Dataset_DeltaTime `json:"DeltaTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_Filter) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.Filter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Filter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Filter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Filter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Filter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Filter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go index d36449047e..78a4328f0a 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_GlueConfiguration AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.GlueConfiguration) @@ -18,53 +18,17 @@ type Dataset_GlueConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-glueconfiguration.html#cfn-iotanalytics-dataset-glueconfiguration-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_GlueConfiguration) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.GlueConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_GlueConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_GlueConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_GlueConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_GlueConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_GlueConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_GlueConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go index ba5bd7a60d..4b5490135b 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_IotEventsDestinationConfiguration AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.IotEventsDestinationConfiguration) @@ -18,53 +18,17 @@ type Dataset_IotEventsDestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-ioteventsdestinationconfiguration.html#cfn-iotanalytics-dataset-ioteventsdestinationconfiguration-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_IotEventsDestinationConfiguration) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.IotEventsDestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_IotEventsDestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_IotEventsDestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_IotEventsDestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_IotEventsDestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_IotEventsDestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_IotEventsDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go index edd56353d0..3e6bb89456 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_OutputFileUriValue AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.OutputFileUriValue) @@ -13,53 +13,17 @@ type Dataset_OutputFileUriValue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable-outputfileurivalue.html#cfn-iotanalytics-dataset-variable-outputfileurivalue-filename FileName string `json:"FileName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_OutputFileUriValue) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.OutputFileUriValue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_OutputFileUriValue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_OutputFileUriValue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_OutputFileUriValue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_OutputFileUriValue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_OutputFileUriValue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_OutputFileUriValue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go index bf361b8b6a..5eae410039 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_QueryAction AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.QueryAction) @@ -18,53 +18,17 @@ type Dataset_QueryAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-queryaction.html#cfn-iotanalytics-dataset-queryaction-sqlquery SqlQuery string `json:"SqlQuery,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_QueryAction) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.QueryAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_QueryAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_QueryAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_QueryAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_QueryAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_QueryAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_QueryAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go index 710bb3680e..6e27f74169 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_ResourceConfiguration AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.ResourceConfiguration) @@ -18,53 +18,17 @@ type Dataset_ResourceConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-resourceconfiguration.html#cfn-iotanalytics-dataset-resourceconfiguration-volumesizeingb VolumeSizeInGB int `json:"VolumeSizeInGB"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_ResourceConfiguration) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.ResourceConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_ResourceConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_ResourceConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_ResourceConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_ResourceConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_ResourceConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_ResourceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go index f9c8620e9b..cc87559fc1 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_RetentionPeriod AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.RetentionPeriod) @@ -18,53 +18,17 @@ type Dataset_RetentionPeriod struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-retentionperiod.html#cfn-iotanalytics-dataset-retentionperiod-unlimited Unlimited bool `json:"Unlimited"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_RetentionPeriod) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.RetentionPeriod" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_RetentionPeriod) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_RetentionPeriod) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_RetentionPeriod) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_RetentionPeriod) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_RetentionPeriod) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_RetentionPeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go index 5c2887cf69..809e8c434f 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_S3DestinationConfiguration AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.S3DestinationConfiguration) @@ -28,53 +28,17 @@ type Dataset_S3DestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-s3destinationconfiguration.html#cfn-iotanalytics-dataset-s3destinationconfiguration-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_S3DestinationConfiguration) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.S3DestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_S3DestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_S3DestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_S3DestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_S3DestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_S3DestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_S3DestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go index 0e3fc20983..aad20267d7 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_Schedule AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Schedule) @@ -13,53 +13,17 @@ type Dataset_Schedule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-trigger-schedule.html#cfn-iotanalytics-dataset-trigger-schedule-scheduleexpression ScheduleExpression string `json:"ScheduleExpression,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_Schedule) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.Schedule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Schedule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Schedule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Schedule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Schedule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Schedule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go index 0ff4672e52..af37769c82 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_Trigger AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Trigger) @@ -18,53 +18,17 @@ type Dataset_Trigger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-trigger.html#cfn-iotanalytics-dataset-trigger-triggeringdataset TriggeringDataset *Dataset_TriggeringDataset `json:"TriggeringDataset,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_Trigger) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.Trigger" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Trigger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Trigger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Trigger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Trigger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Trigger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Trigger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go index 116d50884b..dae68ecf61 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_TriggeringDataset AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.TriggeringDataset) @@ -13,53 +13,17 @@ type Dataset_TriggeringDataset struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-triggeringdataset.html#cfn-iotanalytics-dataset-triggeringdataset-datasetname DatasetName string `json:"DatasetName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_TriggeringDataset) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.TriggeringDataset" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_TriggeringDataset) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_TriggeringDataset) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_TriggeringDataset) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_TriggeringDataset) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_TriggeringDataset) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_TriggeringDataset) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go index 1d8f536e06..fbd395ff32 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_Variable AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.Variable) @@ -33,53 +33,17 @@ type Dataset_Variable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html#cfn-iotanalytics-dataset-variable-variablename VariableName string `json:"VariableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_Variable) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.Variable" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Variable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_Variable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Variable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_Variable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Variable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_Variable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go index 17a6e9885d..ccb36027cb 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Dataset_VersioningConfiguration AWS CloudFormation Resource (AWS::IoTAnalytics::Dataset.VersioningConfiguration) @@ -18,53 +18,17 @@ type Dataset_VersioningConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-versioningconfiguration.html#cfn-iotanalytics-dataset-versioningconfiguration-unlimited Unlimited bool `json:"Unlimited,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Dataset_VersioningConfiguration) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Dataset.VersioningConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_VersioningConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Dataset_VersioningConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_VersioningConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Dataset_VersioningConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_VersioningConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Dataset_VersioningConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore.go index 454b5f46ea..cf1fe2f9c7 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Datastore AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore) @@ -33,14 +33,14 @@ type Datastore struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *Datastore) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Datastore" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Datastore) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r Datastore) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *Datastore) UnmarshalJSON(b []byte) error { *r = Datastore(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go index a87c7e0fd6..7bdde2d95b 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Datastore_CustomerManagedS3 AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore.CustomerManagedS3) @@ -23,53 +23,17 @@ type Datastore_CustomerManagedS3 struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-customermanageds3.html#cfn-iotanalytics-datastore-customermanageds3-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Datastore_CustomerManagedS3) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Datastore.CustomerManagedS3" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_CustomerManagedS3) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_CustomerManagedS3) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_CustomerManagedS3) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_CustomerManagedS3) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_CustomerManagedS3) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_CustomerManagedS3) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go index 72ca641fc0..22f7191b78 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Datastore_DatastoreStorage AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore.DatastoreStorage) @@ -18,53 +18,17 @@ type Datastore_DatastoreStorage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-datastorestorage.html#cfn-iotanalytics-datastore-datastorestorage-servicemanageds3 ServiceManagedS3 *Datastore_ServiceManagedS3 `json:"ServiceManagedS3,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Datastore_DatastoreStorage) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Datastore.DatastoreStorage" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_DatastoreStorage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_DatastoreStorage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_DatastoreStorage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_DatastoreStorage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_DatastoreStorage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_DatastoreStorage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go index ed7c96cb4e..bb13dfd61c 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Datastore_RetentionPeriod AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore.RetentionPeriod) @@ -18,53 +18,17 @@ type Datastore_RetentionPeriod struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-retentionperiod.html#cfn-iotanalytics-datastore-retentionperiod-unlimited Unlimited bool `json:"Unlimited,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Datastore_RetentionPeriod) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Datastore.RetentionPeriod" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_RetentionPeriod) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_RetentionPeriod) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_RetentionPeriod) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_RetentionPeriod) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_RetentionPeriod) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_RetentionPeriod) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go index daa41d0eb3..86e5cbcc0f 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go @@ -1,60 +1,24 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Datastore_ServiceManagedS3 AWS CloudFormation Resource (AWS::IoTAnalytics::Datastore.ServiceManagedS3) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-servicemanageds3.html type Datastore_ServiceManagedS3 struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Datastore_ServiceManagedS3) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Datastore.ServiceManagedS3" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_ServiceManagedS3) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Datastore_ServiceManagedS3) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_ServiceManagedS3) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Datastore_ServiceManagedS3) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_ServiceManagedS3) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Datastore_ServiceManagedS3) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go index 9a02c90df2..cdc57ff810 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Pipeline AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline) @@ -28,14 +28,14 @@ type Pipeline struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-pipeline.html#cfn-iotanalytics-pipeline-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *Pipeline) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Pipeline) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r Pipeline) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { *r = Pipeline(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go index dc98b0a91c..108733da35 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Activity AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Activity) @@ -58,53 +58,17 @@ type Pipeline_Activity struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-activity.html#cfn-iotanalytics-pipeline-activity-selectattributes SelectAttributes *Pipeline_SelectAttributes `json:"SelectAttributes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Activity) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.Activity" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Activity) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Activity) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Activity) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Activity) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Activity) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Activity) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go index 96f83b9631..9d90f22c82 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_AddAttributes AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.AddAttributes) @@ -23,53 +23,17 @@ type Pipeline_AddAttributes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-addattributes.html#cfn-iotanalytics-pipeline-addattributes-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_AddAttributes) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.AddAttributes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_AddAttributes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_AddAttributes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_AddAttributes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_AddAttributes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_AddAttributes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_AddAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go index 90b74527ec..a9acaf646a 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Channel AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Channel) @@ -23,53 +23,17 @@ type Pipeline_Channel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-channel.html#cfn-iotanalytics-pipeline-channel-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Channel) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.Channel" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Channel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Channel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Channel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Channel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Channel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Channel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go index 416b21d162..72b64c06c8 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Datastore AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Datastore) @@ -18,53 +18,17 @@ type Pipeline_Datastore struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-datastore.html#cfn-iotanalytics-pipeline-datastore-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Datastore) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.Datastore" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Datastore) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Datastore) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Datastore) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Datastore) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Datastore) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Datastore) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go index b9e0129957..a7b1abeff7 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_DeviceRegistryEnrich AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.DeviceRegistryEnrich) @@ -33,53 +33,17 @@ type Pipeline_DeviceRegistryEnrich struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html#cfn-iotanalytics-pipeline-deviceregistryenrich-thingname ThingName string `json:"ThingName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_DeviceRegistryEnrich) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.DeviceRegistryEnrich" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_DeviceRegistryEnrich) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_DeviceRegistryEnrich) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_DeviceRegistryEnrich) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_DeviceRegistryEnrich) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_DeviceRegistryEnrich) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_DeviceRegistryEnrich) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go index 47468cd909..b2116b5e0e 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_DeviceShadowEnrich AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.DeviceShadowEnrich) @@ -33,53 +33,17 @@ type Pipeline_DeviceShadowEnrich struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceshadowenrich.html#cfn-iotanalytics-pipeline-deviceshadowenrich-thingname ThingName string `json:"ThingName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_DeviceShadowEnrich) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.DeviceShadowEnrich" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_DeviceShadowEnrich) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_DeviceShadowEnrich) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_DeviceShadowEnrich) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_DeviceShadowEnrich) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_DeviceShadowEnrich) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_DeviceShadowEnrich) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go index 17d37ba6d3..432e74ee7a 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Filter AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Filter) @@ -23,53 +23,17 @@ type Pipeline_Filter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-filter.html#cfn-iotanalytics-pipeline-filter-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Filter) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.Filter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Filter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Filter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Filter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Filter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Filter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go index 6368569806..5320969866 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Lambda AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Lambda) @@ -28,53 +28,17 @@ type Pipeline_Lambda struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html#cfn-iotanalytics-pipeline-lambda-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Lambda) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.Lambda" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Lambda) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Lambda) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Lambda) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Lambda) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Lambda) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Lambda) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go index c7a5640b8d..11945ce337 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_Math AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.Math) @@ -28,53 +28,17 @@ type Pipeline_Math struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html#cfn-iotanalytics-pipeline-math-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_Math) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.Math" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Math) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_Math) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Math) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_Math) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Math) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_Math) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go index 1c87f086be..aac13d993e 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_RemoveAttributes AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.RemoveAttributes) @@ -23,53 +23,17 @@ type Pipeline_RemoveAttributes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-removeattributes.html#cfn-iotanalytics-pipeline-removeattributes-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_RemoveAttributes) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.RemoveAttributes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_RemoveAttributes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_RemoveAttributes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_RemoveAttributes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_RemoveAttributes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_RemoveAttributes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_RemoveAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go index d4245692a2..df1f95fcd4 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go @@ -1,7 +1,7 @@ package iotanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Pipeline_SelectAttributes AWS CloudFormation Resource (AWS::IoTAnalytics::Pipeline.SelectAttributes) @@ -23,53 +23,17 @@ type Pipeline_SelectAttributes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-selectattributes.html#cfn-iotanalytics-pipeline-selectattributes-next Next string `json:"Next,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Pipeline_SelectAttributes) AWSCloudFormationType() string { return "AWS::IoTAnalytics::Pipeline.SelectAttributes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_SelectAttributes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Pipeline_SelectAttributes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_SelectAttributes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Pipeline_SelectAttributes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_SelectAttributes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Pipeline_SelectAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel.go b/cloudformation/iotevents/aws-iotevents-detectormodel.go index 084100752b..cc8990239a 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DetectorModel AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel) @@ -43,14 +43,14 @@ type DetectorModel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotevents-detectormodel.html#cfn-iotevents-detectormodel-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *DetectorModel) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DetectorModel) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r DetectorModel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *DetectorModel) UnmarshalJSON(b []byte) error { *r = DetectorModel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_action.go b/cloudformation/iotevents/aws-iotevents-detectormodel_action.go index 2a908119fa..10c0d95c77 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_action.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_action.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_Action AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.Action) @@ -58,53 +58,17 @@ type DetectorModel_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-action.html#cfn-iotevents-detectormodel-action-sqs Sqs *DetectorModel_Sqs `json:"Sqs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_Action) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go b/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go index 4e1a955672..3702087e78 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_ClearTimer AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.ClearTimer) @@ -13,53 +13,17 @@ type DetectorModel_ClearTimer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-cleartimer.html#cfn-iotevents-detectormodel-cleartimer-timername TimerName string `json:"TimerName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_ClearTimer) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.ClearTimer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_ClearTimer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_ClearTimer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_ClearTimer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_ClearTimer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_ClearTimer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_ClearTimer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go b/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go index 5c22987421..f01fcdff9e 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_DetectorModelDefinition AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.DetectorModelDefinition) @@ -18,53 +18,17 @@ type DetectorModel_DetectorModelDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-detectormodeldefinition.html#cfn-iotevents-detectormodel-detectormodeldefinition-states States []DetectorModel_State `json:"States,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_DetectorModelDefinition) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.DetectorModelDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_DetectorModelDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_DetectorModelDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_DetectorModelDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_DetectorModelDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_DetectorModelDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_DetectorModelDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_event.go b/cloudformation/iotevents/aws-iotevents-detectormodel_event.go index 960f6de078..adebef5753 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_event.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_event.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_Event AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.Event) @@ -23,53 +23,17 @@ type DetectorModel_Event struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-event.html#cfn-iotevents-detectormodel-event-eventname EventName string `json:"EventName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_Event) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.Event" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Event) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Event) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Event) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Event) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Event) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Event) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go b/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go index bd838bb390..d34986c398 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_Firehose AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.Firehose) @@ -18,53 +18,17 @@ type DetectorModel_Firehose struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-firehose.html#cfn-iotevents-detectormodel-firehose-separator Separator string `json:"Separator,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_Firehose) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.Firehose" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Firehose) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Firehose) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Firehose) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Firehose) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Firehose) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Firehose) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go b/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go index 9a25950458..69f314de76 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_IotEvents AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.IotEvents) @@ -13,53 +13,17 @@ type DetectorModel_IotEvents struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-iotevents.html#cfn-iotevents-detectormodel-iotevents-inputname InputName string `json:"InputName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_IotEvents) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.IotEvents" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_IotEvents) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_IotEvents) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_IotEvents) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_IotEvents) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_IotEvents) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_IotEvents) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go b/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go index e35d1b59e2..7355e6a5be 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_IotTopicPublish AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.IotTopicPublish) @@ -13,53 +13,17 @@ type DetectorModel_IotTopicPublish struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-iottopicpublish.html#cfn-iotevents-detectormodel-iottopicpublish-mqtttopic MqttTopic string `json:"MqttTopic,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_IotTopicPublish) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.IotTopicPublish" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_IotTopicPublish) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_IotTopicPublish) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_IotTopicPublish) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_IotTopicPublish) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_IotTopicPublish) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_IotTopicPublish) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go b/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go index f3aaf9bfeb..a01465a47a 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_Lambda AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.Lambda) @@ -13,53 +13,17 @@ type DetectorModel_Lambda struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-lambda.html#cfn-iotevents-detectormodel-lambda-functionarn FunctionArn string `json:"FunctionArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_Lambda) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.Lambda" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Lambda) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Lambda) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Lambda) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Lambda) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Lambda) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Lambda) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go b/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go index c730c70c43..d4a8dd007c 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_OnEnter AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.OnEnter) @@ -13,53 +13,17 @@ type DetectorModel_OnEnter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-onenter.html#cfn-iotevents-detectormodel-onenter-events Events []DetectorModel_Event `json:"Events,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_OnEnter) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.OnEnter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_OnEnter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_OnEnter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_OnEnter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_OnEnter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_OnEnter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_OnEnter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go b/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go index 624bf2b5e1..3a2b0f349f 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_OnExit AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.OnExit) @@ -13,53 +13,17 @@ type DetectorModel_OnExit struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-onexit.html#cfn-iotevents-detectormodel-onexit-events Events []DetectorModel_Event `json:"Events,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_OnExit) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.OnExit" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_OnExit) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_OnExit) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_OnExit) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_OnExit) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_OnExit) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_OnExit) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go b/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go index 95645b15b6..e5bde1e18e 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_OnInput AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.OnInput) @@ -18,53 +18,17 @@ type DetectorModel_OnInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-oninput.html#cfn-iotevents-detectormodel-oninput-transitionevents TransitionEvents []DetectorModel_TransitionEvent `json:"TransitionEvents,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_OnInput) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.OnInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_OnInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_OnInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_OnInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_OnInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_OnInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_OnInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go b/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go index 561d7580d8..b077787dd6 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_ResetTimer AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.ResetTimer) @@ -13,53 +13,17 @@ type DetectorModel_ResetTimer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-resettimer.html#cfn-iotevents-detectormodel-resettimer-timername TimerName string `json:"TimerName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_ResetTimer) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.ResetTimer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_ResetTimer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_ResetTimer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_ResetTimer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_ResetTimer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_ResetTimer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_ResetTimer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go b/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go index e3c75d1db7..2b3088f54d 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_SetTimer AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.SetTimer) @@ -18,53 +18,17 @@ type DetectorModel_SetTimer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-settimer.html#cfn-iotevents-detectormodel-settimer-timername TimerName string `json:"TimerName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_SetTimer) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.SetTimer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_SetTimer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_SetTimer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_SetTimer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_SetTimer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_SetTimer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_SetTimer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go b/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go index a1141444db..68a18321fb 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_SetVariable AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.SetVariable) @@ -18,53 +18,17 @@ type DetectorModel_SetVariable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-setvariable.html#cfn-iotevents-detectormodel-setvariable-variablename VariableName string `json:"VariableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_SetVariable) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.SetVariable" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_SetVariable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_SetVariable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_SetVariable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_SetVariable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_SetVariable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_SetVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go b/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go index 6f57b56daa..d0c51c82fe 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_Sns AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.Sns) @@ -13,53 +13,17 @@ type DetectorModel_Sns struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sns.html#cfn-iotevents-detectormodel-sns-targetarn TargetArn string `json:"TargetArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_Sns) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.Sns" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Sns) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Sns) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Sns) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Sns) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Sns) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Sns) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go b/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go index 18c8b77514..a385889607 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_Sqs AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.Sqs) @@ -18,53 +18,17 @@ type DetectorModel_Sqs struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sqs.html#cfn-iotevents-detectormodel-sqs-usebase64 UseBase64 bool `json:"UseBase64,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_Sqs) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.Sqs" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Sqs) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_Sqs) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Sqs) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_Sqs) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Sqs) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_Sqs) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_state.go b/cloudformation/iotevents/aws-iotevents-detectormodel_state.go index 432c19cfc8..4908fcb31d 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_state.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_state.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_State AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.State) @@ -28,53 +28,17 @@ type DetectorModel_State struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-state.html#cfn-iotevents-detectormodel-state-statename StateName string `json:"StateName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_State) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.State" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_State) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_State) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_State) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_State) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_State) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_State) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go b/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go index b60f744eb5..1ba0b9576b 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DetectorModel_TransitionEvent AWS CloudFormation Resource (AWS::IoTEvents::DetectorModel.TransitionEvent) @@ -28,53 +28,17 @@ type DetectorModel_TransitionEvent struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-transitionevent.html#cfn-iotevents-detectormodel-transitionevent-nextstate NextState string `json:"NextState,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DetectorModel_TransitionEvent) AWSCloudFormationType() string { return "AWS::IoTEvents::DetectorModel.TransitionEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_TransitionEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DetectorModel_TransitionEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_TransitionEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DetectorModel_TransitionEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_TransitionEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DetectorModel_TransitionEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-input.go b/cloudformation/iotevents/aws-iotevents-input.go index 11ac21c930..b9ffa25dda 100644 --- a/cloudformation/iotevents/aws-iotevents-input.go +++ b/cloudformation/iotevents/aws-iotevents-input.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Input AWS CloudFormation Resource (AWS::IoTEvents::Input) @@ -33,14 +33,14 @@ type Input struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotevents-input.html#cfn-iotevents-input-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *Input) AWSCloudFormationType() string { return "AWS::IoTEvents::Input" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Input) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r Input) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *Input) UnmarshalJSON(b []byte) error { *r = Input(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotevents/aws-iotevents-input_attribute.go b/cloudformation/iotevents/aws-iotevents-input_attribute.go index 36a887885f..651756f1b4 100644 --- a/cloudformation/iotevents/aws-iotevents-input_attribute.go +++ b/cloudformation/iotevents/aws-iotevents-input_attribute.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input_Attribute AWS CloudFormation Resource (AWS::IoTEvents::Input.Attribute) @@ -13,53 +13,17 @@ type Input_Attribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-input-attribute.html#cfn-iotevents-input-attribute-jsonpath JsonPath string `json:"JsonPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Input_Attribute) AWSCloudFormationType() string { return "AWS::IoTEvents::Input.Attribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_Attribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_Attribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_Attribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_Attribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_Attribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_Attribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go b/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go index 380ca1505f..8b16f81617 100644 --- a/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go +++ b/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go @@ -1,7 +1,7 @@ package iotevents import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input_InputDefinition AWS CloudFormation Resource (AWS::IoTEvents::Input.InputDefinition) @@ -13,53 +13,17 @@ type Input_InputDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-input-inputdefinition.html#cfn-iotevents-input-inputdefinition-attributes Attributes []Input_Attribute `json:"Attributes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Input_InputDefinition) AWSCloudFormationType() string { return "AWS::IoTEvents::Input.InputDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go index faf51ff0f4..6bd94e6b68 100644 --- a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go +++ b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FlowTemplate AWS CloudFormation Resource (AWS::IoTThingsGraph::FlowTemplate) @@ -22,14 +22,14 @@ type FlowTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotthingsgraph-flowtemplate.html#cfn-iotthingsgraph-flowtemplate-definition Definition *FlowTemplate_DefinitionDocument `json:"Definition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *FlowTemplate) AWSCloudFormationType() string { return "AWS::IoTThingsGraph::FlowTemplate" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FlowTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FlowTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FlowTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FlowTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FlowTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FlowTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 FlowTemplate) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r FlowTemplate) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *FlowTemplate) UnmarshalJSON(b []byte) error { *r = FlowTemplate(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go index 8a8a011553..6a7e16d69e 100644 --- a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go +++ b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go @@ -1,7 +1,7 @@ package iotthingsgraph import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // FlowTemplate_DefinitionDocument AWS CloudFormation Resource (AWS::IoTThingsGraph::FlowTemplate.DefinitionDocument) @@ -18,53 +18,17 @@ type FlowTemplate_DefinitionDocument struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotthingsgraph-flowtemplate-definitiondocument.html#cfn-iotthingsgraph-flowtemplate-definitiondocument-text Text string `json:"Text,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *FlowTemplate_DefinitionDocument) AWSCloudFormationType() string { return "AWS::IoTThingsGraph::FlowTemplate.DefinitionDocument" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FlowTemplate_DefinitionDocument) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *FlowTemplate_DefinitionDocument) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FlowTemplate_DefinitionDocument) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *FlowTemplate_DefinitionDocument) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FlowTemplate_DefinitionDocument) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *FlowTemplate_DefinitionDocument) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesis/aws-kinesis-stream.go b/cloudformation/kinesis/aws-kinesis-stream.go index 79914d781d..4c9c9c139d 100644 --- a/cloudformation/kinesis/aws-kinesis-stream.go +++ b/cloudformation/kinesis/aws-kinesis-stream.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Stream AWS CloudFormation Resource (AWS::Kinesis::Stream) @@ -38,14 +38,14 @@ type Stream struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Stream) AWSCloudFormationType() string { return "AWS::Kinesis::Stream" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stream) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stream) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stream) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stream) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stream) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stream) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Stream) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Stream) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Stream) UnmarshalJSON(b []byte) error { *r = Stream(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go b/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go index 59dd7dab1a..db7a15a886 100644 --- a/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go +++ b/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go @@ -1,7 +1,7 @@ package kinesis import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stream_StreamEncryption AWS CloudFormation Resource (AWS::Kinesis::Stream.StreamEncryption) @@ -18,53 +18,17 @@ type Stream_StreamEncryption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html#cfn-kinesis-stream-streamencryption-keyid KeyId string `json:"KeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stream_StreamEncryption) AWSCloudFormationType() string { return "AWS::Kinesis::Stream.StreamEncryption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stream_StreamEncryption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stream_StreamEncryption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stream_StreamEncryption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stream_StreamEncryption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stream_StreamEncryption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stream_StreamEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesis/aws-kinesis-streamconsumer.go b/cloudformation/kinesis/aws-kinesis-streamconsumer.go index fd2a792395..c345d09c0e 100644 --- a/cloudformation/kinesis/aws-kinesis-streamconsumer.go +++ b/cloudformation/kinesis/aws-kinesis-streamconsumer.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StreamConsumer AWS CloudFormation Resource (AWS::Kinesis::StreamConsumer) @@ -22,14 +22,14 @@ type StreamConsumer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-streamconsumer.html#cfn-kinesis-streamconsumer-streamarn StreamARN string `json:"StreamARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *StreamConsumer) AWSCloudFormationType() string { return "AWS::Kinesis::StreamConsumer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamConsumer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StreamConsumer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamConsumer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StreamConsumer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamConsumer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StreamConsumer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 StreamConsumer) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r StreamConsumer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *StreamConsumer) UnmarshalJSON(b []byte) error { *r = StreamConsumer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go index 7ac0d8ca7c..aec802f426 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application AWS CloudFormation Resource (AWS::KinesisAnalytics::Application) @@ -32,14 +32,14 @@ type Application struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-inputs Inputs []Application_Input `json:"Inputs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Application) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Application) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Application) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Application) UnmarshalJSON(b []byte) error { *r = Application(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go index 3a131efe87..119d83dc60 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.CSVMappingParameters) @@ -18,53 +18,17 @@ type Application_CSVMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-csvmappingparameters.html#cfn-kinesisanalytics-application-csvmappingparameters-recordrowdelimiter RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_CSVMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.CSVMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CSVMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CSVMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CSVMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CSVMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CSVMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go index c287530694..b94bf3871a 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_Input AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.Input) @@ -38,53 +38,17 @@ type Application_Input struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-input.html#cfn-kinesisanalytics-application-input-nameprefix NamePrefix string `json:"NamePrefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_Input) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.Input" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_Input) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_Input) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_Input) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_Input) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_Input) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_Input) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go index bf17c4fde3..0e77a92f87 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputLambdaProcessor AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputLambdaProcessor) @@ -18,53 +18,17 @@ type Application_InputLambdaProcessor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html#cfn-kinesisanalytics-application-inputlambdaprocessor-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputLambdaProcessor) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.InputLambdaProcessor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputLambdaProcessor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputLambdaProcessor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputLambdaProcessor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputLambdaProcessor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputLambdaProcessor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputLambdaProcessor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go index d789b6e789..ecb76cad58 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputParallelism AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputParallelism) @@ -13,53 +13,17 @@ type Application_InputParallelism struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputparallelism.html#cfn-kinesisanalytics-application-inputparallelism-count Count int `json:"Count,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputParallelism) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.InputParallelism" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputParallelism) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputParallelism) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputParallelism) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputParallelism) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputParallelism) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputParallelism) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go index b8b4fe4ea4..4ff360ca78 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputProcessingConfiguration AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputProcessingConfiguration) @@ -13,53 +13,17 @@ type Application_InputProcessingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputprocessingconfiguration.html#cfn-kinesisanalytics-application-inputprocessingconfiguration-inputlambdaprocessor InputLambdaProcessor *Application_InputLambdaProcessor `json:"InputLambdaProcessor,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputProcessingConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.InputProcessingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputProcessingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputProcessingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputProcessingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputProcessingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputProcessingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputProcessingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go index 2631b5bbaf..c4abf9ef6f 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputSchema AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.InputSchema) @@ -23,53 +23,17 @@ type Application_InputSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputschema.html#cfn-kinesisanalytics-application-inputschema-recordformat RecordFormat *Application_RecordFormat `json:"RecordFormat,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputSchema) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.InputSchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go index b2723793d0..87f088564d 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.JSONMappingParameters) @@ -13,53 +13,17 @@ type Application_JSONMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-jsonmappingparameters.html#cfn-kinesisanalytics-application-jsonmappingparameters-recordrowpath RecordRowPath string `json:"RecordRowPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_JSONMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.JSONMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_JSONMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_JSONMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_JSONMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_JSONMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_JSONMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go index 1bf627bd6c..3d02e6c84e 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_KinesisFirehoseInput AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.KinesisFirehoseInput) @@ -18,53 +18,17 @@ type Application_KinesisFirehoseInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisfirehoseinput.html#cfn-kinesisanalytics-application-kinesisfirehoseinput-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_KinesisFirehoseInput) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.KinesisFirehoseInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisFirehoseInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisFirehoseInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisFirehoseInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisFirehoseInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisFirehoseInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisFirehoseInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go index c5ffa1a8fe..005d3e4e36 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_KinesisStreamsInput AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.KinesisStreamsInput) @@ -18,53 +18,17 @@ type Application_KinesisStreamsInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-kinesisstreamsinput.html#cfn-kinesisanalytics-application-kinesisstreamsinput-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_KinesisStreamsInput) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.KinesisStreamsInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisStreamsInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisStreamsInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisStreamsInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisStreamsInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisStreamsInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisStreamsInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go index d68d81dd42..dfbb14fefe 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.MappingParameters) @@ -18,53 +18,17 @@ type Application_MappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-mappingparameters.html#cfn-kinesisanalytics-application-mappingparameters-jsonmappingparameters JSONMappingParameters *Application_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_MappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.MappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go index b95671dedb..25e8db9735 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.RecordColumn) @@ -23,53 +23,17 @@ type Application_RecordColumn struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordcolumn.html#cfn-kinesisanalytics-application-recordcolumn-sqltype SqlType string `json:"SqlType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_RecordColumn) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.RecordColumn" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordColumn) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordColumn) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordColumn) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordColumn) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordColumn) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go index 7629da93e6..308c8881cb 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalytics::Application.RecordFormat) @@ -18,53 +18,17 @@ type Application_RecordFormat struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-recordformat.html#cfn-kinesisanalytics-application-recordformat-recordformattype RecordFormatType string `json:"RecordFormatType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_RecordFormat) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::Application.RecordFormat" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordFormat) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordFormat) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordFormat) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordFormat) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordFormat) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go index 7cd0e0389b..38664f6d6f 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput) @@ -22,14 +22,14 @@ type ApplicationOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationoutput.html#cfn-kinesisanalytics-applicationoutput-output Output *ApplicationOutput_Output `json:"Output,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ApplicationOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationOutput" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationOutput) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ApplicationOutput) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ApplicationOutput) UnmarshalJSON(b []byte) error { *r = ApplicationOutput(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go index 2604cb919b..c5a5579938 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_DestinationSchema AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.DestinationSchema) @@ -13,53 +13,17 @@ type ApplicationOutput_DestinationSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-destinationschema.html#cfn-kinesisanalytics-applicationoutput-destinationschema-recordformattype RecordFormatType string `json:"RecordFormatType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_DestinationSchema) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationOutput.DestinationSchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_DestinationSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_DestinationSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_DestinationSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_DestinationSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_DestinationSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_DestinationSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go index a49d65ad7c..b71e0fdec6 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_KinesisFirehoseOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.KinesisFirehoseOutput) @@ -18,53 +18,17 @@ type ApplicationOutput_KinesisFirehoseOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisfirehoseoutput.html#cfn-kinesisanalytics-applicationoutput-kinesisfirehoseoutput-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_KinesisFirehoseOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationOutput.KinesisFirehoseOutput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisFirehoseOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisFirehoseOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisFirehoseOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisFirehoseOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisFirehoseOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisFirehoseOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go index 66403d56ad..8e9702d2b8 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_KinesisStreamsOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.KinesisStreamsOutput) @@ -18,53 +18,17 @@ type ApplicationOutput_KinesisStreamsOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-kinesisstreamsoutput.html#cfn-kinesisanalytics-applicationoutput-kinesisstreamsoutput-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_KinesisStreamsOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationOutput.KinesisStreamsOutput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisStreamsOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisStreamsOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisStreamsOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisStreamsOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisStreamsOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisStreamsOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go index 7855af75cb..08e58de7e7 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_LambdaOutput AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.LambdaOutput) @@ -18,53 +18,17 @@ type ApplicationOutput_LambdaOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-lambdaoutput.html#cfn-kinesisanalytics-applicationoutput-lambdaoutput-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_LambdaOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationOutput.LambdaOutput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_LambdaOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_LambdaOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_LambdaOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_LambdaOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_LambdaOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_LambdaOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go index 4f0b786b4f..e204c90a50 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_Output AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationOutput.Output) @@ -33,53 +33,17 @@ type ApplicationOutput_Output struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-output.html#cfn-kinesisanalytics-applicationoutput-output-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_Output) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationOutput.Output" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_Output) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_Output) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_Output) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_Output) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_Output) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_Output) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go index fbfe17bfb4..7265fd0773 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource) @@ -22,14 +22,14 @@ type ApplicationReferenceDataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-applicationreferencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-referencedatasource ReferenceDataSource *ApplicationReferenceDataSource_ReferenceDataSource `json:"ReferenceDataSource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ApplicationReferenceDataSource) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationReferenceDataSource) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ApplicationReferenceDataSource) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ApplicationReferenceDataSource) UnmarshalJSON(b []byte) error { *r = ApplicationReferenceDataSource(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go index 0963f60349..3fa8636197 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.CSVMappingParameters) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_CSVMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-csvmappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-csvmappingparameters-recordrowdelimiter RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_CSVMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.CSVMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go index 2841a91a6d..beb0e36c90 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.JSONMappingParameters) @@ -13,53 +13,17 @@ type ApplicationReferenceDataSource_JSONMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-jsonmappingparameters-recordrowpath RecordRowPath string `json:"RecordRowPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_JSONMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.JSONMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go index b50fe4f148..05d85990d5 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.MappingParameters) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_MappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html#cfn-kinesisanalytics-applicationreferencedatasource-mappingparameters-jsonmappingparameters JSONMappingParameters *ApplicationReferenceDataSource_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_MappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.MappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_MappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_MappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_MappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_MappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_MappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go index caefa75a5b..e440a2e99e 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordColumn) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_RecordColumn struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordcolumn.html#cfn-kinesisanalytics-applicationreferencedatasource-recordcolumn-sqltype SqlType string `json:"SqlType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_RecordColumn) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordColumn" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordColumn) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordColumn) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordColumn) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordColumn) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordColumn) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go index 207594ccc4..cb4f27839f 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordFormat) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_RecordFormat struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-recordformat.html#cfn-kinesisanalytics-applicationreferencedatasource-recordformat-recordformattype RecordFormatType string `json:"RecordFormatType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_RecordFormat) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.RecordFormat" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordFormat) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordFormat) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordFormat) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordFormat) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordFormat) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go index 8d62488ce2..fa688bd385 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceDataSource) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_ReferenceDataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-referencedatasource-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_ReferenceDataSource) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceDataSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go index e0ab18ebdc..b2629ab6f6 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_ReferenceSchema AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceSchema) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_ReferenceSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-referenceschema.html#cfn-kinesisanalytics-applicationreferencedatasource-referenceschema-recordformat RecordFormat *ApplicationReferenceDataSource_RecordFormat `json:"RecordFormat,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_ReferenceSchema) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.ReferenceSchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go index 7bbc012b41..2ddb0fa991 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go @@ -1,7 +1,7 @@ package kinesisanalytics import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_S3ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalytics::ApplicationReferenceDataSource.S3ReferenceDataSource) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_S3ReferenceDataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalytics-applicationreferencedatasource-s3referencedatasource-referencerolearn ReferenceRoleARN string `json:"ReferenceRoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) AWSCloudFormationType() string { return "AWS::KinesisAnalytics::ApplicationReferenceDataSource.S3ReferenceDataSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go index 8045c5592f..1825bef262 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application) @@ -37,14 +37,14 @@ type Application struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalyticsv2-application.html#cfn-kinesisanalyticsv2-application-serviceexecutionrole ServiceExecutionRole string `json:"ServiceExecutionRole,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Application) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Application) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Application) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Application) UnmarshalJSON(b []byte) error { *r = Application(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go index 4a5afaeddd..8394c0112f 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ApplicationCodeConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ApplicationCodeConfiguration) @@ -18,53 +18,17 @@ type Application_ApplicationCodeConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationcodeconfiguration.html#cfn-kinesisanalyticsv2-application-applicationcodeconfiguration-codecontenttype CodeContentType string `json:"CodeContentType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ApplicationCodeConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.ApplicationCodeConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationCodeConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationCodeConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationCodeConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationCodeConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationCodeConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationCodeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go index 822bd60724..afb5ca6edc 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ApplicationConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ApplicationConfiguration) @@ -33,53 +33,17 @@ type Application_ApplicationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html#cfn-kinesisanalyticsv2-application-applicationconfiguration-sqlapplicationconfiguration SqlApplicationConfiguration *Application_SqlApplicationConfiguration `json:"SqlApplicationConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ApplicationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.ApplicationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go index a4de2c4bc9..8f559a2187 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ApplicationSnapshotConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ApplicationSnapshotConfiguration) @@ -13,53 +13,17 @@ type Application_ApplicationSnapshotConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationsnapshotconfiguration.html#cfn-kinesisanalyticsv2-application-applicationsnapshotconfiguration-snapshotsenabled SnapshotsEnabled bool `json:"SnapshotsEnabled"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ApplicationSnapshotConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.ApplicationSnapshotConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationSnapshotConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationSnapshotConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationSnapshotConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationSnapshotConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationSnapshotConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationSnapshotConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go index 8283ff00e4..2072bfc4d6 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_CheckpointConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.CheckpointConfiguration) @@ -28,53 +28,17 @@ type Application_CheckpointConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-checkpointconfiguration.html#cfn-kinesisanalyticsv2-application-checkpointconfiguration-minpausebetweencheckpoints MinPauseBetweenCheckpoints int `json:"MinPauseBetweenCheckpoints,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_CheckpointConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.CheckpointConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CheckpointConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CheckpointConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CheckpointConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CheckpointConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CheckpointConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CheckpointConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go index eb4449583a..43c6331946 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_CodeContent AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.CodeContent) @@ -23,53 +23,17 @@ type Application_CodeContent struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-codecontent.html#cfn-kinesisanalyticsv2-application-codecontent-zipfilecontent ZipFileContent string `json:"ZipFileContent,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_CodeContent) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.CodeContent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CodeContent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CodeContent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CodeContent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CodeContent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CodeContent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CodeContent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go index b624ab5ca4..7d2d1dd0c6 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.CSVMappingParameters) @@ -18,53 +18,17 @@ type Application_CSVMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-csvmappingparameters.html#cfn-kinesisanalyticsv2-application-csvmappingparameters-recordrowdelimiter RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_CSVMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.CSVMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CSVMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_CSVMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CSVMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_CSVMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CSVMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go index bbb459e7f7..5cbed038dc 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_EnvironmentProperties AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.EnvironmentProperties) @@ -13,53 +13,17 @@ type Application_EnvironmentProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-environmentproperties.html#cfn-kinesisanalyticsv2-application-environmentproperties-propertygroups PropertyGroups []Application_PropertyGroup `json:"PropertyGroups,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_EnvironmentProperties) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.EnvironmentProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_EnvironmentProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_EnvironmentProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_EnvironmentProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_EnvironmentProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_EnvironmentProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_EnvironmentProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go index 60884be562..110d7599d8 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_FlinkApplicationConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.FlinkApplicationConfiguration) @@ -23,53 +23,17 @@ type Application_FlinkApplicationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-flinkapplicationconfiguration.html#cfn-kinesisanalyticsv2-application-flinkapplicationconfiguration-parallelismconfiguration ParallelismConfiguration *Application_ParallelismConfiguration `json:"ParallelismConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_FlinkApplicationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.FlinkApplicationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_FlinkApplicationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_FlinkApplicationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_FlinkApplicationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_FlinkApplicationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_FlinkApplicationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_FlinkApplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go index 6e9bcec9f3..8916a5bc26 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_Input AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.Input) @@ -38,53 +38,17 @@ type Application_Input struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-input.html#cfn-kinesisanalyticsv2-application-input-nameprefix NamePrefix string `json:"NamePrefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_Input) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.Input" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_Input) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_Input) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_Input) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_Input) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_Input) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_Input) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go index aad5106a19..81f94b6270 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputLambdaProcessor AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputLambdaProcessor) @@ -13,53 +13,17 @@ type Application_InputLambdaProcessor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputlambdaprocessor.html#cfn-kinesisanalyticsv2-application-inputlambdaprocessor-resourcearn ResourceARN string `json:"ResourceARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputLambdaProcessor) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.InputLambdaProcessor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputLambdaProcessor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputLambdaProcessor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputLambdaProcessor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputLambdaProcessor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputLambdaProcessor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputLambdaProcessor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go index 3b9d8954c0..7b7feb7384 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputParallelism AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputParallelism) @@ -13,53 +13,17 @@ type Application_InputParallelism struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputparallelism.html#cfn-kinesisanalyticsv2-application-inputparallelism-count Count int `json:"Count,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputParallelism) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.InputParallelism" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputParallelism) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputParallelism) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputParallelism) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputParallelism) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputParallelism) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputParallelism) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go index e20990f8e0..8b61533416 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputProcessingConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputProcessingConfiguration) @@ -13,53 +13,17 @@ type Application_InputProcessingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputprocessingconfiguration.html#cfn-kinesisanalyticsv2-application-inputprocessingconfiguration-inputlambdaprocessor InputLambdaProcessor *Application_InputLambdaProcessor `json:"InputLambdaProcessor,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputProcessingConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.InputProcessingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputProcessingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputProcessingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputProcessingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputProcessingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputProcessingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputProcessingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go index ae4231e6d6..21f1c47ad2 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_InputSchema AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.InputSchema) @@ -23,53 +23,17 @@ type Application_InputSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-inputschema.html#cfn-kinesisanalyticsv2-application-inputschema-recordformat RecordFormat *Application_RecordFormat `json:"RecordFormat,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_InputSchema) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.InputSchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_InputSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_InputSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_InputSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go index 2b1879ed12..09c2d9dfc2 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.JSONMappingParameters) @@ -13,53 +13,17 @@ type Application_JSONMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-jsonmappingparameters.html#cfn-kinesisanalyticsv2-application-jsonmappingparameters-recordrowpath RecordRowPath string `json:"RecordRowPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_JSONMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.JSONMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_JSONMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_JSONMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_JSONMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_JSONMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_JSONMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go index a2f99e34c9..86dc4e7cca 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_KinesisFirehoseInput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.KinesisFirehoseInput) @@ -13,53 +13,17 @@ type Application_KinesisFirehoseInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-kinesisfirehoseinput.html#cfn-kinesisanalyticsv2-application-kinesisfirehoseinput-resourcearn ResourceARN string `json:"ResourceARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_KinesisFirehoseInput) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.KinesisFirehoseInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisFirehoseInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisFirehoseInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisFirehoseInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisFirehoseInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisFirehoseInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisFirehoseInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go index b5d5253948..c49a09b65b 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_KinesisStreamsInput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.KinesisStreamsInput) @@ -13,53 +13,17 @@ type Application_KinesisStreamsInput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-kinesisstreamsinput.html#cfn-kinesisanalyticsv2-application-kinesisstreamsinput-resourcearn ResourceARN string `json:"ResourceARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_KinesisStreamsInput) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.KinesisStreamsInput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisStreamsInput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_KinesisStreamsInput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisStreamsInput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_KinesisStreamsInput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisStreamsInput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_KinesisStreamsInput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go index 414fb06e0d..5b146f5496 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.MappingParameters) @@ -18,53 +18,17 @@ type Application_MappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-mappingparameters.html#cfn-kinesisanalyticsv2-application-mappingparameters-jsonmappingparameters JSONMappingParameters *Application_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_MappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.MappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go index 482346de3d..7fe0eb04ff 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_MonitoringConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.MonitoringConfiguration) @@ -23,53 +23,17 @@ type Application_MonitoringConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-monitoringconfiguration.html#cfn-kinesisanalyticsv2-application-monitoringconfiguration-metricslevel MetricsLevel string `json:"MetricsLevel,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_MonitoringConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.MonitoringConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MonitoringConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_MonitoringConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MonitoringConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_MonitoringConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MonitoringConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_MonitoringConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go index b65400ade6..d66fbfb0a9 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ParallelismConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.ParallelismConfiguration) @@ -28,53 +28,17 @@ type Application_ParallelismConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-parallelismconfiguration.html#cfn-kinesisanalyticsv2-application-parallelismconfiguration-parallelismperkpu ParallelismPerKPU int `json:"ParallelismPerKPU,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ParallelismConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.ParallelismConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ParallelismConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ParallelismConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ParallelismConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ParallelismConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ParallelismConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ParallelismConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go index 67b22078ac..4c31eeb895 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_PropertyGroup AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.PropertyGroup) @@ -18,53 +18,17 @@ type Application_PropertyGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-propertygroup.html#cfn-kinesisanalyticsv2-application-propertygroup-propertymap PropertyMap interface{} `json:"PropertyMap,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_PropertyGroup) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.PropertyGroup" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_PropertyGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_PropertyGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_PropertyGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_PropertyGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_PropertyGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_PropertyGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go index 3cb1635bd8..0338e10bed 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.RecordColumn) @@ -23,53 +23,17 @@ type Application_RecordColumn struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-recordcolumn.html#cfn-kinesisanalyticsv2-application-recordcolumn-sqltype SqlType string `json:"SqlType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_RecordColumn) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.RecordColumn" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordColumn) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordColumn) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordColumn) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordColumn) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordColumn) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go index b7157fa045..ce742694ca 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.RecordFormat) @@ -18,53 +18,17 @@ type Application_RecordFormat struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-recordformat.html#cfn-kinesisanalyticsv2-application-recordformat-recordformattype RecordFormatType string `json:"RecordFormatType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_RecordFormat) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.RecordFormat" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordFormat) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_RecordFormat) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordFormat) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_RecordFormat) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordFormat) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go index a184875d91..ba2d112617 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_S3ContentLocation AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.S3ContentLocation) @@ -23,53 +23,17 @@ type Application_S3ContentLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-s3contentlocation.html#cfn-kinesisanalyticsv2-application-s3contentlocation-objectversion ObjectVersion string `json:"ObjectVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_S3ContentLocation) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.S3ContentLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_S3ContentLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_S3ContentLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_S3ContentLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_S3ContentLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_S3ContentLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_S3ContentLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go index 2bb201f988..5784a998b3 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_SqlApplicationConfiguration AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::Application.SqlApplicationConfiguration) @@ -13,53 +13,17 @@ type Application_SqlApplicationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-sqlapplicationconfiguration.html#cfn-kinesisanalyticsv2-application-sqlapplicationconfiguration-inputs Inputs []Application_Input `json:"Inputs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_SqlApplicationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::Application.SqlApplicationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_SqlApplicationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_SqlApplicationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_SqlApplicationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_SqlApplicationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_SqlApplicationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_SqlApplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go index 9ebc030724..b83bdb4574 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationCloudWatchLoggingOption AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption) @@ -22,14 +22,14 @@ type ApplicationCloudWatchLoggingOption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalyticsv2-applicationcloudwatchloggingoption.html#cfn-kinesisanalyticsv2-applicationcloudwatchloggingoption-cloudwatchloggingoption CloudWatchLoggingOption *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption `json:"CloudWatchLoggingOption,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ApplicationCloudWatchLoggingOption) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationCloudWatchLoggingOption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationCloudWatchLoggingOption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationCloudWatchLoggingOption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationCloudWatchLoggingOption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationCloudWatchLoggingOption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationCloudWatchLoggingOption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationCloudWatchLoggingOption) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ApplicationCloudWatchLoggingOption) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ApplicationCloudWatchLoggingOption) UnmarshalJSON(b []byte) error { *r = ApplicationCloudWatchLoggingOption(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go index 1bb1f6043c..945efb8d15 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption.CloudWatchLoggingOption) @@ -13,53 +13,17 @@ type ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationcloudwatchloggingoption-cloudwatchloggingoption.html#cfn-kinesisanalyticsv2-applicationcloudwatchloggingoption-cloudwatchloggingoption-logstreamarn LogStreamARN string `json:"LogStreamARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption.CloudWatchLoggingOption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go index 889eab8c42..884e5116df 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput) @@ -22,14 +22,14 @@ type ApplicationOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalyticsv2-applicationoutput.html#cfn-kinesisanalyticsv2-applicationoutput-output Output *ApplicationOutput_Output `json:"Output,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ApplicationOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationOutput" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationOutput) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ApplicationOutput) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ApplicationOutput) UnmarshalJSON(b []byte) error { *r = ApplicationOutput(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go index 3bc7c0b8dc..02416e7e37 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_DestinationSchema AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.DestinationSchema) @@ -13,53 +13,17 @@ type ApplicationOutput_DestinationSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-destinationschema.html#cfn-kinesisanalyticsv2-applicationoutput-destinationschema-recordformattype RecordFormatType string `json:"RecordFormatType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_DestinationSchema) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationOutput.DestinationSchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_DestinationSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_DestinationSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_DestinationSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_DestinationSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_DestinationSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_DestinationSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go index 4ca03ff58b..24ff6c51ff 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_KinesisFirehoseOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.KinesisFirehoseOutput) @@ -13,53 +13,17 @@ type ApplicationOutput_KinesisFirehoseOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-kinesisfirehoseoutput.html#cfn-kinesisanalyticsv2-applicationoutput-kinesisfirehoseoutput-resourcearn ResourceARN string `json:"ResourceARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_KinesisFirehoseOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationOutput.KinesisFirehoseOutput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisFirehoseOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisFirehoseOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisFirehoseOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisFirehoseOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisFirehoseOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisFirehoseOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go index 81590dbf08..aa1cd0ee06 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_KinesisStreamsOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.KinesisStreamsOutput) @@ -13,53 +13,17 @@ type ApplicationOutput_KinesisStreamsOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-kinesisstreamsoutput.html#cfn-kinesisanalyticsv2-applicationoutput-kinesisstreamsoutput-resourcearn ResourceARN string `json:"ResourceARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_KinesisStreamsOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationOutput.KinesisStreamsOutput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisStreamsOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_KinesisStreamsOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisStreamsOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_KinesisStreamsOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisStreamsOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_KinesisStreamsOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go index 069f25eee4..bcd7ca6d09 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_LambdaOutput AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.LambdaOutput) @@ -13,53 +13,17 @@ type ApplicationOutput_LambdaOutput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-lambdaoutput.html#cfn-kinesisanalyticsv2-applicationoutput-lambdaoutput-resourcearn ResourceARN string `json:"ResourceARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_LambdaOutput) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationOutput.LambdaOutput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_LambdaOutput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_LambdaOutput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_LambdaOutput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_LambdaOutput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_LambdaOutput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_LambdaOutput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go index 7c1ee0f2ac..e03369d723 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationOutput_Output AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationOutput.Output) @@ -33,53 +33,17 @@ type ApplicationOutput_Output struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationoutput-output.html#cfn-kinesisanalyticsv2-applicationoutput-output-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationOutput_Output) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationOutput.Output" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_Output) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationOutput_Output) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_Output) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationOutput_Output) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_Output) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationOutput_Output) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go index a40519545f..fab128bbd6 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource) @@ -22,14 +22,14 @@ type ApplicationReferenceDataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalyticsv2-applicationreferencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource ReferenceDataSource *ApplicationReferenceDataSource_ReferenceDataSource `json:"ReferenceDataSource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ApplicationReferenceDataSource) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationReferenceDataSource) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ApplicationReferenceDataSource) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ApplicationReferenceDataSource) UnmarshalJSON(b []byte) error { *r = ApplicationReferenceDataSource(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go index 742c61dd3c..86955c5d39 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_CSVMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.CSVMappingParameters) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_CSVMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-csvmappingparameters.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-csvmappingparameters-recordrowdelimiter RecordRowDelimiter string `json:"RecordRowDelimiter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_CSVMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.CSVMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_CSVMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go index 7d4ea50c4f..df95cc3222 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_JSONMappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.JSONMappingParameters) @@ -13,53 +13,17 @@ type ApplicationReferenceDataSource_JSONMappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-jsonmappingparameters.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-jsonmappingparameters-recordrowpath RecordRowPath string `json:"RecordRowPath,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_JSONMappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.JSONMappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_JSONMappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go index 541bb050cc..a583329189 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_MappingParameters AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.MappingParameters) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_MappingParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-mappingparameters.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-mappingparameters-jsonmappingparameters JSONMappingParameters *ApplicationReferenceDataSource_JSONMappingParameters `json:"JSONMappingParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_MappingParameters) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.MappingParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_MappingParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_MappingParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_MappingParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_MappingParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_MappingParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_MappingParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go index 24d9afbbbb..f7cb0fccbe 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_RecordColumn AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordColumn) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_RecordColumn struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-recordcolumn.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-recordcolumn-sqltype SqlType string `json:"SqlType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_RecordColumn) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordColumn" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordColumn) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordColumn) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordColumn) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordColumn) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordColumn) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordColumn) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go index 05806edce3..eeab0989b2 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_RecordFormat AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordFormat) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_RecordFormat struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-recordformat.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-recordformat-recordformattype RecordFormatType string `json:"RecordFormatType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_RecordFormat) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordFormat" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordFormat) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_RecordFormat) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordFormat) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_RecordFormat) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordFormat) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_RecordFormat) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go index 9db425a10f..144c7c8934 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.ReferenceDataSource) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_ReferenceDataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referencedatasource-tablename TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_ReferenceDataSource) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.ReferenceDataSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go index eeeb7e13b1..f85e688476 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_ReferenceSchema AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.ReferenceSchema) @@ -23,53 +23,17 @@ type ApplicationReferenceDataSource_ReferenceSchema struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-referenceschema.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-referenceschema-recordformat RecordFormat *ApplicationReferenceDataSource_RecordFormat `json:"RecordFormat,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_ReferenceSchema) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.ReferenceSchema" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_ReferenceSchema) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go index 217da9b2e8..1e10057475 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go @@ -1,7 +1,7 @@ package kinesisanalyticsv2 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationReferenceDataSource_S3ReferenceDataSource AWS CloudFormation Resource (AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.S3ReferenceDataSource) @@ -18,53 +18,17 @@ type ApplicationReferenceDataSource_S3ReferenceDataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource.html#cfn-kinesisanalyticsv2-applicationreferencedatasource-s3referencedatasource-filekey FileKey string `json:"FileKey,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) AWSCloudFormationType() string { return "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.S3ReferenceDataSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationReferenceDataSource_S3ReferenceDataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go index 007f984331..5c55054270 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream) @@ -52,14 +52,14 @@ type DeliveryStream struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisfirehose-deliverystream.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration SplunkDestinationConfiguration *DeliveryStream_SplunkDestinationConfiguration `json:"SplunkDestinationConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *DeliveryStream) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DeliveryStream) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r DeliveryStream) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *DeliveryStream) UnmarshalJSON(b []byte) error { *r = DeliveryStream(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go index 5bb213b08d..cc77e16635 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_BufferingHints AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.BufferingHints) @@ -18,53 +18,17 @@ type DeliveryStream_BufferingHints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-bufferinghints.html#cfn-kinesisfirehose-deliverystream-bufferinghints-sizeinmbs SizeInMBs int `json:"SizeInMBs"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_BufferingHints) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.BufferingHints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_BufferingHints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_BufferingHints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_BufferingHints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_BufferingHints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_BufferingHints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_BufferingHints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go index 332f69ab5e..45edd26132 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_CloudWatchLoggingOptions AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.CloudWatchLoggingOptions) @@ -23,53 +23,17 @@ type DeliveryStream_CloudWatchLoggingOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-cloudwatchloggingoptions.html#cfn-kinesisfirehose-deliverystream-cloudwatchloggingoptions-logstreamname LogStreamName string `json:"LogStreamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_CloudWatchLoggingOptions) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.CloudWatchLoggingOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_CloudWatchLoggingOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_CloudWatchLoggingOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_CloudWatchLoggingOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_CloudWatchLoggingOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_CloudWatchLoggingOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_CloudWatchLoggingOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go index c01c73a0e5..0109e13474 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_CopyCommand AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.CopyCommand) @@ -23,53 +23,17 @@ type DeliveryStream_CopyCommand struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-copycommand.html#cfn-kinesisfirehose-deliverystream-copycommand-datatablename DataTableName string `json:"DataTableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_CopyCommand) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.CopyCommand" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_CopyCommand) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_CopyCommand) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_CopyCommand) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_CopyCommand) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_CopyCommand) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_CopyCommand) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go index 183921bcfc..a15f23b4ce 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_DataFormatConversionConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.DataFormatConversionConfiguration) @@ -28,53 +28,17 @@ type DeliveryStream_DataFormatConversionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-dataformatconversionconfiguration.html#cfn-kinesisfirehose-deliverystream-dataformatconversionconfiguration-schemaconfiguration SchemaConfiguration *DeliveryStream_SchemaConfiguration `json:"SchemaConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_DataFormatConversionConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.DataFormatConversionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_DataFormatConversionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_DataFormatConversionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_DataFormatConversionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_DataFormatConversionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_DataFormatConversionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_DataFormatConversionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go index 22bd8c1bfc..8867ac93a7 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_Deserializer AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.Deserializer) @@ -18,53 +18,17 @@ type DeliveryStream_Deserializer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-deserializer.html#cfn-kinesisfirehose-deliverystream-deserializer-openxjsonserde OpenXJsonSerDe *DeliveryStream_OpenXJsonSerDe `json:"OpenXJsonSerDe,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_Deserializer) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.Deserializer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_Deserializer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_Deserializer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_Deserializer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_Deserializer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_Deserializer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_Deserializer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go index a56582b079..78d7860c93 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ElasticsearchBufferingHints AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ElasticsearchBufferingHints) @@ -18,53 +18,17 @@ type DeliveryStream_ElasticsearchBufferingHints struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchbufferinghints.html#cfn-kinesisfirehose-deliverystream-elasticsearchbufferinghints-sizeinmbs SizeInMBs int `json:"SizeInMBs"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ElasticsearchBufferingHints) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ElasticsearchBufferingHints" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ElasticsearchBufferingHints) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ElasticsearchBufferingHints) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ElasticsearchBufferingHints) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ElasticsearchBufferingHints) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ElasticsearchBufferingHints) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ElasticsearchBufferingHints) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go index f3ec632538..82c6eb5e3b 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ElasticsearchDestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ElasticsearchDestinationConfiguration) @@ -63,53 +63,17 @@ type DeliveryStream_ElasticsearchDestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration-typename TypeName string `json:"TypeName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ElasticsearchDestinationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ElasticsearchDestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ElasticsearchDestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ElasticsearchDestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ElasticsearchDestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ElasticsearchDestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ElasticsearchDestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ElasticsearchDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go index 1a877fc073..e3c146bb3a 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ElasticsearchRetryOptions AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ElasticsearchRetryOptions) @@ -13,53 +13,17 @@ type DeliveryStream_ElasticsearchRetryOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchretryoptions.html#cfn-kinesisfirehose-deliverystream-elasticsearchretryoptions-durationinseconds DurationInSeconds int `json:"DurationInSeconds"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ElasticsearchRetryOptions) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ElasticsearchRetryOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ElasticsearchRetryOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ElasticsearchRetryOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ElasticsearchRetryOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ElasticsearchRetryOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ElasticsearchRetryOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ElasticsearchRetryOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go index 46f00bb8f0..2169123f0c 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_EncryptionConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.EncryptionConfiguration) @@ -18,53 +18,17 @@ type DeliveryStream_EncryptionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-encryptionconfiguration.html#cfn-kinesisfirehose-deliverystream-encryptionconfiguration-noencryptionconfig NoEncryptionConfig string `json:"NoEncryptionConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_EncryptionConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.EncryptionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_EncryptionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_EncryptionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_EncryptionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_EncryptionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_EncryptionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_EncryptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go index 7709093b14..e9a6757674 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ExtendedS3DestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ExtendedS3DestinationConfiguration) @@ -68,53 +68,17 @@ type DeliveryStream_ExtendedS3DestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-extendeds3destinationconfiguration-s3backupmode S3BackupMode string `json:"S3BackupMode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ExtendedS3DestinationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ExtendedS3DestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ExtendedS3DestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ExtendedS3DestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ExtendedS3DestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ExtendedS3DestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ExtendedS3DestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ExtendedS3DestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go index eec3be8862..cda35a9b73 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_HiveJsonSerDe AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.HiveJsonSerDe) @@ -13,53 +13,17 @@ type DeliveryStream_HiveJsonSerDe struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-hivejsonserde.html#cfn-kinesisfirehose-deliverystream-hivejsonserde-timestampformats TimestampFormats []string `json:"TimestampFormats,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_HiveJsonSerDe) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.HiveJsonSerDe" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_HiveJsonSerDe) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_HiveJsonSerDe) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_HiveJsonSerDe) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_HiveJsonSerDe) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_HiveJsonSerDe) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_HiveJsonSerDe) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go index 8b7879dc4a..4c2f6874e2 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_InputFormatConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.InputFormatConfiguration) @@ -13,53 +13,17 @@ type DeliveryStream_InputFormatConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-inputformatconfiguration.html#cfn-kinesisfirehose-deliverystream-inputformatconfiguration-deserializer Deserializer *DeliveryStream_Deserializer `json:"Deserializer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_InputFormatConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.InputFormatConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_InputFormatConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_InputFormatConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_InputFormatConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_InputFormatConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_InputFormatConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_InputFormatConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go index 634ec20ca9..e84bfcdf98 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_KinesisStreamSourceConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.KinesisStreamSourceConfiguration) @@ -18,53 +18,17 @@ type DeliveryStream_KinesisStreamSourceConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html#cfn-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_KinesisStreamSourceConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.KinesisStreamSourceConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_KinesisStreamSourceConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_KinesisStreamSourceConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_KinesisStreamSourceConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_KinesisStreamSourceConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_KinesisStreamSourceConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_KinesisStreamSourceConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go index acd46eb85d..504786e106 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_KMSEncryptionConfig AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.KMSEncryptionConfig) @@ -13,53 +13,17 @@ type DeliveryStream_KMSEncryptionConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kmsencryptionconfig.html#cfn-kinesisfirehose-deliverystream-kmsencryptionconfig-awskmskeyarn AWSKMSKeyARN string `json:"AWSKMSKeyARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_KMSEncryptionConfig) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.KMSEncryptionConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_KMSEncryptionConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_KMSEncryptionConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_KMSEncryptionConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_KMSEncryptionConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_KMSEncryptionConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_KMSEncryptionConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go index 4548956c72..1679e13880 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_OpenXJsonSerDe AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.OpenXJsonSerDe) @@ -23,53 +23,17 @@ type DeliveryStream_OpenXJsonSerDe struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-openxjsonserde.html#cfn-kinesisfirehose-deliverystream-openxjsonserde-convertdotsinjsonkeystounderscores ConvertDotsInJsonKeysToUnderscores bool `json:"ConvertDotsInJsonKeysToUnderscores,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_OpenXJsonSerDe) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.OpenXJsonSerDe" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_OpenXJsonSerDe) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_OpenXJsonSerDe) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_OpenXJsonSerDe) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_OpenXJsonSerDe) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_OpenXJsonSerDe) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_OpenXJsonSerDe) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go index 13fb6774e0..1ef9077c9c 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_OrcSerDe AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.OrcSerDe) @@ -58,53 +58,17 @@ type DeliveryStream_OrcSerDe struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-orcserde.html#cfn-kinesisfirehose-deliverystream-orcserde-stripesizebytes StripeSizeBytes int `json:"StripeSizeBytes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_OrcSerDe) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.OrcSerDe" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_OrcSerDe) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_OrcSerDe) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_OrcSerDe) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_OrcSerDe) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_OrcSerDe) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_OrcSerDe) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go index 9aad2126a9..af4b6748ed 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_OutputFormatConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.OutputFormatConfiguration) @@ -13,53 +13,17 @@ type DeliveryStream_OutputFormatConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-outputformatconfiguration.html#cfn-kinesisfirehose-deliverystream-outputformatconfiguration-serializer Serializer *DeliveryStream_Serializer `json:"Serializer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_OutputFormatConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.OutputFormatConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_OutputFormatConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_OutputFormatConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_OutputFormatConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_OutputFormatConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_OutputFormatConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_OutputFormatConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go index 8b2a0f4ade..efcddd2043 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ParquetSerDe AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ParquetSerDe) @@ -38,53 +38,17 @@ type DeliveryStream_ParquetSerDe struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-parquetserde.html#cfn-kinesisfirehose-deliverystream-parquetserde-writerversion WriterVersion string `json:"WriterVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ParquetSerDe) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ParquetSerDe" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ParquetSerDe) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ParquetSerDe) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ParquetSerDe) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ParquetSerDe) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ParquetSerDe) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ParquetSerDe) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go index 55c1c62f29..971b0dc96b 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ProcessingConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ProcessingConfiguration) @@ -18,53 +18,17 @@ type DeliveryStream_ProcessingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processingconfiguration.html#cfn-kinesisfirehose-deliverystream-processingconfiguration-processors Processors []DeliveryStream_Processor `json:"Processors,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ProcessingConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ProcessingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ProcessingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ProcessingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ProcessingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ProcessingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ProcessingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ProcessingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go index ec8c9d20db..e09062ad63 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_Processor AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.Processor) @@ -18,53 +18,17 @@ type DeliveryStream_Processor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processor.html#cfn-kinesisfirehose-deliverystream-processor-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_Processor) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.Processor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_Processor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_Processor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_Processor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_Processor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_Processor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_Processor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go index 32259f54be..6843bf05b4 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_ProcessorParameter AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.ProcessorParameter) @@ -18,53 +18,17 @@ type DeliveryStream_ProcessorParameter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processorparameter.html#cfn-kinesisfirehose-deliverystream-processorparameter-parametervalue ParameterValue string `json:"ParameterValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_ProcessorParameter) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.ProcessorParameter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ProcessorParameter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_ProcessorParameter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ProcessorParameter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_ProcessorParameter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ProcessorParameter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_ProcessorParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go index 3baa5ca8b1..34b52d0c9b 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_RedshiftDestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.RedshiftDestinationConfiguration) @@ -48,53 +48,17 @@ type DeliveryStream_RedshiftDestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-redshiftdestinationconfiguration-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_RedshiftDestinationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.RedshiftDestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_RedshiftDestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_RedshiftDestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_RedshiftDestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_RedshiftDestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_RedshiftDestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_RedshiftDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go index 6c6b24b893..72790c7407 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_S3DestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.S3DestinationConfiguration) @@ -48,53 +48,17 @@ type DeliveryStream_S3DestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-s3destinationconfiguration.html#cfn-kinesisfirehose-deliverystream-s3destinationconfiguration-rolearn RoleARN string `json:"RoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_S3DestinationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.S3DestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_S3DestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_S3DestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_S3DestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_S3DestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_S3DestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_S3DestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go index 2635ce13b7..bcc83542b0 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_SchemaConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.SchemaConfiguration) @@ -38,53 +38,17 @@ type DeliveryStream_SchemaConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaconfiguration.html#cfn-kinesisfirehose-deliverystream-schemaconfiguration-versionid VersionId string `json:"VersionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_SchemaConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.SchemaConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_SchemaConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_SchemaConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_SchemaConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_SchemaConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_SchemaConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_SchemaConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go index 1ddd374ed4..8f946a8473 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_Serializer AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.Serializer) @@ -18,53 +18,17 @@ type DeliveryStream_Serializer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-serializer.html#cfn-kinesisfirehose-deliverystream-serializer-parquetserde ParquetSerDe *DeliveryStream_ParquetSerDe `json:"ParquetSerDe,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_Serializer) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.Serializer" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_Serializer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_Serializer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_Serializer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_Serializer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_Serializer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_Serializer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go index 09b53bfa2a..e226334379 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_SplunkDestinationConfiguration AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.SplunkDestinationConfiguration) @@ -53,53 +53,17 @@ type DeliveryStream_SplunkDestinationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-splunkdestinationconfiguration-s3configuration S3Configuration *DeliveryStream_S3DestinationConfiguration `json:"S3Configuration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_SplunkDestinationConfiguration) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.SplunkDestinationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_SplunkDestinationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_SplunkDestinationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_SplunkDestinationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_SplunkDestinationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_SplunkDestinationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_SplunkDestinationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go index fd0f361486..f70e9efa13 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go @@ -1,7 +1,7 @@ package kinesisfirehose import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DeliveryStream_SplunkRetryOptions AWS CloudFormation Resource (AWS::KinesisFirehose::DeliveryStream.SplunkRetryOptions) @@ -13,53 +13,17 @@ type DeliveryStream_SplunkRetryOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-splunkretryoptions.html#cfn-kinesisfirehose-deliverystream-splunkretryoptions-durationinseconds DurationInSeconds int `json:"DurationInSeconds"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DeliveryStream_SplunkRetryOptions) AWSCloudFormationType() string { return "AWS::KinesisFirehose::DeliveryStream.SplunkRetryOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_SplunkRetryOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DeliveryStream_SplunkRetryOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_SplunkRetryOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DeliveryStream_SplunkRetryOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_SplunkRetryOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DeliveryStream_SplunkRetryOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/kms/aws-kms-alias.go b/cloudformation/kms/aws-kms-alias.go index a3e6e439ca..a97599ce5f 100644 --- a/cloudformation/kms/aws-kms-alias.go +++ b/cloudformation/kms/aws-kms-alias.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alias AWS CloudFormation Resource (AWS::KMS::Alias) @@ -22,14 +22,14 @@ type Alias struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-alias.html#cfn-kms-alias-targetkeyid TargetKeyId string `json:"TargetKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Alias) AWSCloudFormationType() string { return "AWS::KMS::Alias" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Alias) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Alias) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Alias) UnmarshalJSON(b []byte) error { *r = Alias(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/kms/aws-kms-key.go b/cloudformation/kms/aws-kms-key.go index 4ed15744ac..8048f8f494 100644 --- a/cloudformation/kms/aws-kms-key.go +++ b/cloudformation/kms/aws-kms-key.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Key AWS CloudFormation Resource (AWS::KMS::Key) @@ -48,14 +48,14 @@ type Key struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *Key) AWSCloudFormationType() string { return "AWS::KMS::Key" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Key) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Key) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Key) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Key) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Key) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Key) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Key) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r Key) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *Key) UnmarshalJSON(b []byte) error { *r = Key(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go b/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go index 6bac6f1c42..fdc97bcbe0 100644 --- a/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go +++ b/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataLakeSettings AWS CloudFormation Resource (AWS::LakeFormation::DataLakeSettings) @@ -17,14 +17,14 @@ type DataLakeSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-datalakesettings.html#cfn-lakeformation-datalakesettings-admins Admins *DataLakeSettings_Admins `json:"Admins,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *DataLakeSettings) AWSCloudFormationType() string { return "AWS::LakeFormation::DataLakeSettings" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataLakeSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataLakeSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataLakeSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataLakeSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataLakeSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataLakeSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DataLakeSettings) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r DataLakeSettings) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *DataLakeSettings) UnmarshalJSON(b []byte) error { *r = DataLakeSettings(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go index 72459a14ef..f4fe9e196b 100644 --- a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go +++ b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go @@ -1,60 +1,24 @@ package lakeformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataLakeSettings_Admins AWS CloudFormation Resource (AWS::LakeFormation::DataLakeSettings.Admins) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datalakesettings-admins.html type DataLakeSettings_Admins struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataLakeSettings_Admins) AWSCloudFormationType() string { return "AWS::LakeFormation::DataLakeSettings.Admins" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataLakeSettings_Admins) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataLakeSettings_Admins) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataLakeSettings_Admins) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataLakeSettings_Admins) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataLakeSettings_Admins) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataLakeSettings_Admins) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go index 82a36136dd..e4a1748cdd 100644 --- a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go +++ b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go @@ -1,7 +1,7 @@ package lakeformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DataLakeSettings_DataLakePrincipal AWS CloudFormation Resource (AWS::LakeFormation::DataLakeSettings.DataLakePrincipal) @@ -13,53 +13,17 @@ type DataLakeSettings_DataLakePrincipal struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datalakesettings-datalakeprincipal.html#cfn-lakeformation-datalakesettings-datalakeprincipal-datalakeprincipalidentifier DataLakePrincipalIdentifier string `json:"DataLakePrincipalIdentifier,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DataLakeSettings_DataLakePrincipal) AWSCloudFormationType() string { return "AWS::LakeFormation::DataLakeSettings.DataLakePrincipal" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataLakeSettings_DataLakePrincipal) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DataLakeSettings_DataLakePrincipal) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataLakeSettings_DataLakePrincipal) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DataLakeSettings_DataLakePrincipal) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataLakeSettings_DataLakePrincipal) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DataLakeSettings_DataLakePrincipal) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions.go b/cloudformation/lakeformation/aws-lakeformation-permissions.go index 50dc1e171b..15e2d1317f 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Permissions AWS CloudFormation Resource (AWS::LakeFormation::Permissions) @@ -32,14 +32,14 @@ type Permissions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-resource Resource *Permissions_Resource `json:"Resource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Permissions) AWSCloudFormationType() string { return "AWS::LakeFormation::Permissions" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Permissions) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Permissions) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Permissions) UnmarshalJSON(b []byte) error { *r = Permissions(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go b/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go index 5f5bf5d5bd..092965b4e9 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go @@ -1,7 +1,7 @@ package lakeformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Permissions_DatabaseResource AWS CloudFormation Resource (AWS::LakeFormation::Permissions.DatabaseResource) @@ -13,53 +13,17 @@ type Permissions_DatabaseResource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-databaseresource.html#cfn-lakeformation-permissions-databaseresource-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Permissions_DatabaseResource) AWSCloudFormationType() string { return "AWS::LakeFormation::Permissions.DatabaseResource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_DatabaseResource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_DatabaseResource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_DatabaseResource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_DatabaseResource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_DatabaseResource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_DatabaseResource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go b/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go index ccf5bf6d0e..e207743ce6 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go @@ -1,7 +1,7 @@ package lakeformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Permissions_DataLakePrincipal AWS CloudFormation Resource (AWS::LakeFormation::Permissions.DataLakePrincipal) @@ -13,53 +13,17 @@ type Permissions_DataLakePrincipal struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalakeprincipal.html#cfn-lakeformation-permissions-datalakeprincipal-datalakeprincipalidentifier DataLakePrincipalIdentifier string `json:"DataLakePrincipalIdentifier,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Permissions_DataLakePrincipal) AWSCloudFormationType() string { return "AWS::LakeFormation::Permissions.DataLakePrincipal" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_DataLakePrincipal) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_DataLakePrincipal) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_DataLakePrincipal) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_DataLakePrincipal) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_DataLakePrincipal) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_DataLakePrincipal) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go b/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go index 41da6cec36..037f58aad3 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go @@ -1,7 +1,7 @@ package lakeformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Permissions_Resource AWS CloudFormation Resource (AWS::LakeFormation::Permissions.Resource) @@ -18,53 +18,17 @@ type Permissions_Resource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-resource.html#cfn-lakeformation-permissions-resource-tableresource TableResource *Permissions_TableResource `json:"TableResource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Permissions_Resource) AWSCloudFormationType() string { return "AWS::LakeFormation::Permissions.Resource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_Resource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_Resource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_Resource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_Resource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_Resource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_Resource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go b/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go index bdfed4dea3..54ae9934f4 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go @@ -1,7 +1,7 @@ package lakeformation import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Permissions_TableResource AWS CloudFormation Resource (AWS::LakeFormation::Permissions.TableResource) @@ -18,53 +18,17 @@ type Permissions_TableResource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tableresource.html#cfn-lakeformation-permissions-tableresource-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Permissions_TableResource) AWSCloudFormationType() string { return "AWS::LakeFormation::Permissions.TableResource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_TableResource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permissions_TableResource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_TableResource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permissions_TableResource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_TableResource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permissions_TableResource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lakeformation/aws-lakeformation-resource.go b/cloudformation/lakeformation/aws-lakeformation-resource.go index 6b3364db2f..b50a692eee 100644 --- a/cloudformation/lakeformation/aws-lakeformation-resource.go +++ b/cloudformation/lakeformation/aws-lakeformation-resource.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Resource AWS CloudFormation Resource (AWS::LakeFormation::Resource) @@ -27,14 +27,14 @@ type Resource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-useservicelinkedrole UseServiceLinkedRole bool `json:"UseServiceLinkedRole"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Resource) AWSCloudFormationType() string { return "AWS::LakeFormation::Resource" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Resource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Resource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Resource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Resource) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Resource) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Resource) UnmarshalJSON(b []byte) error { *r = Resource(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-alias.go b/cloudformation/lambda/aws-lambda-alias.go index 3e66387007..b2d06b484b 100644 --- a/cloudformation/lambda/aws-lambda-alias.go +++ b/cloudformation/lambda/aws-lambda-alias.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alias AWS CloudFormation Resource (AWS::Lambda::Alias) @@ -37,17 +37,17 @@ type Alias struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-routingconfig RoutingConfig *Alias_AliasRoutingConfiguration `json:"RoutingConfig,omitempty"` - // _updatePolicy represents a CloudFormation UpdatePolicy - _updatePolicy *policies.UpdatePolicy + // AWSCloudFormationUpdatePolicy represents a CloudFormation UpdatePolicy + AWSCloudFormationUpdatePolicy *policies.UpdatePolicy `json:"-"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -55,48 +55,6 @@ func (r *Alias) AWSCloudFormationType() string { return "AWS::Lambda::Alias" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - -// SetUpdatePolicy applies an AWS CloudFormation UpdatePolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html -func (r *Alias) SetUpdatePolicy(policy *policies.UpdatePolicy) { - r._updatePolicy = policy -} - // 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 Alias) MarshalJSON() ([]byte, error) { @@ -111,10 +69,10 @@ func (r Alias) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, - UpdatePolicy: r._updatePolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + UpdatePolicy: r.AWSCloudFormationUpdatePolicy, }) } @@ -143,13 +101,13 @@ func (r *Alias) UnmarshalJSON(b []byte) error { *r = Alias(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go b/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go index 1e3668e06f..21f76dfeec 100644 --- a/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go +++ b/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alias_AliasRoutingConfiguration AWS CloudFormation Resource (AWS::Lambda::Alias.AliasRoutingConfiguration) @@ -13,53 +13,17 @@ type Alias_AliasRoutingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html#cfn-lambda-alias-aliasroutingconfiguration-additionalversionweights AdditionalVersionWeights []Alias_VersionWeight `json:"AdditionalVersionWeights,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alias_AliasRoutingConfiguration) AWSCloudFormationType() string { return "AWS::Lambda::Alias.AliasRoutingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias_AliasRoutingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias_AliasRoutingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias_AliasRoutingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias_AliasRoutingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias_AliasRoutingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias_AliasRoutingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-alias_versionweight.go b/cloudformation/lambda/aws-lambda-alias_versionweight.go index 468fbc6c55..f3c21e3c9b 100644 --- a/cloudformation/lambda/aws-lambda-alias_versionweight.go +++ b/cloudformation/lambda/aws-lambda-alias_versionweight.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Alias_VersionWeight AWS CloudFormation Resource (AWS::Lambda::Alias.VersionWeight) @@ -18,53 +18,17 @@ type Alias_VersionWeight struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionweight FunctionWeight float64 `json:"FunctionWeight"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Alias_VersionWeight) AWSCloudFormationType() string { return "AWS::Lambda::Alias.VersionWeight" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias_VersionWeight) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Alias_VersionWeight) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias_VersionWeight) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Alias_VersionWeight) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias_VersionWeight) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Alias_VersionWeight) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig.go new file mode 100644 index 0000000000..9b1d969a11 --- /dev/null +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig.go @@ -0,0 +1,108 @@ +package lambda + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EventInvokeConfig AWS CloudFormation Resource (AWS::Lambda::EventInvokeConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html +type EventInvokeConfig struct { + + // DestinationConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig + DestinationConfig *EventInvokeConfig_DestinationConfig `json:"DestinationConfig,omitempty"` + + // FunctionName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-functionname + FunctionName string `json:"FunctionName,omitempty"` + + // MaximumEventAgeInSeconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumeventageinseconds + MaximumEventAgeInSeconds int `json:"MaximumEventAgeInSeconds,omitempty"` + + // MaximumRetryAttempts AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumretryattempts + MaximumRetryAttempts int `json:"MaximumRetryAttempts,omitempty"` + + // Qualifier AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-qualifier + Qualifier string `json:"Qualifier,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EventInvokeConfig) AWSCloudFormationType() string { + return "AWS::Lambda::EventInvokeConfig" +} + +// 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 EventInvokeConfig) MarshalJSON() ([]byte, error) { + type Properties EventInvokeConfig + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *EventInvokeConfig) UnmarshalJSON(b []byte) error { + type Properties EventInvokeConfig + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = EventInvokeConfig(*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) + } + return nil +} diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go new file mode 100644 index 0000000000..a625e54e70 --- /dev/null +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go @@ -0,0 +1,34 @@ +package lambda + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EventInvokeConfig_DestinationConfig AWS CloudFormation Resource (AWS::Lambda::EventInvokeConfig.DestinationConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html +type EventInvokeConfig_DestinationConfig struct { + + // OnFailure AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig-onfailure + OnFailure *EventInvokeConfig_OnFailure `json:"OnFailure,omitempty"` + + // OnSuccess AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig-onsuccess + OnSuccess *EventInvokeConfig_OnSuccess `json:"OnSuccess,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EventInvokeConfig_DestinationConfig) AWSCloudFormationType() string { + return "AWS::Lambda::EventInvokeConfig.DestinationConfig" +} diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go new file mode 100644 index 0000000000..81d9ba0a04 --- /dev/null +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go @@ -0,0 +1,29 @@ +package lambda + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EventInvokeConfig_OnFailure AWS CloudFormation Resource (AWS::Lambda::EventInvokeConfig.OnFailure) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onfailure.html +type EventInvokeConfig_OnFailure struct { + + // Destination AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onfailure.html#cfn-lambda-eventinvokeconfig-destinationconfig-onfailure-destination + Destination string `json:"Destination,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EventInvokeConfig_OnFailure) AWSCloudFormationType() string { + return "AWS::Lambda::EventInvokeConfig.OnFailure" +} diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go new file mode 100644 index 0000000000..183b548510 --- /dev/null +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go @@ -0,0 +1,29 @@ +package lambda + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EventInvokeConfig_OnSuccess AWS CloudFormation Resource (AWS::Lambda::EventInvokeConfig.OnSuccess) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onsuccess.html +type EventInvokeConfig_OnSuccess struct { + + // Destination AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onsuccess.html#cfn-lambda-eventinvokeconfig-destinationconfig-onsuccess-destination + Destination string `json:"Destination,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EventInvokeConfig_OnSuccess) AWSCloudFormationType() string { + return "AWS::Lambda::EventInvokeConfig.OnSuccess" +} diff --git a/cloudformation/lambda/aws-lambda-eventsourcemapping.go b/cloudformation/lambda/aws-lambda-eventsourcemapping.go index 64f00267e1..8aa8530a11 100644 --- a/cloudformation/lambda/aws-lambda-eventsourcemapping.go +++ b/cloudformation/lambda/aws-lambda-eventsourcemapping.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EventSourceMapping AWS CloudFormation Resource (AWS::Lambda::EventSourceMapping) @@ -17,6 +17,16 @@ type EventSourceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize BatchSize int `json:"BatchSize,omitempty"` + // BisectBatchOnFunctionError AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror + BisectBatchOnFunctionError bool `json:"BisectBatchOnFunctionError,omitempty"` + + // DestinationConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig + DestinationConfig *EventSourceMapping_DestinationConfig `json:"DestinationConfig,omitempty"` + // Enabled AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled @@ -37,19 +47,34 @@ type EventSourceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds MaximumBatchingWindowInSeconds int `json:"MaximumBatchingWindowInSeconds,omitempty"` + // MaximumRecordAgeInSeconds AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds + MaximumRecordAgeInSeconds int `json:"MaximumRecordAgeInSeconds,omitempty"` + + // MaximumRetryAttempts AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts + MaximumRetryAttempts int `json:"MaximumRetryAttempts,omitempty"` + + // ParallelizationFactor AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor + ParallelizationFactor int `json:"ParallelizationFactor,omitempty"` + // StartingPosition AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition StartingPosition string `json:"StartingPosition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +82,6 @@ func (r *EventSourceMapping) AWSCloudFormationType() string { return "AWS::Lambda::EventSourceMapping" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventSourceMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventSourceMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventSourceMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventSourceMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventSourceMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventSourceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EventSourceMapping) MarshalJSON() ([]byte, error) { @@ -106,9 +95,9 @@ func (r EventSourceMapping) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +126,13 @@ func (r *EventSourceMapping) UnmarshalJSON(b []byte) error { *r = EventSourceMapping(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go b/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go new file mode 100644 index 0000000000..9c1439f445 --- /dev/null +++ b/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go @@ -0,0 +1,29 @@ +package lambda + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EventSourceMapping_DestinationConfig AWS CloudFormation Resource (AWS::Lambda::EventSourceMapping.DestinationConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html +type EventSourceMapping_DestinationConfig struct { + + // OnFailure AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html#cfn-lambda-eventsourcemapping-destinationconfig-onfailure + OnFailure *EventSourceMapping_OnFailure `json:"OnFailure,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EventSourceMapping_DestinationConfig) AWSCloudFormationType() string { + return "AWS::Lambda::EventSourceMapping.DestinationConfig" +} diff --git a/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go b/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go new file mode 100644 index 0000000000..c08adedc2d --- /dev/null +++ b/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go @@ -0,0 +1,29 @@ +package lambda + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EventSourceMapping_OnFailure AWS CloudFormation Resource (AWS::Lambda::EventSourceMapping.OnFailure) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html +type EventSourceMapping_OnFailure struct { + + // Destination AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination + Destination string `json:"Destination,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EventSourceMapping_OnFailure) AWSCloudFormationType() string { + return "AWS::Lambda::EventSourceMapping.OnFailure" +} diff --git a/cloudformation/lambda/aws-lambda-function.go b/cloudformation/lambda/aws-lambda-function.go index 5ba1f931fa..93dcca2c76 100644 --- a/cloudformation/lambda/aws-lambda-function.go +++ b/cloudformation/lambda/aws-lambda-function.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Function AWS CloudFormation Resource (AWS::Lambda::Function) @@ -93,14 +93,14 @@ type Function struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig VpcConfig *Function_VpcConfig `json:"VpcConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -108,42 +108,6 @@ func (r *Function) AWSCloudFormationType() string { return "AWS::Lambda::Function" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Function) MarshalJSON() ([]byte, error) { @@ -157,9 +121,9 @@ func (r Function) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -188,13 +152,13 @@ func (r *Function) UnmarshalJSON(b []byte) error { *r = Function(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-function_code.go b/cloudformation/lambda/aws-lambda-function_code.go index 2fda4bd265..f18be7e58d 100644 --- a/cloudformation/lambda/aws-lambda-function_code.go +++ b/cloudformation/lambda/aws-lambda-function_code.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_Code AWS CloudFormation Resource (AWS::Lambda::Function.Code) @@ -28,53 +28,17 @@ type Function_Code struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile ZipFile string `json:"ZipFile,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_Code) AWSCloudFormationType() string { return "AWS::Lambda::Function.Code" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_Code) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_Code) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_Code) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_Code) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_Code) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_Code) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-function_deadletterconfig.go b/cloudformation/lambda/aws-lambda-function_deadletterconfig.go index 31ede23166..082cd86e08 100644 --- a/cloudformation/lambda/aws-lambda-function_deadletterconfig.go +++ b/cloudformation/lambda/aws-lambda-function_deadletterconfig.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_DeadLetterConfig AWS CloudFormation Resource (AWS::Lambda::Function.DeadLetterConfig) @@ -13,53 +13,17 @@ type Function_DeadLetterConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html#cfn-lambda-function-deadletterconfig-targetarn TargetArn string `json:"TargetArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_DeadLetterConfig) AWSCloudFormationType() string { return "AWS::Lambda::Function.DeadLetterConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DeadLetterConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DeadLetterConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DeadLetterConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DeadLetterConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DeadLetterConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DeadLetterConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-function_environment.go b/cloudformation/lambda/aws-lambda-function_environment.go index 8832903875..c5fe33ec02 100644 --- a/cloudformation/lambda/aws-lambda-function_environment.go +++ b/cloudformation/lambda/aws-lambda-function_environment.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_Environment AWS CloudFormation Resource (AWS::Lambda::Function.Environment) @@ -13,53 +13,17 @@ type Function_Environment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables Variables map[string]string `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_Environment) AWSCloudFormationType() string { return "AWS::Lambda::Function.Environment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_Environment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_Environment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_Environment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_Environment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_Environment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_Environment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-function_tracingconfig.go b/cloudformation/lambda/aws-lambda-function_tracingconfig.go index f265c99f6b..a3d5bff145 100644 --- a/cloudformation/lambda/aws-lambda-function_tracingconfig.go +++ b/cloudformation/lambda/aws-lambda-function_tracingconfig.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_TracingConfig AWS CloudFormation Resource (AWS::Lambda::Function.TracingConfig) @@ -13,53 +13,17 @@ type Function_TracingConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html#cfn-lambda-function-tracingconfig-mode Mode string `json:"Mode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_TracingConfig) AWSCloudFormationType() string { return "AWS::Lambda::Function.TracingConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TracingConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TracingConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TracingConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TracingConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TracingConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TracingConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-function_vpcconfig.go b/cloudformation/lambda/aws-lambda-function_vpcconfig.go index 747dc02016..2b57b92b22 100644 --- a/cloudformation/lambda/aws-lambda-function_vpcconfig.go +++ b/cloudformation/lambda/aws-lambda-function_vpcconfig.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_VpcConfig AWS CloudFormation Resource (AWS::Lambda::Function.VpcConfig) @@ -18,53 +18,17 @@ type Function_VpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_VpcConfig) AWSCloudFormationType() string { return "AWS::Lambda::Function.VpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_VpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_VpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_VpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_VpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_VpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-layerversion.go b/cloudformation/lambda/aws-lambda-layerversion.go index a22ae2238a..98b90bf2c3 100644 --- a/cloudformation/lambda/aws-lambda-layerversion.go +++ b/cloudformation/lambda/aws-lambda-layerversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LayerVersion AWS CloudFormation Resource (AWS::Lambda::LayerVersion) @@ -37,14 +37,14 @@ type LayerVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-licenseinfo LicenseInfo string `json:"LicenseInfo,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *LayerVersion) AWSCloudFormationType() string { return "AWS::Lambda::LayerVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LayerVersion) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r LayerVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *LayerVersion) UnmarshalJSON(b []byte) error { *r = LayerVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-layerversion_content.go b/cloudformation/lambda/aws-lambda-layerversion_content.go index fe232c220d..0a0655ab76 100644 --- a/cloudformation/lambda/aws-lambda-layerversion_content.go +++ b/cloudformation/lambda/aws-lambda-layerversion_content.go @@ -1,7 +1,7 @@ package lambda import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LayerVersion_Content AWS CloudFormation Resource (AWS::Lambda::LayerVersion.Content) @@ -23,53 +23,17 @@ type LayerVersion_Content struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3objectversion S3ObjectVersion string `json:"S3ObjectVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *LayerVersion_Content) AWSCloudFormationType() string { return "AWS::Lambda::LayerVersion.Content" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersion_Content) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersion_Content) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersion_Content) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersion_Content) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersion_Content) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersion_Content) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/lambda/aws-lambda-layerversionpermission.go b/cloudformation/lambda/aws-lambda-layerversionpermission.go index 21d2c1df2a..465a0f32a5 100644 --- a/cloudformation/lambda/aws-lambda-layerversionpermission.go +++ b/cloudformation/lambda/aws-lambda-layerversionpermission.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LayerVersionPermission AWS CloudFormation Resource (AWS::Lambda::LayerVersionPermission) @@ -32,14 +32,14 @@ type LayerVersionPermission struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal Principal string `json:"Principal,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *LayerVersionPermission) AWSCloudFormationType() string { return "AWS::Lambda::LayerVersionPermission" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersionPermission) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersionPermission) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersionPermission) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersionPermission) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersionPermission) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersionPermission) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LayerVersionPermission) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r LayerVersionPermission) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *LayerVersionPermission) UnmarshalJSON(b []byte) error { *r = LayerVersionPermission(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-permission.go b/cloudformation/lambda/aws-lambda-permission.go index cdb52e5c13..d28031971e 100644 --- a/cloudformation/lambda/aws-lambda-permission.go +++ b/cloudformation/lambda/aws-lambda-permission.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Permission AWS CloudFormation Resource (AWS::Lambda::Permission) @@ -42,14 +42,14 @@ type Permission struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn SourceArn string `json:"SourceArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *Permission) AWSCloudFormationType() string { return "AWS::Lambda::Permission" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permission) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Permission) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permission) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Permission) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permission) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Permission) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Permission) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r Permission) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *Permission) UnmarshalJSON(b []byte) error { *r = Permission(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/lambda/aws-lambda-version.go b/cloudformation/lambda/aws-lambda-version.go index da0f707ab4..de1984c95d 100644 --- a/cloudformation/lambda/aws-lambda-version.go +++ b/cloudformation/lambda/aws-lambda-version.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Version AWS CloudFormation Resource (AWS::Lambda::Version) @@ -27,14 +27,14 @@ type Version struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname FunctionName string `json:"FunctionName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Version) AWSCloudFormationType() string { return "AWS::Lambda::Version" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Version) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Version) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Version) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Version) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Version) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Version) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Version) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Version) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Version) UnmarshalJSON(b []byte) error { *r = Version(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/logs/aws-logs-destination.go b/cloudformation/logs/aws-logs-destination.go index e897bdc519..5f2d896bca 100644 --- a/cloudformation/logs/aws-logs-destination.go +++ b/cloudformation/logs/aws-logs-destination.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Destination AWS CloudFormation Resource (AWS::Logs::Destination) @@ -32,14 +32,14 @@ type Destination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-targetarn TargetArn string `json:"TargetArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Destination) AWSCloudFormationType() string { return "AWS::Logs::Destination" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Destination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Destination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Destination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Destination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Destination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Destination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Destination) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Destination) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Destination) UnmarshalJSON(b []byte) error { *r = Destination(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/logs/aws-logs-loggroup.go b/cloudformation/logs/aws-logs-loggroup.go index 0024b53cd0..7d5ce83145 100644 --- a/cloudformation/logs/aws-logs-loggroup.go +++ b/cloudformation/logs/aws-logs-loggroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LogGroup AWS CloudFormation Resource (AWS::Logs::LogGroup) @@ -22,14 +22,14 @@ type LogGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-cwl-loggroup-retentionindays RetentionInDays int `json:"RetentionInDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *LogGroup) AWSCloudFormationType() string { return "AWS::Logs::LogGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LogGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LogGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LogGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LogGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LogGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LogGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LogGroup) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r LogGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *LogGroup) UnmarshalJSON(b []byte) error { *r = LogGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/logs/aws-logs-logstream.go b/cloudformation/logs/aws-logs-logstream.go index fdb223a892..021bc21e84 100644 --- a/cloudformation/logs/aws-logs-logstream.go +++ b/cloudformation/logs/aws-logs-logstream.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LogStream AWS CloudFormation Resource (AWS::Logs::LogStream) @@ -22,14 +22,14 @@ type LogStream struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname LogStreamName string `json:"LogStreamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *LogStream) AWSCloudFormationType() string { return "AWS::Logs::LogStream" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LogStream) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LogStream) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LogStream) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LogStream) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LogStream) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LogStream) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LogStream) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r LogStream) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *LogStream) UnmarshalJSON(b []byte) error { *r = LogStream(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/logs/aws-logs-metricfilter.go b/cloudformation/logs/aws-logs-metricfilter.go index caa7810f06..b75000b2d3 100644 --- a/cloudformation/logs/aws-logs-metricfilter.go +++ b/cloudformation/logs/aws-logs-metricfilter.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MetricFilter AWS CloudFormation Resource (AWS::Logs::MetricFilter) @@ -27,14 +27,14 @@ type MetricFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-metrictransformations MetricTransformations []MetricFilter_MetricTransformation `json:"MetricTransformations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *MetricFilter) AWSCloudFormationType() string { return "AWS::Logs::MetricFilter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MetricFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MetricFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MetricFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MetricFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MetricFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MetricFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MetricFilter) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r MetricFilter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *MetricFilter) UnmarshalJSON(b []byte) error { *r = MetricFilter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go b/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go index 0234e2c4a2..099e7c7cc6 100644 --- a/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go +++ b/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go @@ -1,7 +1,7 @@ package logs import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MetricFilter_MetricTransformation AWS CloudFormation Resource (AWS::Logs::MetricFilter.MetricTransformation) @@ -28,53 +28,17 @@ type MetricFilter_MetricTransformation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricvalue MetricValue string `json:"MetricValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MetricFilter_MetricTransformation) AWSCloudFormationType() string { return "AWS::Logs::MetricFilter.MetricTransformation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MetricFilter_MetricTransformation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MetricFilter_MetricTransformation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MetricFilter_MetricTransformation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MetricFilter_MetricTransformation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MetricFilter_MetricTransformation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MetricFilter_MetricTransformation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/logs/aws-logs-subscriptionfilter.go b/cloudformation/logs/aws-logs-subscriptionfilter.go index 40866698ec..204f136e24 100644 --- a/cloudformation/logs/aws-logs-subscriptionfilter.go +++ b/cloudformation/logs/aws-logs-subscriptionfilter.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SubscriptionFilter AWS CloudFormation Resource (AWS::Logs::SubscriptionFilter) @@ -32,14 +32,14 @@ type SubscriptionFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *SubscriptionFilter) AWSCloudFormationType() string { return "AWS::Logs::SubscriptionFilter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SubscriptionFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SubscriptionFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SubscriptionFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SubscriptionFilter) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r SubscriptionFilter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *SubscriptionFilter) UnmarshalJSON(b []byte) error { *r = SubscriptionFilter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member.go b/cloudformation/managedblockchain/aws-managedblockchain-member.go index a29b03215b..5943105df8 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member AWS CloudFormation Resource (AWS::ManagedBlockchain::Member) @@ -32,14 +32,14 @@ type Member struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-managedblockchain-member.html#cfn-managedblockchain-member-networkid NetworkId string `json:"NetworkId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Member) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Member) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Member) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Member) UnmarshalJSON(b []byte) error { *r = Member(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go b/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go index 936c4dd794..748362f41b 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_ApprovalThresholdPolicy AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.ApprovalThresholdPolicy) @@ -23,53 +23,17 @@ type Member_ApprovalThresholdPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-approvalthresholdpolicy.html#cfn-managedblockchain-member-approvalthresholdpolicy-thresholdpercentage ThresholdPercentage int `json:"ThresholdPercentage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_ApprovalThresholdPolicy) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.ApprovalThresholdPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_ApprovalThresholdPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_ApprovalThresholdPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_ApprovalThresholdPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_ApprovalThresholdPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_ApprovalThresholdPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_ApprovalThresholdPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go index 4d0f4aa204..91362c4360 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_MemberConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.MemberConfiguration) @@ -23,53 +23,17 @@ type Member_MemberConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-memberconfiguration.html#cfn-managedblockchain-member-memberconfiguration-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_MemberConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.MemberConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_MemberConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_MemberConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_MemberConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_MemberConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_MemberConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_MemberConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go index fb3b9bd90e..3ad80e499b 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_MemberFabricConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.MemberFabricConfiguration) @@ -18,53 +18,17 @@ type Member_MemberFabricConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-memberfabricconfiguration.html#cfn-managedblockchain-member-memberfabricconfiguration-adminusername AdminUsername string `json:"AdminUsername,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_MemberFabricConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.MemberFabricConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_MemberFabricConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_MemberFabricConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_MemberFabricConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_MemberFabricConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_MemberFabricConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_MemberFabricConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go index 2581d96bb1..d180bacf3c 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_MemberFrameworkConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.MemberFrameworkConfiguration) @@ -13,53 +13,17 @@ type Member_MemberFrameworkConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-memberframeworkconfiguration.html#cfn-managedblockchain-member-memberframeworkconfiguration-memberfabricconfiguration MemberFabricConfiguration *Member_MemberFabricConfiguration `json:"MemberFabricConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_MemberFrameworkConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.MemberFrameworkConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_MemberFrameworkConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_MemberFrameworkConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_MemberFrameworkConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_MemberFrameworkConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_MemberFrameworkConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_MemberFrameworkConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go index 872c8953fe..3b23f5d12f 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_NetworkConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.NetworkConfiguration) @@ -38,53 +38,17 @@ type Member_NetworkConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-networkconfiguration.html#cfn-managedblockchain-member-networkconfiguration-votingpolicy VotingPolicy *Member_VotingPolicy `json:"VotingPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_NetworkConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.NetworkConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_NetworkConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_NetworkConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_NetworkConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_NetworkConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_NetworkConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_NetworkConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go index 20b548e5bf..009bbd4512 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_NetworkFabricConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.NetworkFabricConfiguration) @@ -13,53 +13,17 @@ type Member_NetworkFabricConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-networkfabricconfiguration.html#cfn-managedblockchain-member-networkfabricconfiguration-edition Edition string `json:"Edition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_NetworkFabricConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.NetworkFabricConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_NetworkFabricConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_NetworkFabricConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_NetworkFabricConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_NetworkFabricConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_NetworkFabricConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_NetworkFabricConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go index ef30e49602..ca84e212c1 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_NetworkFrameworkConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.NetworkFrameworkConfiguration) @@ -13,53 +13,17 @@ type Member_NetworkFrameworkConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-networkframeworkconfiguration.html#cfn-managedblockchain-member-networkframeworkconfiguration-networkfabricconfiguration NetworkFabricConfiguration *Member_NetworkFabricConfiguration `json:"NetworkFabricConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_NetworkFrameworkConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.NetworkFrameworkConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_NetworkFrameworkConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_NetworkFrameworkConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_NetworkFrameworkConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_NetworkFrameworkConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_NetworkFrameworkConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_NetworkFrameworkConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go b/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go index db5d13d0cd..422b6fad61 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Member_VotingPolicy AWS CloudFormation Resource (AWS::ManagedBlockchain::Member.VotingPolicy) @@ -13,53 +13,17 @@ type Member_VotingPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-member-votingpolicy.html#cfn-managedblockchain-member-votingpolicy-approvalthresholdpolicy ApprovalThresholdPolicy *Member_ApprovalThresholdPolicy `json:"ApprovalThresholdPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Member_VotingPolicy) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Member.VotingPolicy" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_VotingPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Member_VotingPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_VotingPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Member_VotingPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_VotingPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Member_VotingPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/managedblockchain/aws-managedblockchain-node.go b/cloudformation/managedblockchain/aws-managedblockchain-node.go index 6bd04f70d2..9ae7cda4dc 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-node.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-node.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Node AWS CloudFormation Resource (AWS::ManagedBlockchain::Node) @@ -27,14 +27,14 @@ type Node struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-managedblockchain-node.html#cfn-managedblockchain-node-nodeconfiguration NodeConfiguration *Node_NodeConfiguration `json:"NodeConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Node) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Node" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Node) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Node) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Node) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Node) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Node) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Node) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Node) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Node) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Node) UnmarshalJSON(b []byte) error { *r = Node(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go index 86d39ed284..2a51809ff6 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go @@ -1,7 +1,7 @@ package managedblockchain import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Node_NodeConfiguration AWS CloudFormation Resource (AWS::ManagedBlockchain::Node.NodeConfiguration) @@ -18,53 +18,17 @@ type Node_NodeConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-managedblockchain-node-nodeconfiguration.html#cfn-managedblockchain-node-nodeconfiguration-instancetype InstanceType string `json:"InstanceType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Node_NodeConfiguration) AWSCloudFormationType() string { return "AWS::ManagedBlockchain::Node.NodeConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Node_NodeConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Node_NodeConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Node_NodeConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Node_NodeConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Node_NodeConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Node_NodeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go new file mode 100644 index 0000000000..a51a5878f9 --- /dev/null +++ b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go @@ -0,0 +1,128 @@ +package mediaconvert + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// JobTemplate AWS CloudFormation Resource (AWS::MediaConvert::JobTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html +type JobTemplate struct { + + // AccelerationSettings AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-accelerationsettings + AccelerationSettings *JobTemplate_AccelerationSettings `json:"AccelerationSettings,omitempty"` + + // Category AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-category + Category string `json:"Category,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-description + Description string `json:"Description,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-name + Name string `json:"Name,omitempty"` + + // Priority AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-priority + Priority int `json:"Priority,omitempty"` + + // Queue AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-queue + Queue string `json:"Queue,omitempty"` + + // SettingsJson AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-settingsjson + SettingsJson interface{} `json:"SettingsJson,omitempty"` + + // StatusUpdateInterval AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-statusupdateinterval + StatusUpdateInterval string `json:"StatusUpdateInterval,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html#cfn-mediaconvert-jobtemplate-tags + Tags interface{} `json:"Tags,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *JobTemplate) AWSCloudFormationType() string { + return "AWS::MediaConvert::JobTemplate" +} + +// 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 JobTemplate) MarshalJSON() ([]byte, error) { + type Properties JobTemplate + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *JobTemplate) UnmarshalJSON(b []byte) error { + type Properties JobTemplate + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = JobTemplate(*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) + } + return nil +} diff --git a/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go new file mode 100644 index 0000000000..0b77f54055 --- /dev/null +++ b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go @@ -0,0 +1,29 @@ +package mediaconvert + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// JobTemplate_AccelerationSettings AWS CloudFormation Resource (AWS::MediaConvert::JobTemplate.AccelerationSettings) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconvert-jobtemplate-accelerationsettings.html +type JobTemplate_AccelerationSettings struct { + + // Mode AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconvert-jobtemplate-accelerationsettings.html#cfn-mediaconvert-jobtemplate-accelerationsettings-mode + Mode string `json:"Mode,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *JobTemplate_AccelerationSettings) AWSCloudFormationType() string { + return "AWS::MediaConvert::JobTemplate.AccelerationSettings" +} diff --git a/cloudformation/mediaconvert/aws-mediaconvert-preset.go b/cloudformation/mediaconvert/aws-mediaconvert-preset.go new file mode 100644 index 0000000000..5f5b25e375 --- /dev/null +++ b/cloudformation/mediaconvert/aws-mediaconvert-preset.go @@ -0,0 +1,108 @@ +package mediaconvert + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Preset AWS CloudFormation Resource (AWS::MediaConvert::Preset) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html +type Preset struct { + + // Category AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-category + Category string `json:"Category,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-description + Description string `json:"Description,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-name + Name string `json:"Name,omitempty"` + + // SettingsJson AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-settingsjson + SettingsJson interface{} `json:"SettingsJson,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-tags + Tags interface{} `json:"Tags,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Preset) AWSCloudFormationType() string { + return "AWS::MediaConvert::Preset" +} + +// 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 Preset) MarshalJSON() ([]byte, error) { + type Properties Preset + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *Preset) UnmarshalJSON(b []byte) error { + type Properties Preset + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = Preset(*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) + } + return nil +} diff --git a/cloudformation/mediaconvert/aws-mediaconvert-queue.go b/cloudformation/mediaconvert/aws-mediaconvert-queue.go new file mode 100644 index 0000000000..2dd464673f --- /dev/null +++ b/cloudformation/mediaconvert/aws-mediaconvert-queue.go @@ -0,0 +1,108 @@ +package mediaconvert + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Queue AWS CloudFormation Resource (AWS::MediaConvert::Queue) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html +type Queue struct { + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html#cfn-mediaconvert-queue-description + Description string `json:"Description,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html#cfn-mediaconvert-queue-name + Name string `json:"Name,omitempty"` + + // PricingPlan AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html#cfn-mediaconvert-queue-pricingplan + PricingPlan string `json:"PricingPlan,omitempty"` + + // Status AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html#cfn-mediaconvert-queue-status + Status string `json:"Status,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html#cfn-mediaconvert-queue-tags + Tags interface{} `json:"Tags,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Queue) AWSCloudFormationType() string { + return "AWS::MediaConvert::Queue" +} + +// 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 Queue) MarshalJSON() ([]byte, error) { + type Properties Queue + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *Queue) UnmarshalJSON(b []byte) error { + type Properties Queue + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = Queue(*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) + } + return nil +} diff --git a/cloudformation/medialive/aws-medialive-channel.go b/cloudformation/medialive/aws-medialive-channel.go index cec4ad95fd..11fe23f127 100644 --- a/cloudformation/medialive/aws-medialive-channel.go +++ b/cloudformation/medialive/aws-medialive-channel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel AWS CloudFormation Resource (AWS::MediaLive::Channel) @@ -57,14 +57,14 @@ type Channel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-channel.html#cfn-medialive-channel-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *Channel) AWSCloudFormationType() string { return "AWS::MediaLive::Channel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Channel) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r Channel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *Channel) UnmarshalJSON(b []byte) error { *r = Channel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go index 56f15267d1..e0e6e2ef1a 100644 --- a/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go @@ -1,60 +1,24 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_AribSourceSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.AribSourceSettings) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-aribsourcesettings.html type Channel_AribSourceSettings struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_AribSourceSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.AribSourceSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AribSourceSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AribSourceSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AribSourceSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AribSourceSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AribSourceSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AribSourceSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go b/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go index 42c31f6740..6514e94c80 100644 --- a/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go +++ b/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_AudioLanguageSelection AWS CloudFormation Resource (AWS::MediaLive::Channel.AudioLanguageSelection) @@ -18,53 +18,17 @@ type Channel_AudioLanguageSelection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiolanguageselection.html#cfn-medialive-channel-audiolanguageselection-languageselectionpolicy LanguageSelectionPolicy string `json:"LanguageSelectionPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_AudioLanguageSelection) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.AudioLanguageSelection" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioLanguageSelection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioLanguageSelection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioLanguageSelection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioLanguageSelection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioLanguageSelection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioLanguageSelection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_audiopidselection.go b/cloudformation/medialive/aws-medialive-channel_audiopidselection.go index 952051f54a..2836321438 100644 --- a/cloudformation/medialive/aws-medialive-channel_audiopidselection.go +++ b/cloudformation/medialive/aws-medialive-channel_audiopidselection.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_AudioPidSelection AWS CloudFormation Resource (AWS::MediaLive::Channel.AudioPidSelection) @@ -13,53 +13,17 @@ type Channel_AudioPidSelection struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audiopidselection.html#cfn-medialive-channel-audiopidselection-pid Pid int `json:"Pid,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_AudioPidSelection) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.AudioPidSelection" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioPidSelection) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioPidSelection) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioPidSelection) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioPidSelection) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioPidSelection) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioPidSelection) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_audioselector.go b/cloudformation/medialive/aws-medialive-channel_audioselector.go index 34aa991be3..82ff0cb5d2 100644 --- a/cloudformation/medialive/aws-medialive-channel_audioselector.go +++ b/cloudformation/medialive/aws-medialive-channel_audioselector.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_AudioSelector AWS CloudFormation Resource (AWS::MediaLive::Channel.AudioSelector) @@ -18,53 +18,17 @@ type Channel_AudioSelector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audioselector.html#cfn-medialive-channel-audioselector-selectorsettings SelectorSettings *Channel_AudioSelectorSettings `json:"SelectorSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_AudioSelector) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.AudioSelector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioSelector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioSelector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioSelector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioSelector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioSelector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioSelector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go b/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go index a1c905e28f..e079817e7a 100644 --- a/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_AudioSelectorSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.AudioSelectorSettings) @@ -18,53 +18,17 @@ type Channel_AudioSelectorSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-audioselectorsettings.html#cfn-medialive-channel-audioselectorsettings-audiopidselection AudioPidSelection *Channel_AudioPidSelection `json:"AudioPidSelection,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_AudioSelectorSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.AudioSelectorSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioSelectorSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_AudioSelectorSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioSelectorSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_AudioSelectorSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioSelectorSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_AudioSelectorSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_captionselector.go b/cloudformation/medialive/aws-medialive-channel_captionselector.go index 71317f0401..dfe9e0e982 100644 --- a/cloudformation/medialive/aws-medialive-channel_captionselector.go +++ b/cloudformation/medialive/aws-medialive-channel_captionselector.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_CaptionSelector AWS CloudFormation Resource (AWS::MediaLive::Channel.CaptionSelector) @@ -23,53 +23,17 @@ type Channel_CaptionSelector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-captionselector.html#cfn-medialive-channel-captionselector-selectorsettings SelectorSettings *Channel_CaptionSelectorSettings `json:"SelectorSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_CaptionSelector) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.CaptionSelector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_CaptionSelector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_CaptionSelector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_CaptionSelector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_CaptionSelector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_CaptionSelector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_CaptionSelector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go b/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go index c4aeffbda5..d138cb6469 100644 --- a/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_CaptionSelectorSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.CaptionSelectorSettings) @@ -38,53 +38,17 @@ type Channel_CaptionSelectorSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-captionselectorsettings.html#cfn-medialive-channel-captionselectorsettings-teletextsourcesettings TeletextSourceSettings *Channel_TeletextSourceSettings `json:"TeletextSourceSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_CaptionSelectorSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.CaptionSelectorSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_CaptionSelectorSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_CaptionSelectorSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_CaptionSelectorSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_CaptionSelectorSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_CaptionSelectorSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_CaptionSelectorSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go index 4c5adaa8e6..b164861c49 100644 --- a/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_DvbSubSourceSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.DvbSubSourceSettings) @@ -13,53 +13,17 @@ type Channel_DvbSubSourceSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-dvbsubsourcesettings.html#cfn-medialive-channel-dvbsubsourcesettings-pid Pid int `json:"Pid,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_DvbSubSourceSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.DvbSubSourceSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_DvbSubSourceSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_DvbSubSourceSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_DvbSubSourceSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_DvbSubSourceSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_DvbSubSourceSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_DvbSubSourceSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go index 1256c49482..3300fa9f3b 100644 --- a/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_EmbeddedSourceSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.EmbeddedSourceSettings) @@ -28,53 +28,17 @@ type Channel_EmbeddedSourceSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-embeddedsourcesettings.html#cfn-medialive-channel-embeddedsourcesettings-source608tracknumber Source608TrackNumber int `json:"Source608TrackNumber,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_EmbeddedSourceSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.EmbeddedSourceSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_EmbeddedSourceSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_EmbeddedSourceSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_EmbeddedSourceSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_EmbeddedSourceSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_EmbeddedSourceSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_EmbeddedSourceSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go b/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go index 8b6e402d1e..a6e540558a 100644 --- a/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_HlsInputSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.HlsInputSettings) @@ -28,53 +28,17 @@ type Channel_HlsInputSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-hlsinputsettings.html#cfn-medialive-channel-hlsinputsettings-retryinterval RetryInterval int `json:"RetryInterval,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_HlsInputSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.HlsInputSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_HlsInputSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_HlsInputSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_HlsInputSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_HlsInputSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_HlsInputSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_HlsInputSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_inputattachment.go b/cloudformation/medialive/aws-medialive-channel_inputattachment.go index ac7386d92c..c5bcc5c6fe 100644 --- a/cloudformation/medialive/aws-medialive-channel_inputattachment.go +++ b/cloudformation/medialive/aws-medialive-channel_inputattachment.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_InputAttachment AWS CloudFormation Resource (AWS::MediaLive::Channel.InputAttachment) @@ -23,53 +23,17 @@ type Channel_InputAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputattachment.html#cfn-medialive-channel-inputattachment-inputsettings InputSettings *Channel_InputSettings `json:"InputSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_InputAttachment) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.InputAttachment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_InputAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_InputAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_InputAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_InputAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_InputAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_InputAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_inputsettings.go b/cloudformation/medialive/aws-medialive-channel_inputsettings.go index caea05cbe4..55e6147f0d 100644 --- a/cloudformation/medialive/aws-medialive-channel_inputsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_inputsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_InputSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.InputSettings) @@ -53,53 +53,17 @@ type Channel_InputSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputsettings.html#cfn-medialive-channel-inputsettings-videoselector VideoSelector *Channel_VideoSelector `json:"VideoSelector,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_InputSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.InputSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_InputSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_InputSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_InputSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_InputSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_InputSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_InputSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_inputspecification.go b/cloudformation/medialive/aws-medialive-channel_inputspecification.go index a2bf46e6ae..3cd5959a86 100644 --- a/cloudformation/medialive/aws-medialive-channel_inputspecification.go +++ b/cloudformation/medialive/aws-medialive-channel_inputspecification.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_InputSpecification AWS CloudFormation Resource (AWS::MediaLive::Channel.InputSpecification) @@ -23,53 +23,17 @@ type Channel_InputSpecification struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputspecification.html#cfn-medialive-channel-inputspecification-resolution Resolution string `json:"Resolution,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_InputSpecification) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.InputSpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_InputSpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_InputSpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_InputSpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_InputSpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_InputSpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_InputSpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go b/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go index f159a140f2..3fd413e11d 100644 --- a/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_MediaPackageOutputDestinationSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.MediaPackageOutputDestinationSettings) @@ -13,53 +13,17 @@ type Channel_MediaPackageOutputDestinationSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-mediapackageoutputdestinationsettings.html#cfn-medialive-channel-mediapackageoutputdestinationsettings-channelid ChannelId string `json:"ChannelId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_MediaPackageOutputDestinationSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.MediaPackageOutputDestinationSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_MediaPackageOutputDestinationSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_MediaPackageOutputDestinationSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_MediaPackageOutputDestinationSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_MediaPackageOutputDestinationSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_MediaPackageOutputDestinationSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_MediaPackageOutputDestinationSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go b/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go index d3917ce52b..336cdb8f8e 100644 --- a/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_NetworkInputSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.NetworkInputSettings) @@ -18,53 +18,17 @@ type Channel_NetworkInputSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-networkinputsettings.html#cfn-medialive-channel-networkinputsettings-servervalidation ServerValidation string `json:"ServerValidation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_NetworkInputSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.NetworkInputSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_NetworkInputSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_NetworkInputSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_NetworkInputSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_NetworkInputSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_NetworkInputSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_NetworkInputSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_outputdestination.go b/cloudformation/medialive/aws-medialive-channel_outputdestination.go index ba8f68a243..f32a83f8c6 100644 --- a/cloudformation/medialive/aws-medialive-channel_outputdestination.go +++ b/cloudformation/medialive/aws-medialive-channel_outputdestination.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_OutputDestination AWS CloudFormation Resource (AWS::MediaLive::Channel.OutputDestination) @@ -23,53 +23,17 @@ type Channel_OutputDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestination.html#cfn-medialive-channel-outputdestination-settings Settings []Channel_OutputDestinationSettings `json:"Settings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_OutputDestination) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.OutputDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_OutputDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_OutputDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_OutputDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_OutputDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_OutputDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_OutputDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go b/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go index 9bcc33090a..6936655048 100644 --- a/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_OutputDestinationSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.OutputDestinationSettings) @@ -28,53 +28,17 @@ type Channel_OutputDestinationSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_OutputDestinationSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.OutputDestinationSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_OutputDestinationSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_OutputDestinationSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_OutputDestinationSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_OutputDestinationSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_OutputDestinationSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_OutputDestinationSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go b/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go index ebe354dd3e..e096667e83 100644 --- a/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_Scte20SourceSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.Scte20SourceSettings) @@ -18,53 +18,17 @@ type Channel_Scte20SourceSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-scte20sourcesettings.html#cfn-medialive-channel-scte20sourcesettings-source608channelnumber Source608ChannelNumber int `json:"Source608ChannelNumber,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_Scte20SourceSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.Scte20SourceSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_Scte20SourceSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_Scte20SourceSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_Scte20SourceSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_Scte20SourceSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_Scte20SourceSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_Scte20SourceSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go b/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go index 395e437af5..1dd8f3f2de 100644 --- a/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_Scte27SourceSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.Scte27SourceSettings) @@ -13,53 +13,17 @@ type Channel_Scte27SourceSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-scte27sourcesettings.html#cfn-medialive-channel-scte27sourcesettings-pid Pid int `json:"Pid,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_Scte27SourceSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.Scte27SourceSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_Scte27SourceSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_Scte27SourceSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_Scte27SourceSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_Scte27SourceSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_Scte27SourceSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_Scte27SourceSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go index 8d56b3b704..ccc5626cb0 100644 --- a/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_TeletextSourceSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.TeletextSourceSettings) @@ -13,53 +13,17 @@ type Channel_TeletextSourceSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-teletextsourcesettings.html#cfn-medialive-channel-teletextsourcesettings-pagenumber PageNumber string `json:"PageNumber,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_TeletextSourceSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.TeletextSourceSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_TeletextSourceSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_TeletextSourceSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_TeletextSourceSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_TeletextSourceSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_TeletextSourceSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_TeletextSourceSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_videoselector.go b/cloudformation/medialive/aws-medialive-channel_videoselector.go index 91263bc887..1db8006cb4 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselector.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselector.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_VideoSelector AWS CloudFormation Resource (AWS::MediaLive::Channel.VideoSelector) @@ -23,53 +23,17 @@ type Channel_VideoSelector struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-videoselector.html#cfn-medialive-channel-videoselector-selectorsettings SelectorSettings *Channel_VideoSelectorSettings `json:"SelectorSettings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_VideoSelector) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.VideoSelector" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelector) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelector) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelector) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelector) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelector) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelector) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go b/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go index 6970cff46a..1f079c318f 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_VideoSelectorPid AWS CloudFormation Resource (AWS::MediaLive::Channel.VideoSelectorPid) @@ -13,53 +13,17 @@ type Channel_VideoSelectorPid struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-videoselectorpid.html#cfn-medialive-channel-videoselectorpid-pid Pid int `json:"Pid,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_VideoSelectorPid) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.VideoSelectorPid" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelectorPid) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelectorPid) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelectorPid) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelectorPid) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelectorPid) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelectorPid) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go b/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go index 59c1ff1f1c..6733524f07 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_VideoSelectorProgramId AWS CloudFormation Resource (AWS::MediaLive::Channel.VideoSelectorProgramId) @@ -13,53 +13,17 @@ type Channel_VideoSelectorProgramId struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-videoselectorprogramid.html#cfn-medialive-channel-videoselectorprogramid-programid ProgramId int `json:"ProgramId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_VideoSelectorProgramId) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.VideoSelectorProgramId" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelectorProgramId) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelectorProgramId) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelectorProgramId) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelectorProgramId) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelectorProgramId) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelectorProgramId) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go b/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go index f46c1db983..ef81492bae 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Channel_VideoSelectorSettings AWS CloudFormation Resource (AWS::MediaLive::Channel.VideoSelectorSettings) @@ -18,53 +18,17 @@ type Channel_VideoSelectorSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-videoselectorsettings.html#cfn-medialive-channel-videoselectorsettings-videoselectorprogramid VideoSelectorProgramId *Channel_VideoSelectorProgramId `json:"VideoSelectorProgramId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Channel_VideoSelectorSettings) AWSCloudFormationType() string { return "AWS::MediaLive::Channel.VideoSelectorSettings" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelectorSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Channel_VideoSelectorSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelectorSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Channel_VideoSelectorSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelectorSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Channel_VideoSelectorSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-input.go b/cloudformation/medialive/aws-medialive-input.go index 052413f87d..22cfa84732 100644 --- a/cloudformation/medialive/aws-medialive-input.go +++ b/cloudformation/medialive/aws-medialive-input.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input AWS CloudFormation Resource (AWS::MediaLive::Input) @@ -57,14 +57,14 @@ type Input struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-input.html#cfn-medialive-input-vpc Vpc *Input_InputVpcRequest `json:"Vpc,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *Input) AWSCloudFormationType() string { return "AWS::MediaLive::Input" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Input) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r Input) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *Input) UnmarshalJSON(b []byte) error { *r = Input(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go b/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go index ab477bf04a..c5a2c992b3 100644 --- a/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go +++ b/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input_InputDestinationRequest AWS CloudFormation Resource (AWS::MediaLive::Input.InputDestinationRequest) @@ -13,53 +13,17 @@ type Input_InputDestinationRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputdestinationrequest.html#cfn-medialive-input-inputdestinationrequest-streamname StreamName string `json:"StreamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Input_InputDestinationRequest) AWSCloudFormationType() string { return "AWS::MediaLive::Input.InputDestinationRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputDestinationRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputDestinationRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputDestinationRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputDestinationRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputDestinationRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputDestinationRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go b/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go index 69ae17d227..0fa6ae7d23 100644 --- a/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go +++ b/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input_InputSourceRequest AWS CloudFormation Resource (AWS::MediaLive::Input.InputSourceRequest) @@ -23,53 +23,17 @@ type Input_InputSourceRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputsourcerequest.html#cfn-medialive-input-inputsourcerequest-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Input_InputSourceRequest) AWSCloudFormationType() string { return "AWS::MediaLive::Input.InputSourceRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputSourceRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputSourceRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputSourceRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputSourceRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputSourceRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputSourceRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go b/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go index 316a5d0d91..71d03817e0 100644 --- a/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go +++ b/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input_InputVpcRequest AWS CloudFormation Resource (AWS::MediaLive::Input.InputVpcRequest) @@ -18,53 +18,17 @@ type Input_InputVpcRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputvpcrequest.html#cfn-medialive-input-inputvpcrequest-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Input_InputVpcRequest) AWSCloudFormationType() string { return "AWS::MediaLive::Input.InputVpcRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputVpcRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_InputVpcRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputVpcRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_InputVpcRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputVpcRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_InputVpcRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go b/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go index 4e38546736..722de5d8fe 100644 --- a/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go +++ b/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Input_MediaConnectFlowRequest AWS CloudFormation Resource (AWS::MediaLive::Input.MediaConnectFlowRequest) @@ -13,53 +13,17 @@ type Input_MediaConnectFlowRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-mediaconnectflowrequest.html#cfn-medialive-input-mediaconnectflowrequest-flowarn FlowArn string `json:"FlowArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Input_MediaConnectFlowRequest) AWSCloudFormationType() string { return "AWS::MediaLive::Input.MediaConnectFlowRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_MediaConnectFlowRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Input_MediaConnectFlowRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_MediaConnectFlowRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Input_MediaConnectFlowRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_MediaConnectFlowRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Input_MediaConnectFlowRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/medialive/aws-medialive-inputsecuritygroup.go b/cloudformation/medialive/aws-medialive-inputsecuritygroup.go index 7703b9ee16..ce28d3fa9c 100644 --- a/cloudformation/medialive/aws-medialive-inputsecuritygroup.go +++ b/cloudformation/medialive/aws-medialive-inputsecuritygroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InputSecurityGroup AWS CloudFormation Resource (AWS::MediaLive::InputSecurityGroup) @@ -22,14 +22,14 @@ type InputSecurityGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-medialive-inputsecuritygroup.html#cfn-medialive-inputsecuritygroup-whitelistrules WhitelistRules []InputSecurityGroup_InputWhitelistRuleCidr `json:"WhitelistRules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *InputSecurityGroup) AWSCloudFormationType() string { return "AWS::MediaLive::InputSecurityGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InputSecurityGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InputSecurityGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InputSecurityGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InputSecurityGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InputSecurityGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InputSecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 InputSecurityGroup) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r InputSecurityGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *InputSecurityGroup) UnmarshalJSON(b []byte) error { *r = InputSecurityGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go b/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go index 9f5d013fa3..ee69483b3c 100644 --- a/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go +++ b/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go @@ -1,7 +1,7 @@ package medialive import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // InputSecurityGroup_InputWhitelistRuleCidr AWS CloudFormation Resource (AWS::MediaLive::InputSecurityGroup.InputWhitelistRuleCidr) @@ -13,53 +13,17 @@ type InputSecurityGroup_InputWhitelistRuleCidr struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-inputsecuritygroup-inputwhitelistrulecidr.html#cfn-medialive-inputsecuritygroup-inputwhitelistrulecidr-cidr Cidr string `json:"Cidr,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *InputSecurityGroup_InputWhitelistRuleCidr) AWSCloudFormationType() string { return "AWS::MediaLive::InputSecurityGroup.InputWhitelistRuleCidr" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InputSecurityGroup_InputWhitelistRuleCidr) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *InputSecurityGroup_InputWhitelistRuleCidr) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InputSecurityGroup_InputWhitelistRuleCidr) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *InputSecurityGroup_InputWhitelistRuleCidr) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InputSecurityGroup_InputWhitelistRuleCidr) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *InputSecurityGroup_InputWhitelistRuleCidr) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/mediastore/aws-mediastore-container.go b/cloudformation/mediastore/aws-mediastore-container.go index e2e96ac157..3001efb16c 100644 --- a/cloudformation/mediastore/aws-mediastore-container.go +++ b/cloudformation/mediastore/aws-mediastore-container.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Container AWS CloudFormation Resource (AWS::MediaStore::Container) @@ -37,14 +37,14 @@ type Container struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html#cfn-mediastore-container-policy Policy string `json:"Policy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Container) AWSCloudFormationType() string { return "AWS::MediaStore::Container" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Container) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Container) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Container) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Container) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Container) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Container) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Container) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Container) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Container) UnmarshalJSON(b []byte) error { *r = Container(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/mediastore/aws-mediastore-container_corsrule.go b/cloudformation/mediastore/aws-mediastore-container_corsrule.go index 5e3b4dff95..3bfa37ea4f 100644 --- a/cloudformation/mediastore/aws-mediastore-container_corsrule.go +++ b/cloudformation/mediastore/aws-mediastore-container_corsrule.go @@ -1,7 +1,7 @@ package mediastore import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Container_CorsRule AWS CloudFormation Resource (AWS::MediaStore::Container.CorsRule) @@ -33,53 +33,17 @@ type Container_CorsRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediastore-container-corsrule.html#cfn-mediastore-container-corsrule-maxageseconds MaxAgeSeconds int `json:"MaxAgeSeconds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Container_CorsRule) AWSCloudFormationType() string { return "AWS::MediaStore::Container.CorsRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Container_CorsRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Container_CorsRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Container_CorsRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Container_CorsRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Container_CorsRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Container_CorsRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster.go b/cloudformation/msk/aws-msk-cluster.go index ea1e00f248..2137a2547b 100644 --- a/cloudformation/msk/aws-msk-cluster.go +++ b/cloudformation/msk/aws-msk-cluster.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster AWS CloudFormation Resource (AWS::MSK::Cluster) @@ -57,14 +57,14 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *Cluster) AWSCloudFormationType() string { return "AWS::MSK::Cluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Cluster) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r Cluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { *r = Cluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go b/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go index d565bd91e4..59a60515a4 100644 --- a/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go +++ b/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_BrokerNodeGroupInfo AWS CloudFormation Resource (AWS::MSK::Cluster.BrokerNodeGroupInfo) @@ -33,53 +33,17 @@ type Cluster_BrokerNodeGroupInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-storageinfo StorageInfo *Cluster_StorageInfo `json:"StorageInfo,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_BrokerNodeGroupInfo) AWSCloudFormationType() string { return "AWS::MSK::Cluster.BrokerNodeGroupInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_BrokerNodeGroupInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_BrokerNodeGroupInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_BrokerNodeGroupInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_BrokerNodeGroupInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_BrokerNodeGroupInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_BrokerNodeGroupInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_clientauthentication.go b/cloudformation/msk/aws-msk-cluster_clientauthentication.go index 18d6762556..5c3643d945 100644 --- a/cloudformation/msk/aws-msk-cluster_clientauthentication.go +++ b/cloudformation/msk/aws-msk-cluster_clientauthentication.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ClientAuthentication AWS CloudFormation Resource (AWS::MSK::Cluster.ClientAuthentication) @@ -13,53 +13,17 @@ type Cluster_ClientAuthentication struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-clientauthentication.html#cfn-msk-cluster-clientauthentication-tls Tls *Cluster_Tls `json:"Tls,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ClientAuthentication) AWSCloudFormationType() string { return "AWS::MSK::Cluster.ClientAuthentication" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ClientAuthentication) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ClientAuthentication) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ClientAuthentication) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ClientAuthentication) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ClientAuthentication) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ClientAuthentication) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_configurationinfo.go b/cloudformation/msk/aws-msk-cluster_configurationinfo.go index 6dadc1d96c..2b76f9d68a 100644 --- a/cloudformation/msk/aws-msk-cluster_configurationinfo.go +++ b/cloudformation/msk/aws-msk-cluster_configurationinfo.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_ConfigurationInfo AWS CloudFormation Resource (AWS::MSK::Cluster.ConfigurationInfo) @@ -18,53 +18,17 @@ type Cluster_ConfigurationInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-configurationinfo.html#cfn-msk-cluster-configurationinfo-revision Revision int `json:"Revision"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_ConfigurationInfo) AWSCloudFormationType() string { return "AWS::MSK::Cluster.ConfigurationInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ConfigurationInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_ConfigurationInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ConfigurationInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_ConfigurationInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ConfigurationInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_ConfigurationInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go b/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go index c2ea66efc8..bef0988dfa 100644 --- a/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go +++ b/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_EBSStorageInfo AWS CloudFormation Resource (AWS::MSK::Cluster.EBSStorageInfo) @@ -13,53 +13,17 @@ type Cluster_EBSStorageInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-ebsstorageinfo.html#cfn-msk-cluster-ebsstorageinfo-volumesize VolumeSize int `json:"VolumeSize,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_EBSStorageInfo) AWSCloudFormationType() string { return "AWS::MSK::Cluster.EBSStorageInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EBSStorageInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EBSStorageInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EBSStorageInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EBSStorageInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EBSStorageInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EBSStorageInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_encryptionatrest.go b/cloudformation/msk/aws-msk-cluster_encryptionatrest.go index 458db53479..b08edc099d 100644 --- a/cloudformation/msk/aws-msk-cluster_encryptionatrest.go +++ b/cloudformation/msk/aws-msk-cluster_encryptionatrest.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_EncryptionAtRest AWS CloudFormation Resource (AWS::MSK::Cluster.EncryptionAtRest) @@ -13,53 +13,17 @@ type Cluster_EncryptionAtRest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionatrest.html#cfn-msk-cluster-encryptionatrest-datavolumekmskeyid DataVolumeKMSKeyId string `json:"DataVolumeKMSKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_EncryptionAtRest) AWSCloudFormationType() string { return "AWS::MSK::Cluster.EncryptionAtRest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EncryptionAtRest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EncryptionAtRest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EncryptionAtRest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EncryptionAtRest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EncryptionAtRest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EncryptionAtRest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_encryptioninfo.go b/cloudformation/msk/aws-msk-cluster_encryptioninfo.go index 294a4099a2..c2e143941f 100644 --- a/cloudformation/msk/aws-msk-cluster_encryptioninfo.go +++ b/cloudformation/msk/aws-msk-cluster_encryptioninfo.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_EncryptionInfo AWS CloudFormation Resource (AWS::MSK::Cluster.EncryptionInfo) @@ -18,53 +18,17 @@ type Cluster_EncryptionInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptioninfo.html#cfn-msk-cluster-encryptioninfo-encryptionintransit EncryptionInTransit *Cluster_EncryptionInTransit `json:"EncryptionInTransit,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_EncryptionInfo) AWSCloudFormationType() string { return "AWS::MSK::Cluster.EncryptionInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EncryptionInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EncryptionInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EncryptionInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EncryptionInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EncryptionInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EncryptionInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_encryptionintransit.go b/cloudformation/msk/aws-msk-cluster_encryptionintransit.go index 90ccdebf80..0e31d2b934 100644 --- a/cloudformation/msk/aws-msk-cluster_encryptionintransit.go +++ b/cloudformation/msk/aws-msk-cluster_encryptionintransit.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_EncryptionInTransit AWS CloudFormation Resource (AWS::MSK::Cluster.EncryptionInTransit) @@ -18,53 +18,17 @@ type Cluster_EncryptionInTransit struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-encryptionintransit.html#cfn-msk-cluster-encryptionintransit-incluster InCluster bool `json:"InCluster,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_EncryptionInTransit) AWSCloudFormationType() string { return "AWS::MSK::Cluster.EncryptionInTransit" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EncryptionInTransit) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_EncryptionInTransit) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EncryptionInTransit) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_EncryptionInTransit) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EncryptionInTransit) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_EncryptionInTransit) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_storageinfo.go b/cloudformation/msk/aws-msk-cluster_storageinfo.go index 72452c18d3..63bcd1b181 100644 --- a/cloudformation/msk/aws-msk-cluster_storageinfo.go +++ b/cloudformation/msk/aws-msk-cluster_storageinfo.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_StorageInfo AWS CloudFormation Resource (AWS::MSK::Cluster.StorageInfo) @@ -13,53 +13,17 @@ type Cluster_StorageInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-storageinfo.html#cfn-msk-cluster-storageinfo-ebsstorageinfo EBSStorageInfo *Cluster_EBSStorageInfo `json:"EBSStorageInfo,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_StorageInfo) AWSCloudFormationType() string { return "AWS::MSK::Cluster.StorageInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_StorageInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_StorageInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_StorageInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_StorageInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_StorageInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_StorageInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/msk/aws-msk-cluster_tls.go b/cloudformation/msk/aws-msk-cluster_tls.go index 01f4773d66..1d4d2addeb 100644 --- a/cloudformation/msk/aws-msk-cluster_tls.go +++ b/cloudformation/msk/aws-msk-cluster_tls.go @@ -1,7 +1,7 @@ package msk import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_Tls AWS CloudFormation Resource (AWS::MSK::Cluster.Tls) @@ -13,53 +13,17 @@ type Cluster_Tls struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-tls.html#cfn-msk-cluster-tls-certificateauthorityarnlist CertificateAuthorityArnList []string `json:"CertificateAuthorityArnList,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_Tls) AWSCloudFormationType() string { return "AWS::MSK::Cluster.Tls" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_Tls) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_Tls) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_Tls) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_Tls) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_Tls) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_Tls) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/neptune/aws-neptune-dbcluster.go b/cloudformation/neptune/aws-neptune-dbcluster.go index df8751e815..07987cef31 100644 --- a/cloudformation/neptune/aws-neptune-dbcluster.go +++ b/cloudformation/neptune/aws-neptune-dbcluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBCluster AWS CloudFormation Resource (AWS::Neptune::DBCluster) @@ -88,14 +88,14 @@ type DBCluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html#cfn-neptune-dbcluster-vpcsecuritygroupids VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -103,42 +103,6 @@ func (r *DBCluster) AWSCloudFormationType() string { return "AWS::Neptune::DBCluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBCluster) MarshalJSON() ([]byte, error) { @@ -152,9 +116,9 @@ func (r DBCluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -183,13 +147,13 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { *r = DBCluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go b/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go index f2d7b8b538..295e60d8f6 100644 --- a/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go +++ b/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBClusterParameterGroup AWS CloudFormation Resource (AWS::Neptune::DBClusterParameterGroup) @@ -38,14 +38,14 @@ type DBClusterParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbclusterparametergroup.html#cfn-neptune-dbclusterparametergroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *DBClusterParameterGroup) AWSCloudFormationType() string { return "AWS::Neptune::DBClusterParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBClusterParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBClusterParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBClusterParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBClusterParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBClusterParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBClusterParameterGroup) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r DBClusterParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { *r = DBClusterParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbinstance.go b/cloudformation/neptune/aws-neptune-dbinstance.go index 2479d3483c..039cd35b82 100644 --- a/cloudformation/neptune/aws-neptune-dbinstance.go +++ b/cloudformation/neptune/aws-neptune-dbinstance.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBInstance AWS CloudFormation Resource (AWS::Neptune::DBInstance) @@ -68,14 +68,14 @@ type DBInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbinstance.html#cfn-neptune-dbinstance-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +83,6 @@ func (r *DBInstance) AWSCloudFormationType() string { return "AWS::Neptune::DBInstance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBInstance) MarshalJSON() ([]byte, error) { @@ -132,9 +96,9 @@ func (r DBInstance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +127,13 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { *r = DBInstance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbparametergroup.go b/cloudformation/neptune/aws-neptune-dbparametergroup.go index 795bbe4bbd..23c3e5f063 100644 --- a/cloudformation/neptune/aws-neptune-dbparametergroup.go +++ b/cloudformation/neptune/aws-neptune-dbparametergroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBParameterGroup AWS CloudFormation Resource (AWS::Neptune::DBParameterGroup) @@ -38,14 +38,14 @@ type DBParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbparametergroup.html#cfn-neptune-dbparametergroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *DBParameterGroup) AWSCloudFormationType() string { return "AWS::Neptune::DBParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBParameterGroup) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r DBParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *DBParameterGroup) UnmarshalJSON(b []byte) error { *r = DBParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbsubnetgroup.go b/cloudformation/neptune/aws-neptune-dbsubnetgroup.go index 6c6e9cf889..3f0b63355f 100644 --- a/cloudformation/neptune/aws-neptune-dbsubnetgroup.go +++ b/cloudformation/neptune/aws-neptune-dbsubnetgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBSubnetGroup AWS CloudFormation Resource (AWS::Neptune::DBSubnetGroup) @@ -33,14 +33,14 @@ type DBSubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbsubnetgroup.html#cfn-neptune-dbsubnetgroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *DBSubnetGroup) AWSCloudFormationType() string { return "AWS::Neptune::DBSubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBSubnetGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r DBSubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { *r = DBSubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-app.go b/cloudformation/opsworks/aws-opsworks-app.go index 9427dfd5a8..2afa96bbcc 100644 --- a/cloudformation/opsworks/aws-opsworks-app.go +++ b/cloudformation/opsworks/aws-opsworks-app.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App AWS CloudFormation Resource (AWS::OpsWorks::App) @@ -72,14 +72,14 @@ type App struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html#cfn-opsworks-app-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -87,42 +87,6 @@ func (r *App) AWSCloudFormationType() string { return "AWS::OpsWorks::App" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 App) MarshalJSON() ([]byte, error) { @@ -136,9 +100,9 @@ func (r App) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -167,13 +131,13 @@ func (r *App) UnmarshalJSON(b []byte) error { *r = App(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-app_datasource.go b/cloudformation/opsworks/aws-opsworks-app_datasource.go index 256dcc8ce2..da62430894 100644 --- a/cloudformation/opsworks/aws-opsworks-app_datasource.go +++ b/cloudformation/opsworks/aws-opsworks-app_datasource.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_DataSource AWS CloudFormation Resource (AWS::OpsWorks::App.DataSource) @@ -23,53 +23,17 @@ type App_DataSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html#cfn-opsworks-app-datasource-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_DataSource) AWSCloudFormationType() string { return "AWS::OpsWorks::App.DataSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_DataSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_DataSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_DataSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_DataSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_DataSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_DataSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go b/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go index 6646752cd0..db81a9d37b 100644 --- a/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go +++ b/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_EnvironmentVariable AWS CloudFormation Resource (AWS::OpsWorks::App.EnvironmentVariable) @@ -23,53 +23,17 @@ type App_EnvironmentVariable struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-environment.html#value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_EnvironmentVariable) AWSCloudFormationType() string { return "AWS::OpsWorks::App.EnvironmentVariable" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_EnvironmentVariable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_EnvironmentVariable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_EnvironmentVariable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_EnvironmentVariable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_EnvironmentVariable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_EnvironmentVariable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-app_source.go b/cloudformation/opsworks/aws-opsworks-app_source.go index b240e748f4..0df7c4d1d6 100644 --- a/cloudformation/opsworks/aws-opsworks-app_source.go +++ b/cloudformation/opsworks/aws-opsworks-app_source.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_Source AWS CloudFormation Resource (AWS::OpsWorks::App.Source) @@ -38,53 +38,17 @@ type App_Source struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_Source) AWSCloudFormationType() string { return "AWS::OpsWorks::App.Source" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_Source) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_Source) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_Source) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_Source) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_Source) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go b/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go index 090fbf53df..48768e4cd6 100644 --- a/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App_SslConfiguration AWS CloudFormation Resource (AWS::OpsWorks::App.SslConfiguration) @@ -23,53 +23,17 @@ type App_SslConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-sslconfiguration.html#cfn-opsworks-app-sslconfig-privatekey PrivateKey string `json:"PrivateKey,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *App_SslConfiguration) AWSCloudFormationType() string { return "AWS::OpsWorks::App.SslConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_SslConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App_SslConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_SslConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App_SslConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_SslConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App_SslConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go b/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go index 461973af1c..cb991e9816 100644 --- a/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go +++ b/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ElasticLoadBalancerAttachment AWS CloudFormation Resource (AWS::OpsWorks::ElasticLoadBalancerAttachment) @@ -22,14 +22,14 @@ type ElasticLoadBalancerAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html#cfn-opsworks-elbattachment-layerid LayerId string `json:"LayerId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ElasticLoadBalancerAttachment) AWSCloudFormationType() string { return "AWS::OpsWorks::ElasticLoadBalancerAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ElasticLoadBalancerAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ElasticLoadBalancerAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ElasticLoadBalancerAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ElasticLoadBalancerAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ElasticLoadBalancerAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ElasticLoadBalancerAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ElasticLoadBalancerAttachment) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ElasticLoadBalancerAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ElasticLoadBalancerAttachment) UnmarshalJSON(b []byte) error { *r = ElasticLoadBalancerAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-instance.go b/cloudformation/opsworks/aws-opsworks-instance.go index cc8feb3c33..0907907817 100644 --- a/cloudformation/opsworks/aws-opsworks-instance.go +++ b/cloudformation/opsworks/aws-opsworks-instance.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance AWS CloudFormation Resource (AWS::OpsWorks::Instance) @@ -117,14 +117,14 @@ type Instance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.html#cfn-opsworks-instance-volumes Volumes []string `json:"Volumes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -132,42 +132,6 @@ func (r *Instance) AWSCloudFormationType() string { return "AWS::OpsWorks::Instance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Instance) MarshalJSON() ([]byte, error) { @@ -181,9 +145,9 @@ func (r Instance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -212,13 +176,13 @@ func (r *Instance) UnmarshalJSON(b []byte) error { *r = Instance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go b/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go index 43f4ac2305..f94954a718 100644 --- a/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go +++ b/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_BlockDeviceMapping AWS CloudFormation Resource (AWS::OpsWorks::Instance.BlockDeviceMapping) @@ -28,53 +28,17 @@ type Instance_BlockDeviceMapping struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-blockdevicemapping.html#cfn-opsworks-instance-blockdevicemapping-virtualname VirtualName string `json:"VirtualName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_BlockDeviceMapping) AWSCloudFormationType() string { return "AWS::OpsWorks::Instance.BlockDeviceMapping" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_BlockDeviceMapping) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_BlockDeviceMapping) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_BlockDeviceMapping) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_BlockDeviceMapping) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_BlockDeviceMapping) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_BlockDeviceMapping) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go b/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go index 51e0c22abc..dca840c987 100644 --- a/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go +++ b/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_EbsBlockDevice AWS CloudFormation Resource (AWS::OpsWorks::Instance.EbsBlockDevice) @@ -33,53 +33,17 @@ type Instance_EbsBlockDevice struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-ebsblockdevice.html#cfn-opsworks-instance-ebsblockdevice-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_EbsBlockDevice) AWSCloudFormationType() string { return "AWS::OpsWorks::Instance.EbsBlockDevice" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_EbsBlockDevice) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_EbsBlockDevice) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_EbsBlockDevice) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_EbsBlockDevice) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_EbsBlockDevice) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_EbsBlockDevice) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go b/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go index e78c794dad..f6da02fb80 100644 --- a/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go +++ b/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance_TimeBasedAutoScaling AWS CloudFormation Resource (AWS::OpsWorks::Instance.TimeBasedAutoScaling) @@ -43,53 +43,17 @@ type Instance_TimeBasedAutoScaling struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-instance-timebasedautoscaling.html#cfn-opsworks-instance-timebasedautoscaling-wednesday Wednesday map[string]string `json:"Wednesday,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Instance_TimeBasedAutoScaling) AWSCloudFormationType() string { return "AWS::OpsWorks::Instance.TimeBasedAutoScaling" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_TimeBasedAutoScaling) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance_TimeBasedAutoScaling) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_TimeBasedAutoScaling) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance_TimeBasedAutoScaling) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_TimeBasedAutoScaling) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance_TimeBasedAutoScaling) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-layer.go b/cloudformation/opsworks/aws-opsworks-layer.go index 76bfdadf0e..c772d1979a 100644 --- a/cloudformation/opsworks/aws-opsworks-layer.go +++ b/cloudformation/opsworks/aws-opsworks-layer.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Layer AWS CloudFormation Resource (AWS::OpsWorks::Layer) @@ -108,14 +108,14 @@ type Layer struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-volumeconfigurations VolumeConfigurations []Layer_VolumeConfiguration `json:"VolumeConfigurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -123,42 +123,6 @@ func (r *Layer) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Layer) MarshalJSON() ([]byte, error) { @@ -172,9 +136,9 @@ func (r Layer) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -203,13 +167,13 @@ func (r *Layer) UnmarshalJSON(b []byte) error { *r = Layer(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go b/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go index ae50c59779..3540cf0bb9 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go +++ b/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Layer_AutoScalingThresholds AWS CloudFormation Resource (AWS::OpsWorks::Layer.AutoScalingThresholds) @@ -38,53 +38,17 @@ type Layer_AutoScalingThresholds struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling-autoscalingthresholds.html#cfn-opsworks-layer-loadbasedautoscaling-autoscalingthresholds-thresholdwaittime ThresholdsWaitTime int `json:"ThresholdsWaitTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Layer_AutoScalingThresholds) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer.AutoScalingThresholds" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_AutoScalingThresholds) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_AutoScalingThresholds) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_AutoScalingThresholds) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_AutoScalingThresholds) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_AutoScalingThresholds) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_AutoScalingThresholds) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go b/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go index aa69bd1309..175d5bdb75 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Layer_LifecycleEventConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Layer.LifecycleEventConfiguration) @@ -13,53 +13,17 @@ type Layer_LifecycleEventConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration.html#cfn-opsworks-layer-lifecycleconfiguration-shutdowneventconfiguration ShutdownEventConfiguration *Layer_ShutdownEventConfiguration `json:"ShutdownEventConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Layer_LifecycleEventConfiguration) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer.LifecycleEventConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_LifecycleEventConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_LifecycleEventConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_LifecycleEventConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_LifecycleEventConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_LifecycleEventConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_LifecycleEventConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go b/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go index a791b7c303..333838d968 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go +++ b/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Layer_LoadBasedAutoScaling AWS CloudFormation Resource (AWS::OpsWorks::Layer.LoadBasedAutoScaling) @@ -23,53 +23,17 @@ type Layer_LoadBasedAutoScaling struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-loadbasedautoscaling.html#cfn-opsworks-layer-loadbasedautoscaling-upscaling UpScaling *Layer_AutoScalingThresholds `json:"UpScaling,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Layer_LoadBasedAutoScaling) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer.LoadBasedAutoScaling" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_LoadBasedAutoScaling) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_LoadBasedAutoScaling) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_LoadBasedAutoScaling) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_LoadBasedAutoScaling) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_LoadBasedAutoScaling) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_LoadBasedAutoScaling) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-layer_recipes.go b/cloudformation/opsworks/aws-opsworks-layer_recipes.go index 6ebea2d211..32070b990a 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_recipes.go +++ b/cloudformation/opsworks/aws-opsworks-layer_recipes.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Layer_Recipes AWS CloudFormation Resource (AWS::OpsWorks::Layer.Recipes) @@ -33,53 +33,17 @@ type Layer_Recipes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-recipes.html#cfn-opsworks-layer-customrecipes-undeploy Undeploy []string `json:"Undeploy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Layer_Recipes) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer.Recipes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_Recipes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_Recipes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_Recipes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_Recipes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_Recipes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_Recipes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go b/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go index f7164e1cef..ef14f14c83 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Layer_ShutdownEventConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Layer.ShutdownEventConfiguration) @@ -18,53 +18,17 @@ type Layer_ShutdownEventConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-lifecycleeventconfiguration-shutdowneventconfiguration.html#cfn-opsworks-layer-lifecycleconfiguration-shutdowneventconfiguration-executiontimeout ExecutionTimeout int `json:"ExecutionTimeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Layer_ShutdownEventConfiguration) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer.ShutdownEventConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_ShutdownEventConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_ShutdownEventConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_ShutdownEventConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_ShutdownEventConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_ShutdownEventConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_ShutdownEventConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go b/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go index 7415039591..6c74105551 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Layer_VolumeConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Layer.VolumeConfiguration) @@ -43,53 +43,17 @@ type Layer_VolumeConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-layer-volumeconfiguration.html#cfn-opsworks-layer-volconfig-volumetype VolumeType string `json:"VolumeType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Layer_VolumeConfiguration) AWSCloudFormationType() string { return "AWS::OpsWorks::Layer.VolumeConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_VolumeConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Layer_VolumeConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_VolumeConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Layer_VolumeConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_VolumeConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Layer_VolumeConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-stack.go b/cloudformation/opsworks/aws-opsworks-stack.go index 35a399d3b6..1daf7ae9ac 100644 --- a/cloudformation/opsworks/aws-opsworks-stack.go +++ b/cloudformation/opsworks/aws-opsworks-stack.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Stack AWS CloudFormation Resource (AWS::OpsWorks::Stack) @@ -138,14 +138,14 @@ type Stack struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-stack.html#cfn-opsworks-stack-vpcid VpcId string `json:"VpcId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -153,42 +153,6 @@ func (r *Stack) AWSCloudFormationType() string { return "AWS::OpsWorks::Stack" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Stack) MarshalJSON() ([]byte, error) { @@ -202,9 +166,9 @@ func (r Stack) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -233,13 +197,13 @@ func (r *Stack) UnmarshalJSON(b []byte) error { *r = Stack(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go b/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go index eb3c0cf4c6..06fed0d290 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_ChefConfiguration AWS CloudFormation Resource (AWS::OpsWorks::Stack.ChefConfiguration) @@ -18,53 +18,17 @@ type Stack_ChefConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-chefconfiguration.html#cfn-opsworks-chefconfiguration-berkshelfversion ManageBerkshelf bool `json:"ManageBerkshelf,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_ChefConfiguration) AWSCloudFormationType() string { return "AWS::OpsWorks::Stack.ChefConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_ChefConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_ChefConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_ChefConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_ChefConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_ChefConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_ChefConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-stack_elasticip.go b/cloudformation/opsworks/aws-opsworks-stack_elasticip.go index d3f361e41b..cc3a51dede 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_elasticip.go +++ b/cloudformation/opsworks/aws-opsworks-stack_elasticip.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_ElasticIp AWS CloudFormation Resource (AWS::OpsWorks::Stack.ElasticIp) @@ -18,53 +18,17 @@ type Stack_ElasticIp struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-elasticip.html#cfn-opsworks-stack-elasticip-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_ElasticIp) AWSCloudFormationType() string { return "AWS::OpsWorks::Stack.ElasticIp" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_ElasticIp) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_ElasticIp) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_ElasticIp) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_ElasticIp) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_ElasticIp) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_ElasticIp) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go b/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go index 23b7384ee6..93b77f527d 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go +++ b/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_RdsDbInstance AWS CloudFormation Resource (AWS::OpsWorks::Stack.RdsDbInstance) @@ -23,53 +23,17 @@ type Stack_RdsDbInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-rdsdbinstance.html#cfn-opsworks-stack-rdsdbinstance-rdsdbinstancearn RdsDbInstanceArn string `json:"RdsDbInstanceArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_RdsDbInstance) AWSCloudFormationType() string { return "AWS::OpsWorks::Stack.RdsDbInstance" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_RdsDbInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_RdsDbInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_RdsDbInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_RdsDbInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_RdsDbInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_RdsDbInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-stack_source.go b/cloudformation/opsworks/aws-opsworks-stack_source.go index 6af026588a..36ee28e17d 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_source.go +++ b/cloudformation/opsworks/aws-opsworks-stack_source.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_Source AWS CloudFormation Resource (AWS::OpsWorks::Stack.Source) @@ -38,53 +38,17 @@ type Stack_Source struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username Username string `json:"Username,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_Source) AWSCloudFormationType() string { return "AWS::OpsWorks::Stack.Source" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_Source) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_Source) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_Source) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_Source) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_Source) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_Source) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go b/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go index 20eeb2de59..fd6da49ab9 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go +++ b/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go @@ -1,7 +1,7 @@ package opsworks import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stack_StackConfigurationManager AWS CloudFormation Resource (AWS::OpsWorks::Stack.StackConfigurationManager) @@ -18,53 +18,17 @@ type Stack_StackConfigurationManager struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html#cfn-opsworks-configmanager-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Stack_StackConfigurationManager) AWSCloudFormationType() string { return "AWS::OpsWorks::Stack.StackConfigurationManager" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_StackConfigurationManager) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Stack_StackConfigurationManager) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_StackConfigurationManager) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Stack_StackConfigurationManager) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_StackConfigurationManager) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Stack_StackConfigurationManager) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/opsworks/aws-opsworks-userprofile.go b/cloudformation/opsworks/aws-opsworks-userprofile.go index 6635fa3b1e..f58581483e 100644 --- a/cloudformation/opsworks/aws-opsworks-userprofile.go +++ b/cloudformation/opsworks/aws-opsworks-userprofile.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // UserProfile AWS CloudFormation Resource (AWS::OpsWorks::UserProfile) @@ -32,14 +32,14 @@ type UserProfile struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-userprofile.html#cfn-opsworks-userprofile-sshusername SshUsername string `json:"SshUsername,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *UserProfile) AWSCloudFormationType() string { return "AWS::OpsWorks::UserProfile" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserProfile) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *UserProfile) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserProfile) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *UserProfile) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserProfile) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *UserProfile) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 UserProfile) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r UserProfile) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *UserProfile) UnmarshalJSON(b []byte) error { *r = UserProfile(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-volume.go b/cloudformation/opsworks/aws-opsworks-volume.go index ebe8d50d52..90147adf2f 100644 --- a/cloudformation/opsworks/aws-opsworks-volume.go +++ b/cloudformation/opsworks/aws-opsworks-volume.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Volume AWS CloudFormation Resource (AWS::OpsWorks::Volume) @@ -32,14 +32,14 @@ type Volume struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html#cfn-opsworks-volume-stackid StackId string `json:"StackId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *Volume) AWSCloudFormationType() string { return "AWS::OpsWorks::Volume" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Volume) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Volume) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Volume) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Volume) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Volume) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Volume) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Volume) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r Volume) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *Volume) UnmarshalJSON(b []byte) error { *r = Volume(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworkscm/aws-opsworkscm-server.go b/cloudformation/opsworkscm/aws-opsworkscm-server.go index 0c182b8778..4ea56942f2 100644 --- a/cloudformation/opsworkscm/aws-opsworkscm-server.go +++ b/cloudformation/opsworkscm/aws-opsworkscm-server.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Server AWS CloudFormation Resource (AWS::OpsWorksCM::Server) @@ -27,6 +27,21 @@ type Server struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-backupretentioncount BackupRetentionCount int `json:"BackupRetentionCount,omitempty"` + // CustomCertificate AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-customcertificate + CustomCertificate string `json:"CustomCertificate,omitempty"` + + // CustomDomain AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-customdomain + CustomDomain string `json:"CustomDomain,omitempty"` + + // CustomPrivateKey AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-customprivatekey + CustomPrivateKey string `json:"CustomPrivateKey,omitempty"` + // DisableAutomatedBackup AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-disableautomatedbackup @@ -97,14 +112,14 @@ type Server struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html#cfn-opsworkscm-server-subnetids SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -112,42 +127,6 @@ func (r *Server) AWSCloudFormationType() string { return "AWS::OpsWorksCM::Server" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Server) MarshalJSON() ([]byte, error) { @@ -161,9 +140,9 @@ func (r Server) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -192,13 +171,13 @@ func (r *Server) UnmarshalJSON(b []byte) error { *r = Server(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go b/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go index 431b35931f..562b39f03e 100644 --- a/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go +++ b/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go @@ -1,7 +1,7 @@ package opsworkscm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Server_EngineAttribute AWS CloudFormation Resource (AWS::OpsWorksCM::Server.EngineAttribute) @@ -18,53 +18,17 @@ type Server_EngineAttribute struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworkscm-server-engineattribute.html#cfn-opsworkscm-server-engineattribute-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Server_EngineAttribute) AWSCloudFormationType() string { return "AWS::OpsWorksCM::Server.EngineAttribute" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server_EngineAttribute) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server_EngineAttribute) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server_EngineAttribute) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server_EngineAttribute) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server_EngineAttribute) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server_EngineAttribute) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-admchannel.go b/cloudformation/pinpoint/aws-pinpoint-admchannel.go index 5dc46e325d..0b83832f05 100644 --- a/cloudformation/pinpoint/aws-pinpoint-admchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-admchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ADMChannel AWS CloudFormation Resource (AWS::Pinpoint::ADMChannel) @@ -32,14 +32,14 @@ type ADMChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-enabled Enabled bool `json:"Enabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *ADMChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::ADMChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ADMChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ADMChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ADMChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ADMChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ADMChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ADMChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ADMChannel) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r ADMChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *ADMChannel) UnmarshalJSON(b []byte) error { *r = ADMChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnschannel.go b/cloudformation/pinpoint/aws-pinpoint-apnschannel.go index 5d25ac41fd..a84ed2d717 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnschannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnschannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // APNSChannel AWS CloudFormation Resource (AWS::Pinpoint::APNSChannel) @@ -57,14 +57,14 @@ type APNSChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-tokenkeyid TokenKeyId string `json:"TokenKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *APNSChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::APNSChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 APNSChannel) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r APNSChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *APNSChannel) UnmarshalJSON(b []byte) error { *r = APNSChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go b/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go index c37be7a931..6cdde7ab14 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // APNSSandboxChannel AWS CloudFormation Resource (AWS::Pinpoint::APNSSandboxChannel) @@ -57,14 +57,14 @@ type APNSSandboxChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnssandboxchannel.html#cfn-pinpoint-apnssandboxchannel-tokenkeyid TokenKeyId string `json:"TokenKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *APNSSandboxChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::APNSSandboxChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSSandboxChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSSandboxChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSSandboxChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSSandboxChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSSandboxChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSSandboxChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 APNSSandboxChannel) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r APNSSandboxChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *APNSSandboxChannel) UnmarshalJSON(b []byte) error { *r = APNSSandboxChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go b/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go index d6b83b1454..5618a080ea 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // APNSVoipChannel AWS CloudFormation Resource (AWS::Pinpoint::APNSVoipChannel) @@ -57,14 +57,14 @@ type APNSVoipChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnsvoipchannel.html#cfn-pinpoint-apnsvoipchannel-tokenkeyid TokenKeyId string `json:"TokenKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *APNSVoipChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::APNSVoipChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSVoipChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSVoipChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSVoipChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSVoipChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSVoipChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSVoipChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 APNSVoipChannel) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r APNSVoipChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *APNSVoipChannel) UnmarshalJSON(b []byte) error { *r = APNSVoipChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go b/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go index 13270137a0..87862b81bd 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // APNSVoipSandboxChannel AWS CloudFormation Resource (AWS::Pinpoint::APNSVoipSandboxChannel) @@ -57,14 +57,14 @@ type APNSVoipSandboxChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnsvoipsandboxchannel.html#cfn-pinpoint-apnsvoipsandboxchannel-tokenkeyid TokenKeyId string `json:"TokenKeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *APNSVoipSandboxChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::APNSVoipSandboxChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSVoipSandboxChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *APNSVoipSandboxChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSVoipSandboxChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *APNSVoipSandboxChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSVoipSandboxChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *APNSVoipSandboxChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 APNSVoipSandboxChannel) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r APNSVoipSandboxChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *APNSVoipSandboxChannel) UnmarshalJSON(b []byte) error { *r = APNSVoipSandboxChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-app.go b/cloudformation/pinpoint/aws-pinpoint-app.go index 1cf01a0fb4..278077e899 100644 --- a/cloudformation/pinpoint/aws-pinpoint-app.go +++ b/cloudformation/pinpoint/aws-pinpoint-app.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // App AWS CloudFormation Resource (AWS::Pinpoint::App) @@ -22,14 +22,14 @@ type App struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-app.html#cfn-pinpoint-app-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *App) AWSCloudFormationType() string { return "AWS::Pinpoint::App" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *App) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *App) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *App) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 App) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r App) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *App) UnmarshalJSON(b []byte) error { *r = App(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go index d5c082d894..f0605aac1b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationSettings AWS CloudFormation Resource (AWS::Pinpoint::ApplicationSettings) @@ -37,14 +37,14 @@ type ApplicationSettings struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-applicationsettings.html#cfn-pinpoint-applicationsettings-quiettime QuietTime *ApplicationSettings_QuietTime `json:"QuietTime,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *ApplicationSettings) AWSCloudFormationType() string { return "AWS::Pinpoint::ApplicationSettings" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ApplicationSettings) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r ApplicationSettings) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *ApplicationSettings) UnmarshalJSON(b []byte) error { *r = ApplicationSettings(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go index 52cb0399a7..9237290ccc 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationSettings_CampaignHook AWS CloudFormation Resource (AWS::Pinpoint::ApplicationSettings.CampaignHook) @@ -23,53 +23,17 @@ type ApplicationSettings_CampaignHook struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-applicationsettings-campaignhook.html#cfn-pinpoint-applicationsettings-campaignhook-weburl WebUrl string `json:"WebUrl,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationSettings_CampaignHook) AWSCloudFormationType() string { return "AWS::Pinpoint::ApplicationSettings.CampaignHook" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings_CampaignHook) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings_CampaignHook) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings_CampaignHook) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings_CampaignHook) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings_CampaignHook) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings_CampaignHook) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go index bab2aad9c3..f5025ebf8f 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationSettings_Limits AWS CloudFormation Resource (AWS::Pinpoint::ApplicationSettings.Limits) @@ -28,53 +28,17 @@ type ApplicationSettings_Limits struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-applicationsettings-limits.html#cfn-pinpoint-applicationsettings-limits-total Total int `json:"Total,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationSettings_Limits) AWSCloudFormationType() string { return "AWS::Pinpoint::ApplicationSettings.Limits" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings_Limits) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings_Limits) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings_Limits) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings_Limits) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings_Limits) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings_Limits) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go index 7d33b63446..2de314398d 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ApplicationSettings_QuietTime AWS CloudFormation Resource (AWS::Pinpoint::ApplicationSettings.QuietTime) @@ -18,53 +18,17 @@ type ApplicationSettings_QuietTime struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-applicationsettings-quiettime.html#cfn-pinpoint-applicationsettings-quiettime-start Start string `json:"Start,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ApplicationSettings_QuietTime) AWSCloudFormationType() string { return "AWS::Pinpoint::ApplicationSettings.QuietTime" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings_QuietTime) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ApplicationSettings_QuietTime) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings_QuietTime) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ApplicationSettings_QuietTime) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings_QuietTime) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ApplicationSettings_QuietTime) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go b/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go index 0c29ce5071..c2c228f247 100644 --- a/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BaiduChannel AWS CloudFormation Resource (AWS::Pinpoint::BaiduChannel) @@ -32,14 +32,14 @@ type BaiduChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-baiduchannel.html#cfn-pinpoint-baiduchannel-secretkey SecretKey string `json:"SecretKey,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *BaiduChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::BaiduChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BaiduChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BaiduChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BaiduChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BaiduChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BaiduChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BaiduChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 BaiduChannel) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r BaiduChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *BaiduChannel) UnmarshalJSON(b []byte) error { *r = BaiduChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign.go b/cloudformation/pinpoint/aws-pinpoint-campaign.go index 115c936356..0b3a20f29b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign AWS CloudFormation Resource (AWS::Pinpoint::Campaign) @@ -87,14 +87,14 @@ type Campaign struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-treatmentname TreatmentName string `json:"TreatmentName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -102,42 +102,6 @@ func (r *Campaign) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Campaign) MarshalJSON() ([]byte, error) { @@ -151,9 +115,9 @@ func (r Campaign) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -182,13 +146,13 @@ func (r *Campaign) UnmarshalJSON(b []byte) error { *r = Campaign(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go b/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go index 1085073518..b5226eff60 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_AttributeDimension AWS CloudFormation Resource (AWS::Pinpoint::Campaign.AttributeDimension) @@ -18,53 +18,17 @@ type Campaign_AttributeDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-attributedimension.html#cfn-pinpoint-campaign-attributedimension-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_AttributeDimension) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.AttributeDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_AttributeDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_AttributeDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_AttributeDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_AttributeDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_AttributeDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_AttributeDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go index c89097211f..f53aeb1580 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_CampaignEmailMessage AWS CloudFormation Resource (AWS::Pinpoint::Campaign.CampaignEmailMessage) @@ -28,53 +28,17 @@ type Campaign_CampaignEmailMessage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-title Title string `json:"Title,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_CampaignEmailMessage) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.CampaignEmailMessage" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignEmailMessage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignEmailMessage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignEmailMessage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignEmailMessage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignEmailMessage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignEmailMessage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go index 74ba79d936..487f5653b8 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_CampaignEventFilter AWS CloudFormation Resource (AWS::Pinpoint::Campaign.CampaignEventFilter) @@ -18,53 +18,17 @@ type Campaign_CampaignEventFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaigneventfilter.html#cfn-pinpoint-campaign-campaigneventfilter-filtertype FilterType string `json:"FilterType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_CampaignEventFilter) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.CampaignEventFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignEventFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignEventFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignEventFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignEventFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignEventFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignEventFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go index 880f8c02b5..31510bcb6f 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_CampaignHook AWS CloudFormation Resource (AWS::Pinpoint::Campaign.CampaignHook) @@ -23,53 +23,17 @@ type Campaign_CampaignHook struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignhook.html#cfn-pinpoint-campaign-campaignhook-weburl WebUrl string `json:"WebUrl,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_CampaignHook) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.CampaignHook" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignHook) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignHook) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignHook) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignHook) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignHook) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignHook) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go index 215c69442f..6da3a4a66e 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_CampaignSmsMessage AWS CloudFormation Resource (AWS::Pinpoint::Campaign.CampaignSmsMessage) @@ -23,53 +23,17 @@ type Campaign_CampaignSmsMessage struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignsmsmessage.html#cfn-pinpoint-campaign-campaignsmsmessage-senderid SenderId string `json:"SenderId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_CampaignSmsMessage) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.CampaignSmsMessage" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignSmsMessage) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_CampaignSmsMessage) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignSmsMessage) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_CampaignSmsMessage) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignSmsMessage) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_CampaignSmsMessage) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go b/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go index 1c6104f397..f4995fddea 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_EventDimensions AWS CloudFormation Resource (AWS::Pinpoint::Campaign.EventDimensions) @@ -23,53 +23,17 @@ type Campaign_EventDimensions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-eventdimensions.html#cfn-pinpoint-campaign-eventdimensions-metrics Metrics interface{} `json:"Metrics,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_EventDimensions) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.EventDimensions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_EventDimensions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_EventDimensions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_EventDimensions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_EventDimensions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_EventDimensions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_EventDimensions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go b/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go index d3a4317563..082fcc2051 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_Limits AWS CloudFormation Resource (AWS::Pinpoint::Campaign.Limits) @@ -28,53 +28,17 @@ type Campaign_Limits struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-limits.html#cfn-pinpoint-campaign-limits-total Total int `json:"Total,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_Limits) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.Limits" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_Limits) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_Limits) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_Limits) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_Limits) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_Limits) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_Limits) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_message.go b/cloudformation/pinpoint/aws-pinpoint-campaign_message.go index 2b6515cd23..c290fb11f0 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_message.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_message.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_Message AWS CloudFormation Resource (AWS::Pinpoint::Campaign.Message) @@ -68,53 +68,17 @@ type Campaign_Message struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html#cfn-pinpoint-campaign-message-url Url string `json:"Url,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_Message) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.Message" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_Message) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_Message) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_Message) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_Message) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_Message) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_Message) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go b/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go index 0e127ff402..c30525e99d 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_MessageConfiguration AWS CloudFormation Resource (AWS::Pinpoint::Campaign.MessageConfiguration) @@ -43,53 +43,17 @@ type Campaign_MessageConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-messageconfiguration.html#cfn-pinpoint-campaign-messageconfiguration-smsmessage SMSMessage *Campaign_CampaignSmsMessage `json:"SMSMessage,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_MessageConfiguration) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.MessageConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_MessageConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_MessageConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_MessageConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_MessageConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_MessageConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_MessageConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go b/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go index 4aa383f109..0e2c322769 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_MetricDimension AWS CloudFormation Resource (AWS::Pinpoint::Campaign.MetricDimension) @@ -18,53 +18,17 @@ type Campaign_MetricDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-metricdimension.html#cfn-pinpoint-campaign-metricdimension-value Value float64 `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_MetricDimension) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.MetricDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_MetricDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_MetricDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_MetricDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_MetricDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_MetricDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_MetricDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go b/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go index ba93f26ddf..650e5b346f 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_QuietTime AWS CloudFormation Resource (AWS::Pinpoint::Campaign.QuietTime) @@ -18,53 +18,17 @@ type Campaign_QuietTime struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-schedule-quiettime.html#cfn-pinpoint-campaign-schedule-quiettime-start Start string `json:"Start,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_QuietTime) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.QuietTime" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_QuietTime) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_QuietTime) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_QuietTime) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_QuietTime) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_QuietTime) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_QuietTime) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go b/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go index 7b4ae1c305..ee391c9783 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_Schedule AWS CloudFormation Resource (AWS::Pinpoint::Campaign.Schedule) @@ -43,53 +43,17 @@ type Campaign_Schedule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-schedule.html#cfn-pinpoint-campaign-schedule-timezone TimeZone string `json:"TimeZone,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_Schedule) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.Schedule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_Schedule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_Schedule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_Schedule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_Schedule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_Schedule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_Schedule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go b/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go index 04ed5e7c01..68b13051cc 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_SetDimension AWS CloudFormation Resource (AWS::Pinpoint::Campaign.SetDimension) @@ -18,53 +18,17 @@ type Campaign_SetDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-setdimension.html#cfn-pinpoint-campaign-setdimension-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_SetDimension) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.SetDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_SetDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_SetDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_SetDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_SetDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_SetDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_SetDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go b/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go index 688fb3f1a1..a31737662b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Campaign_WriteTreatmentResource AWS CloudFormation Resource (AWS::Pinpoint::Campaign.WriteTreatmentResource) @@ -33,53 +33,17 @@ type Campaign_WriteTreatmentResource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-writetreatmentresource.html#cfn-pinpoint-campaign-writetreatmentresource-treatmentname TreatmentName string `json:"TreatmentName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Campaign_WriteTreatmentResource) AWSCloudFormationType() string { return "AWS::Pinpoint::Campaign.WriteTreatmentResource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_WriteTreatmentResource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Campaign_WriteTreatmentResource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_WriteTreatmentResource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Campaign_WriteTreatmentResource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_WriteTreatmentResource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Campaign_WriteTreatmentResource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-emailchannel.go b/cloudformation/pinpoint/aws-pinpoint-emailchannel.go index ce1ec6a655..c89b97fa19 100644 --- a/cloudformation/pinpoint/aws-pinpoint-emailchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-emailchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EmailChannel AWS CloudFormation Resource (AWS::Pinpoint::EmailChannel) @@ -42,14 +42,14 @@ type EmailChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailchannel.html#cfn-pinpoint-emailchannel-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *EmailChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::EmailChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EmailChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EmailChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EmailChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EmailChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EmailChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EmailChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EmailChannel) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r EmailChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *EmailChannel) UnmarshalJSON(b []byte) error { *r = EmailChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go b/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go new file mode 100644 index 0000000000..e25f4f1d09 --- /dev/null +++ b/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go @@ -0,0 +1,108 @@ +package pinpoint + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// EmailTemplate AWS CloudFormation Resource (AWS::Pinpoint::EmailTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html +type EmailTemplate struct { + + // HtmlPart AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-htmlpart + HtmlPart string `json:"HtmlPart,omitempty"` + + // Subject AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-subject + Subject string `json:"Subject,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-tags + Tags interface{} `json:"Tags,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 + TemplateName string `json:"TemplateName,omitempty"` + + // TextPart AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-textpart + TextPart string `json:"TextPart,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *EmailTemplate) AWSCloudFormationType() string { + return "AWS::Pinpoint::EmailTemplate" +} + +// 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 EmailTemplate) MarshalJSON() ([]byte, error) { + type Properties EmailTemplate + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *EmailTemplate) UnmarshalJSON(b []byte) error { + type Properties EmailTemplate + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = EmailTemplate(*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) + } + return nil +} diff --git a/cloudformation/pinpoint/aws-pinpoint-eventstream.go b/cloudformation/pinpoint/aws-pinpoint-eventstream.go index 7e4813f4e3..be5c7e12be 100644 --- a/cloudformation/pinpoint/aws-pinpoint-eventstream.go +++ b/cloudformation/pinpoint/aws-pinpoint-eventstream.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EventStream AWS CloudFormation Resource (AWS::Pinpoint::EventStream) @@ -27,14 +27,14 @@ type EventStream struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-eventstream.html#cfn-pinpoint-eventstream-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *EventStream) AWSCloudFormationType() string { return "AWS::Pinpoint::EventStream" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventStream) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventStream) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventStream) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventStream) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventStream) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventStream) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EventStream) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r EventStream) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *EventStream) UnmarshalJSON(b []byte) error { *r = EventStream(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go b/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go index 45f94bfc5d..ed19335f0b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GCMChannel AWS CloudFormation Resource (AWS::Pinpoint::GCMChannel) @@ -27,14 +27,14 @@ type GCMChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-gcmchannel.html#cfn-pinpoint-gcmchannel-enabled Enabled bool `json:"Enabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *GCMChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::GCMChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GCMChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GCMChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GCMChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GCMChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GCMChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GCMChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GCMChannel) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r GCMChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *GCMChannel) UnmarshalJSON(b []byte) error { *r = GCMChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go new file mode 100644 index 0000000000..70ad0756cc --- /dev/null +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go @@ -0,0 +1,118 @@ +package pinpoint + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// PushTemplate AWS CloudFormation Resource (AWS::Pinpoint::PushTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html +type PushTemplate struct { + + // ADM AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-adm + ADM *PushTemplate_AndroidPushNotificationTemplate `json:"ADM,omitempty"` + + // APNS AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-apns + APNS *PushTemplate_APNSPushNotificationTemplate `json:"APNS,omitempty"` + + // Baidu AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-baidu + Baidu *PushTemplate_AndroidPushNotificationTemplate `json:"Baidu,omitempty"` + + // Default AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-default + Default *PushTemplate_DefaultPushNotificationTemplate `json:"Default,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 + GCM *PushTemplate_AndroidPushNotificationTemplate `json:"GCM,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-tags + Tags interface{} `json:"Tags,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 + TemplateName string `json:"TemplateName,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *PushTemplate) AWSCloudFormationType() string { + return "AWS::Pinpoint::PushTemplate" +} + +// 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 PushTemplate) MarshalJSON() ([]byte, error) { + type Properties PushTemplate + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *PushTemplate) UnmarshalJSON(b []byte) error { + type Properties PushTemplate + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = PushTemplate(*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) + } + return nil +} diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go new file mode 100644 index 0000000000..b91c48c5bc --- /dev/null +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go @@ -0,0 +1,64 @@ +package pinpoint + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// PushTemplate_AndroidPushNotificationTemplate AWS CloudFormation Resource (AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html +type PushTemplate_AndroidPushNotificationTemplate struct { + + // Action AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-action + Action string `json:"Action,omitempty"` + + // Body AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-body + Body string `json:"Body,omitempty"` + + // ImageIconUrl AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-imageiconurl + ImageIconUrl string `json:"ImageIconUrl,omitempty"` + + // ImageUrl AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-imageurl + ImageUrl string `json:"ImageUrl,omitempty"` + + // SmallImageIconUrl AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-smallimageiconurl + SmallImageIconUrl string `json:"SmallImageIconUrl,omitempty"` + + // Sound AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-sound + Sound string `json:"Sound,omitempty"` + + // Title AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-title + Title string `json:"Title,omitempty"` + + // Url AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-androidpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-androidpushnotificationtemplate-url + Url string `json:"Url,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *PushTemplate_AndroidPushNotificationTemplate) AWSCloudFormationType() string { + return "AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" +} diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go new file mode 100644 index 0000000000..6456893cf4 --- /dev/null +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go @@ -0,0 +1,54 @@ +package pinpoint + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// PushTemplate_APNSPushNotificationTemplate AWS CloudFormation Resource (AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html +type PushTemplate_APNSPushNotificationTemplate struct { + + // Action AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html#cfn-pinpoint-pushtemplate-apnspushnotificationtemplate-action + Action string `json:"Action,omitempty"` + + // Body AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html#cfn-pinpoint-pushtemplate-apnspushnotificationtemplate-body + Body string `json:"Body,omitempty"` + + // MediaUrl AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html#cfn-pinpoint-pushtemplate-apnspushnotificationtemplate-mediaurl + MediaUrl string `json:"MediaUrl,omitempty"` + + // Sound AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html#cfn-pinpoint-pushtemplate-apnspushnotificationtemplate-sound + Sound string `json:"Sound,omitempty"` + + // Title AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html#cfn-pinpoint-pushtemplate-apnspushnotificationtemplate-title + Title string `json:"Title,omitempty"` + + // Url AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-apnspushnotificationtemplate.html#cfn-pinpoint-pushtemplate-apnspushnotificationtemplate-url + Url string `json:"Url,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *PushTemplate_APNSPushNotificationTemplate) AWSCloudFormationType() string { + return "AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate" +} diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go new file mode 100644 index 0000000000..8f87404a41 --- /dev/null +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go @@ -0,0 +1,49 @@ +package pinpoint + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// PushTemplate_DefaultPushNotificationTemplate AWS CloudFormation Resource (AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-defaultpushnotificationtemplate.html +type PushTemplate_DefaultPushNotificationTemplate struct { + + // Action AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-defaultpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-defaultpushnotificationtemplate-action + Action string `json:"Action,omitempty"` + + // Body AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-defaultpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-defaultpushnotificationtemplate-body + Body string `json:"Body,omitempty"` + + // Sound AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-defaultpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-defaultpushnotificationtemplate-sound + Sound string `json:"Sound,omitempty"` + + // Title AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-defaultpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-defaultpushnotificationtemplate-title + Title string `json:"Title,omitempty"` + + // Url AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-pushtemplate-defaultpushnotificationtemplate.html#cfn-pinpoint-pushtemplate-defaultpushnotificationtemplate-url + Url string `json:"Url,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *PushTemplate_DefaultPushNotificationTemplate) AWSCloudFormationType() string { + return "AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" +} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment.go b/cloudformation/pinpoint/aws-pinpoint-segment.go index 5168bd33f3..77a2e2475f 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment AWS CloudFormation Resource (AWS::Pinpoint::Segment) @@ -37,14 +37,14 @@ type Segment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html#cfn-pinpoint-segment-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Segment) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Segment) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Segment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Segment) UnmarshalJSON(b []byte) error { *r = Segment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go b/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go index a7608822a7..b065669100 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_AttributeDimension AWS CloudFormation Resource (AWS::Pinpoint::Segment.AttributeDimension) @@ -18,53 +18,17 @@ type Segment_AttributeDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-attributedimension.html#cfn-pinpoint-segment-attributedimension-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_AttributeDimension) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.AttributeDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_AttributeDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_AttributeDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_AttributeDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_AttributeDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_AttributeDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_AttributeDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go b/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go index 962d09f265..bab93738d4 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_Behavior AWS CloudFormation Resource (AWS::Pinpoint::Segment.Behavior) @@ -13,53 +13,17 @@ type Segment_Behavior struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions-behavior.html#cfn-pinpoint-segment-segmentdimensions-behavior-recency Recency *Segment_Recency `json:"Recency,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_Behavior) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.Behavior" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Behavior) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Behavior) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Behavior) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Behavior) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Behavior) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Behavior) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go b/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go index 591003bc31..28329e28c1 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_Coordinates AWS CloudFormation Resource (AWS::Pinpoint::Segment.Coordinates) @@ -18,53 +18,17 @@ type Segment_Coordinates struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions-location-gpspoint-coordinates.html#cfn-pinpoint-segment-segmentdimensions-location-gpspoint-coordinates-longitude Longitude float64 `json:"Longitude"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_Coordinates) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.Coordinates" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Coordinates) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Coordinates) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Coordinates) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Coordinates) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Coordinates) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Coordinates) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go b/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go index 527ef77b16..c6dcf3b122 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_Demographic AWS CloudFormation Resource (AWS::Pinpoint::Segment.Demographic) @@ -38,53 +38,17 @@ type Segment_Demographic struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions-demographic.html#cfn-pinpoint-segment-segmentdimensions-demographic-platform Platform *Segment_SetDimension `json:"Platform,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_Demographic) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.Demographic" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Demographic) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Demographic) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Demographic) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Demographic) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Demographic) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Demographic) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go b/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go index ec227b72a6..6ae772eb01 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_GPSPoint AWS CloudFormation Resource (AWS::Pinpoint::Segment.GPSPoint) @@ -18,53 +18,17 @@ type Segment_GPSPoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions-location-gpspoint.html#cfn-pinpoint-segment-segmentdimensions-location-gpspoint-rangeinkilometers RangeInKilometers float64 `json:"RangeInKilometers"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_GPSPoint) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.GPSPoint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_GPSPoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_GPSPoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_GPSPoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_GPSPoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_GPSPoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_GPSPoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_groups.go b/cloudformation/pinpoint/aws-pinpoint-segment_groups.go index 6a744819b7..c0327a0782 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_groups.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_groups.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_Groups AWS CloudFormation Resource (AWS::Pinpoint::Segment.Groups) @@ -28,53 +28,17 @@ type Segment_Groups struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentgroups-groups.html#cfn-pinpoint-segment-segmentgroups-groups-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_Groups) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.Groups" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Groups) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Groups) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Groups) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Groups) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Groups) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Groups) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_location.go b/cloudformation/pinpoint/aws-pinpoint-segment_location.go index ce3ef691a9..4af800dba5 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_location.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_location.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_Location AWS CloudFormation Resource (AWS::Pinpoint::Segment.Location) @@ -18,53 +18,17 @@ type Segment_Location struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions-location.html#cfn-pinpoint-segment-segmentdimensions-location-gpspoint GPSPoint *Segment_GPSPoint `json:"GPSPoint,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_Location) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_recency.go b/cloudformation/pinpoint/aws-pinpoint-segment_recency.go index 0e005c411d..c6522a157a 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_recency.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_recency.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_Recency AWS CloudFormation Resource (AWS::Pinpoint::Segment.Recency) @@ -18,53 +18,17 @@ type Segment_Recency struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions-behavior-recency.html#cfn-pinpoint-segment-segmentdimensions-behavior-recency-recencytype RecencyType string `json:"RecencyType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_Recency) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.Recency" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Recency) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_Recency) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Recency) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_Recency) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Recency) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_Recency) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go b/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go index 7bef9a2d8e..7c65357901 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_SegmentDimensions AWS CloudFormation Resource (AWS::Pinpoint::Segment.SegmentDimensions) @@ -38,53 +38,17 @@ type Segment_SegmentDimensions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentdimensions.html#cfn-pinpoint-segment-segmentdimensions-userattributes UserAttributes interface{} `json:"UserAttributes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_SegmentDimensions) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.SegmentDimensions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SegmentDimensions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SegmentDimensions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SegmentDimensions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SegmentDimensions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SegmentDimensions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SegmentDimensions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go b/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go index 976cc23e9d..1aaddcbf72 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_SegmentGroups AWS CloudFormation Resource (AWS::Pinpoint::Segment.SegmentGroups) @@ -18,53 +18,17 @@ type Segment_SegmentGroups struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentgroups.html#cfn-pinpoint-segment-segmentgroups-include Include string `json:"Include,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_SegmentGroups) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.SegmentGroups" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SegmentGroups) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SegmentGroups) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SegmentGroups) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SegmentGroups) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SegmentGroups) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SegmentGroups) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go b/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go index a98c00b134..7e6beff067 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_SetDimension AWS CloudFormation Resource (AWS::Pinpoint::Segment.SetDimension) @@ -18,53 +18,17 @@ type Segment_SetDimension struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-setdimension.html#cfn-pinpoint-segment-setdimension-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_SetDimension) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.SetDimension" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SetDimension) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SetDimension) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SetDimension) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SetDimension) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SetDimension) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SetDimension) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go b/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go index e51214eb41..eb24965362 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go @@ -1,7 +1,7 @@ package pinpoint import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Segment_SourceSegments AWS CloudFormation Resource (AWS::Pinpoint::Segment.SourceSegments) @@ -18,53 +18,17 @@ type Segment_SourceSegments struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-segment-segmentgroups-groups-sourcesegments.html#cfn-pinpoint-segment-segmentgroups-groups-sourcesegments-version Version int `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Segment_SourceSegments) AWSCloudFormationType() string { return "AWS::Pinpoint::Segment.SourceSegments" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SourceSegments) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Segment_SourceSegments) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SourceSegments) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Segment_SourceSegments) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SourceSegments) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Segment_SourceSegments) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpoint/aws-pinpoint-smschannel.go b/cloudformation/pinpoint/aws-pinpoint-smschannel.go index d6db9d0fc0..0e50057f83 100644 --- a/cloudformation/pinpoint/aws-pinpoint-smschannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-smschannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SMSChannel AWS CloudFormation Resource (AWS::Pinpoint::SMSChannel) @@ -32,14 +32,14 @@ type SMSChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smschannel.html#cfn-pinpoint-smschannel-shortcode ShortCode string `json:"ShortCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *SMSChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::SMSChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SMSChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SMSChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SMSChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SMSChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SMSChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SMSChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SMSChannel) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r SMSChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *SMSChannel) UnmarshalJSON(b []byte) error { *r = SMSChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-smstemplate.go b/cloudformation/pinpoint/aws-pinpoint-smstemplate.go new file mode 100644 index 0000000000..a16fd06116 --- /dev/null +++ b/cloudformation/pinpoint/aws-pinpoint-smstemplate.go @@ -0,0 +1,98 @@ +package pinpoint + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// SmsTemplate AWS CloudFormation Resource (AWS::Pinpoint::SmsTemplate) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html +type SmsTemplate struct { + + // Body AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-body + Body string `json:"Body,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"` + + // TemplateName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatename + TemplateName string `json:"TemplateName,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *SmsTemplate) AWSCloudFormationType() string { + return "AWS::Pinpoint::SmsTemplate" +} + +// 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 SmsTemplate) MarshalJSON() ([]byte, error) { + type Properties SmsTemplate + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *SmsTemplate) UnmarshalJSON(b []byte) error { + type Properties SmsTemplate + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = SmsTemplate(*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) + } + return nil +} diff --git a/cloudformation/pinpoint/aws-pinpoint-voicechannel.go b/cloudformation/pinpoint/aws-pinpoint-voicechannel.go index 636230a0d5..7ffcc48e43 100644 --- a/cloudformation/pinpoint/aws-pinpoint-voicechannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-voicechannel.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // VoiceChannel AWS CloudFormation Resource (AWS::Pinpoint::VoiceChannel) @@ -22,14 +22,14 @@ type VoiceChannel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-voicechannel.html#cfn-pinpoint-voicechannel-enabled Enabled bool `json:"Enabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *VoiceChannel) AWSCloudFormationType() string { return "AWS::Pinpoint::VoiceChannel" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VoiceChannel) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *VoiceChannel) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VoiceChannel) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *VoiceChannel) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VoiceChannel) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *VoiceChannel) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 VoiceChannel) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r VoiceChannel) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *VoiceChannel) UnmarshalJSON(b []byte) error { *r = VoiceChannel(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go index b1b35fd880..1eb533bc61 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSet) @@ -42,14 +42,14 @@ type ConfigurationSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-configurationset.html#cfn-pinpointemail-configurationset-trackingoptions TrackingOptions *ConfigurationSet_TrackingOptions `json:"TrackingOptions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *ConfigurationSet) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationSet) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r ConfigurationSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *ConfigurationSet) UnmarshalJSON(b []byte) error { *r = ConfigurationSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go index e1305501e2..5cc01d6625 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet_DeliveryOptions AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSet.DeliveryOptions) @@ -13,53 +13,17 @@ type ConfigurationSet_DeliveryOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationset-deliveryoptions.html#cfn-pinpointemail-configurationset-deliveryoptions-sendingpoolname SendingPoolName string `json:"SendingPoolName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSet_DeliveryOptions) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_DeliveryOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_DeliveryOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_DeliveryOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_DeliveryOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_DeliveryOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_DeliveryOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go index ac942ae561..b74107bd45 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet_ReputationOptions AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSet.ReputationOptions) @@ -13,53 +13,17 @@ type ConfigurationSet_ReputationOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationset-reputationoptions.html#cfn-pinpointemail-configurationset-reputationoptions-reputationmetricsenabled ReputationMetricsEnabled bool `json:"ReputationMetricsEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSet_ReputationOptions) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSet.ReputationOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_ReputationOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_ReputationOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_ReputationOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_ReputationOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_ReputationOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_ReputationOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go index 955aeb9b38..52f76661bb 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet_SendingOptions AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSet.SendingOptions) @@ -13,53 +13,17 @@ type ConfigurationSet_SendingOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationset-sendingoptions.html#cfn-pinpointemail-configurationset-sendingoptions-sendingenabled SendingEnabled bool `json:"SendingEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSet_SendingOptions) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSet.SendingOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_SendingOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_SendingOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_SendingOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_SendingOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_SendingOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_SendingOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go index ed4b26a027..e571db61c1 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet_Tags AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSet.Tags) @@ -18,53 +18,17 @@ type ConfigurationSet_Tags struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationset-tags.html#cfn-pinpointemail-configurationset-tags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSet_Tags) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSet.Tags" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_Tags) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_Tags) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_Tags) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_Tags) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_Tags) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_Tags) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go index 690f66db04..72f5206d6b 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet_TrackingOptions AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSet.TrackingOptions) @@ -13,53 +13,17 @@ type ConfigurationSet_TrackingOptions struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationset-trackingoptions.html#cfn-pinpointemail-configurationset-trackingoptions-customredirectdomain CustomRedirectDomain string `json:"CustomRedirectDomain,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSet_TrackingOptions) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSet.TrackingOptions" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_TrackingOptions) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet_TrackingOptions) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_TrackingOptions) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet_TrackingOptions) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_TrackingOptions) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet_TrackingOptions) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go index 45cd50cc1a..0fdedc9549 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination) @@ -27,14 +27,14 @@ type ConfigurationSetEventDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-configurationseteventdestination.html#cfn-pinpointemail-configurationseteventdestination-eventdestinationname EventDestinationName string `json:"EventDestinationName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ConfigurationSetEventDestination) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ConfigurationSetEventDestination) UnmarshalJSON(b []byte) error { *r = ConfigurationSetEventDestination(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go index cf7d7f37e7..3ba36056c9 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_CloudWatchDestination AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination.CloudWatchDestination) @@ -13,53 +13,17 @@ type ConfigurationSetEventDestination_CloudWatchDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationseteventdestination-cloudwatchdestination.html#cfn-pinpointemail-configurationseteventdestination-cloudwatchdestination-dimensionconfigurations DimensionConfigurations []ConfigurationSetEventDestination_DimensionConfiguration `json:"DimensionConfigurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_CloudWatchDestination) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination.CloudWatchDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go index eb117d1a93..78996457ef 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_DimensionConfiguration AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination.DimensionConfiguration) @@ -23,53 +23,17 @@ type ConfigurationSetEventDestination_DimensionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationseteventdestination-dimensionconfiguration.html#cfn-pinpointemail-configurationseteventdestination-dimensionconfiguration-dimensionvaluesource DimensionValueSource string `json:"DimensionValueSource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_DimensionConfiguration) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination.DimensionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go index 1437c6a015..a23aca4b1d 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_EventDestination AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination.EventDestination) @@ -38,53 +38,17 @@ type ConfigurationSetEventDestination_EventDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationseteventdestination-eventdestination.html#cfn-pinpointemail-configurationseteventdestination-eventdestination-snsdestination SnsDestination *ConfigurationSetEventDestination_SnsDestination `json:"SnsDestination,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_EventDestination) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination.EventDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_EventDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_EventDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_EventDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_EventDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_EventDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_EventDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go index 8e378613c9..722a49c957 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_KinesisFirehoseDestination AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination.KinesisFirehoseDestination) @@ -18,53 +18,17 @@ type ConfigurationSetEventDestination_KinesisFirehoseDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationseteventdestination-kinesisfirehosedestination.html#cfn-pinpointemail-configurationseteventdestination-kinesisfirehosedestination-iamrolearn IamRoleArn string `json:"IamRoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination.KinesisFirehoseDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go index 9ec3fdcaa9..5ada629d49 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_PinpointDestination AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination.PinpointDestination) @@ -13,53 +13,17 @@ type ConfigurationSetEventDestination_PinpointDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationseteventdestination-pinpointdestination.html#cfn-pinpointemail-configurationseteventdestination-pinpointdestination-applicationarn ApplicationArn string `json:"ApplicationArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_PinpointDestination) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination.PinpointDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_PinpointDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_PinpointDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_PinpointDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_PinpointDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_PinpointDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_PinpointDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go index dc9025859d..5ccf4ea800 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_SnsDestination AWS CloudFormation Resource (AWS::PinpointEmail::ConfigurationSetEventDestination.SnsDestination) @@ -13,53 +13,17 @@ type ConfigurationSetEventDestination_SnsDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationseteventdestination-snsdestination.html#cfn-pinpointemail-configurationseteventdestination-snsdestination-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_SnsDestination) AWSCloudFormationType() string { return "AWS::PinpointEmail::ConfigurationSetEventDestination.SnsDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_SnsDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_SnsDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_SnsDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_SnsDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_SnsDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_SnsDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go index c46572266f..f604cf805d 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DedicatedIpPool AWS CloudFormation Resource (AWS::PinpointEmail::DedicatedIpPool) @@ -22,14 +22,14 @@ type DedicatedIpPool struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-dedicatedippool.html#cfn-pinpointemail-dedicatedippool-tags Tags []DedicatedIpPool_Tags `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *DedicatedIpPool) AWSCloudFormationType() string { return "AWS::PinpointEmail::DedicatedIpPool" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DedicatedIpPool) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DedicatedIpPool) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DedicatedIpPool) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DedicatedIpPool) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DedicatedIpPool) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DedicatedIpPool) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DedicatedIpPool) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r DedicatedIpPool) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *DedicatedIpPool) UnmarshalJSON(b []byte) error { *r = DedicatedIpPool(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go index a4ea49b3d5..c0e7163be1 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DedicatedIpPool_Tags AWS CloudFormation Resource (AWS::PinpointEmail::DedicatedIpPool.Tags) @@ -18,53 +18,17 @@ type DedicatedIpPool_Tags struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-dedicatedippool-tags.html#cfn-pinpointemail-dedicatedippool-tags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DedicatedIpPool_Tags) AWSCloudFormationType() string { return "AWS::PinpointEmail::DedicatedIpPool.Tags" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DedicatedIpPool_Tags) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DedicatedIpPool_Tags) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DedicatedIpPool_Tags) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DedicatedIpPool_Tags) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DedicatedIpPool_Tags) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DedicatedIpPool_Tags) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-identity.go b/cloudformation/pinpointemail/aws-pinpointemail-identity.go index 6e3566c5a8..afd4b1e5c9 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-identity.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-identity.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Identity AWS CloudFormation Resource (AWS::PinpointEmail::Identity) @@ -37,14 +37,14 @@ type Identity struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html#cfn-pinpointemail-identity-tags Tags []Identity_Tags `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Identity) AWSCloudFormationType() string { return "AWS::PinpointEmail::Identity" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Identity) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Identity) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Identity) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Identity) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Identity) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Identity) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Identity) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Identity) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Identity) UnmarshalJSON(b []byte) error { *r = Identity(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go b/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go index 9cd54e88d3..9b1fddd579 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Identity_MailFromAttributes AWS CloudFormation Resource (AWS::PinpointEmail::Identity.MailFromAttributes) @@ -18,53 +18,17 @@ type Identity_MailFromAttributes struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-identity-mailfromattributes.html#cfn-pinpointemail-identity-mailfromattributes-mailfromdomain MailFromDomain string `json:"MailFromDomain,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Identity_MailFromAttributes) AWSCloudFormationType() string { return "AWS::PinpointEmail::Identity.MailFromAttributes" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Identity_MailFromAttributes) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Identity_MailFromAttributes) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Identity_MailFromAttributes) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Identity_MailFromAttributes) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Identity_MailFromAttributes) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Identity_MailFromAttributes) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go b/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go index 993232f1ae..4692fc1999 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go @@ -1,7 +1,7 @@ package pinpointemail import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Identity_Tags AWS CloudFormation Resource (AWS::PinpointEmail::Identity.Tags) @@ -18,53 +18,17 @@ type Identity_Tags struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-identity-tags.html#cfn-pinpointemail-identity-tags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Identity_Tags) AWSCloudFormationType() string { return "AWS::PinpointEmail::Identity.Tags" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Identity_Tags) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Identity_Tags) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Identity_Tags) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Identity_Tags) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Identity_Tags) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Identity_Tags) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/policies_test.go b/cloudformation/policies_test.go index c68606a1bb..6c9a171384 100644 --- a/cloudformation/policies_test.go +++ b/cloudformation/policies_test.go @@ -3,9 +3,9 @@ package cloudformation_test import ( "github.com/sanathkr/yaml" - "github.com/awslabs/goformation/v3/cloudformation" - "github.com/awslabs/goformation/v3/cloudformation/autoscaling" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation" + "github.com/awslabs/goformation/v4/cloudformation/autoscaling" + "github.com/awslabs/goformation/v4/cloudformation/policies" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -96,7 +96,7 @@ var _ = Describe("Goformation", func() { It("should have the correct values for "+test.Name, func() { asg := autoscaling.AutoScalingGroup{} - asg.SetUpdatePolicy(test.Input) + asg.AWSCloudFormationUpdatePolicy = test.Input template := &cloudformation.Template{ Resources: cloudformation.Resources{"AutoScalingGroup": &asg}, @@ -162,7 +162,7 @@ var _ = Describe("Goformation", func() { It("should have the correct values for "+test.Name, func() { asg := autoscaling.AutoScalingGroup{} - asg.SetCreationPolicy(test.Input) + asg.AWSCloudFormationCreationPolicy = test.Input template := &cloudformation.Template{ Resources: cloudformation.Resources{"AutoScalingGroup": &asg}, @@ -222,7 +222,7 @@ var _ = Describe("Goformation", func() { It("should have the correct values for "+test.Name, func() { asg := autoscaling.AutoScalingGroup{} - asg.SetDeletionPolicy(test.Input) + asg.AWSCloudFormationDeletionPolicy = test.Input template := &cloudformation.Template{ Resources: cloudformation.Resources{"AutoScalingGroup": &asg}, diff --git a/cloudformation/qldb/aws-qldb-ledger.go b/cloudformation/qldb/aws-qldb-ledger.go index 58b6c7a564..a1a2d727b3 100644 --- a/cloudformation/qldb/aws-qldb-ledger.go +++ b/cloudformation/qldb/aws-qldb-ledger.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Ledger AWS CloudFormation Resource (AWS::QLDB::Ledger) @@ -33,14 +33,14 @@ type Ledger struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qldb-ledger.html#cfn-qldb-ledger-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *Ledger) AWSCloudFormationType() string { return "AWS::QLDB::Ledger" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Ledger) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Ledger) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Ledger) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Ledger) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Ledger) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Ledger) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Ledger) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r Ledger) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *Ledger) UnmarshalJSON(b []byte) error { *r = Ledger(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ram/aws-ram-resourceshare.go b/cloudformation/ram/aws-ram-resourceshare.go index 0e774e458c..41b7515a17 100644 --- a/cloudformation/ram/aws-ram-resourceshare.go +++ b/cloudformation/ram/aws-ram-resourceshare.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ResourceShare AWS CloudFormation Resource (AWS::RAM::ResourceShare) @@ -38,14 +38,14 @@ type ResourceShare struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html#cfn-ram-resourceshare-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *ResourceShare) AWSCloudFormationType() string { return "AWS::RAM::ResourceShare" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceShare) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceShare) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceShare) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceShare) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceShare) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceShare) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourceShare) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r ResourceShare) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *ResourceShare) UnmarshalJSON(b []byte) error { *r = ResourceShare(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbcluster.go b/cloudformation/rds/aws-rds-dbcluster.go index 8df6691e34..70d11be123 100644 --- a/cloudformation/rds/aws-rds-dbcluster.go +++ b/cloudformation/rds/aws-rds-dbcluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBCluster AWS CloudFormation Resource (AWS::RDS::DBCluster) @@ -63,6 +63,11 @@ type DBCluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablecloudwatchlogsexports EnableCloudwatchLogsExports []string `json:"EnableCloudwatchLogsExports,omitempty"` + // EnableHttpEndpoint AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enablehttpendpoint + EnableHttpEndpoint bool `json:"EnableHttpEndpoint,omitempty"` + // EnableIAMDatabaseAuthentication AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enableiamdatabaseauthentication @@ -163,14 +168,14 @@ type DBCluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-vpcsecuritygroupids VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -178,42 +183,6 @@ func (r *DBCluster) AWSCloudFormationType() string { return "AWS::RDS::DBCluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBCluster) MarshalJSON() ([]byte, error) { @@ -227,9 +196,9 @@ func (r DBCluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -258,13 +227,13 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { *r = DBCluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go b/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go index 537651c720..ecd5a967a7 100644 --- a/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go +++ b/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DBCluster_DBClusterRole AWS CloudFormation Resource (AWS::RDS::DBCluster.DBClusterRole) @@ -18,58 +18,17 @@ type DBCluster_DBClusterRole struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-dbclusterrole.html#cfn-rds-dbcluster-dbclusterrole-rolearn RoleArn string `json:"RoleArn,omitempty"` - // Status AWS CloudFormation Property - // Required: false - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-dbclusterrole.html#cfn-rds-dbcluster-dbclusterrole-status - Status string `json:"Status,omitempty"` - - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DBCluster_DBClusterRole) AWSCloudFormationType() string { return "AWS::RDS::DBCluster.DBClusterRole" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster_DBClusterRole) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster_DBClusterRole) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster_DBClusterRole) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster_DBClusterRole) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster_DBClusterRole) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster_DBClusterRole) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go b/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go index da069c8814..3d0a27df13 100644 --- a/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go +++ b/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DBCluster_ScalingConfiguration AWS CloudFormation Resource (AWS::RDS::DBCluster.ScalingConfiguration) @@ -28,53 +28,17 @@ type DBCluster_ScalingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-scalingconfiguration.html#cfn-rds-dbcluster-scalingconfiguration-secondsuntilautopause SecondsUntilAutoPause int `json:"SecondsUntilAutoPause,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DBCluster_ScalingConfiguration) AWSCloudFormationType() string { return "AWS::RDS::DBCluster.ScalingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster_ScalingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBCluster_ScalingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster_ScalingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBCluster_ScalingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster_ScalingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBCluster_ScalingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/rds/aws-rds-dbclusterparametergroup.go b/cloudformation/rds/aws-rds-dbclusterparametergroup.go index 4456f5a1ce..bcdef6e453 100644 --- a/cloudformation/rds/aws-rds-dbclusterparametergroup.go +++ b/cloudformation/rds/aws-rds-dbclusterparametergroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBClusterParameterGroup AWS CloudFormation Resource (AWS::RDS::DBClusterParameterGroup) @@ -33,14 +33,14 @@ type DBClusterParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html#cfn-rds-dbclusterparametergroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *DBClusterParameterGroup) AWSCloudFormationType() string { return "AWS::RDS::DBClusterParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBClusterParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBClusterParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBClusterParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBClusterParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBClusterParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBClusterParameterGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r DBClusterParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { *r = DBClusterParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbinstance.go b/cloudformation/rds/aws-rds-dbinstance.go index 04c4dc902e..3d8f23bc4f 100644 --- a/cloudformation/rds/aws-rds-dbinstance.go +++ b/cloudformation/rds/aws-rds-dbinstance.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBInstance AWS CloudFormation Resource (AWS::RDS::DBInstance) @@ -263,14 +263,14 @@ type DBInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-vpcsecuritygroups VPCSecurityGroups []string `json:"VPCSecurityGroups,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -278,42 +278,6 @@ func (r *DBInstance) AWSCloudFormationType() string { return "AWS::RDS::DBInstance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBInstance) MarshalJSON() ([]byte, error) { @@ -327,9 +291,9 @@ func (r DBInstance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -358,13 +322,13 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { *r = DBInstance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go b/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go index eb305815ec..ac16a58e78 100644 --- a/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go +++ b/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DBInstance_DBInstanceRole AWS CloudFormation Resource (AWS::RDS::DBInstance.DBInstanceRole) @@ -18,58 +18,17 @@ type DBInstance_DBInstanceRole struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancerole.html#cfn-rds-dbinstance-dbinstancerole-rolearn RoleArn string `json:"RoleArn,omitempty"` - // Status AWS CloudFormation Property - // Required: false - // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancerole.html#cfn-rds-dbinstance-dbinstancerole-status - Status string `json:"Status,omitempty"` + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string - - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DBInstance_DBInstanceRole) AWSCloudFormationType() string { return "AWS::RDS::DBInstance.DBInstanceRole" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance_DBInstanceRole) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance_DBInstanceRole) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance_DBInstanceRole) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance_DBInstanceRole) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance_DBInstanceRole) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance_DBInstanceRole) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/rds/aws-rds-dbinstance_processorfeature.go b/cloudformation/rds/aws-rds-dbinstance_processorfeature.go index 3632857e76..d9c2edc19f 100644 --- a/cloudformation/rds/aws-rds-dbinstance_processorfeature.go +++ b/cloudformation/rds/aws-rds-dbinstance_processorfeature.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DBInstance_ProcessorFeature AWS CloudFormation Resource (AWS::RDS::DBInstance.ProcessorFeature) @@ -18,53 +18,17 @@ type DBInstance_ProcessorFeature struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html#cfn-rds-dbinstance-processorfeature-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DBInstance_ProcessorFeature) AWSCloudFormationType() string { return "AWS::RDS::DBInstance.ProcessorFeature" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance_ProcessorFeature) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBInstance_ProcessorFeature) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance_ProcessorFeature) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBInstance_ProcessorFeature) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance_ProcessorFeature) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBInstance_ProcessorFeature) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/rds/aws-rds-dbparametergroup.go b/cloudformation/rds/aws-rds-dbparametergroup.go index 1ddc71c23a..a4939aa77c 100644 --- a/cloudformation/rds/aws-rds-dbparametergroup.go +++ b/cloudformation/rds/aws-rds-dbparametergroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBParameterGroup AWS CloudFormation Resource (AWS::RDS::DBParameterGroup) @@ -33,14 +33,14 @@ type DBParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html#cfn-rds-dbparametergroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *DBParameterGroup) AWSCloudFormationType() string { return "AWS::RDS::DBParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBParameterGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r DBParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *DBParameterGroup) UnmarshalJSON(b []byte) error { *r = DBParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbsecuritygroup.go b/cloudformation/rds/aws-rds-dbsecuritygroup.go index f70f605515..1979f79c98 100644 --- a/cloudformation/rds/aws-rds-dbsecuritygroup.go +++ b/cloudformation/rds/aws-rds-dbsecuritygroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBSecurityGroup AWS CloudFormation Resource (AWS::RDS::DBSecurityGroup) @@ -33,14 +33,14 @@ type DBSecurityGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html#cfn-rds-dbsecuritygroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *DBSecurityGroup) AWSCloudFormationType() string { return "AWS::RDS::DBSecurityGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSecurityGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSecurityGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSecurityGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSecurityGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSecurityGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBSecurityGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r DBSecurityGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *DBSecurityGroup) UnmarshalJSON(b []byte) error { *r = DBSecurityGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go b/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go index e7ecdd5313..ea02fe08ea 100644 --- a/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go +++ b/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DBSecurityGroup_Ingress AWS CloudFormation Resource (AWS::RDS::DBSecurityGroup.Ingress) @@ -28,53 +28,17 @@ type DBSecurityGroup_Ingress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupownerid EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *DBSecurityGroup_Ingress) AWSCloudFormationType() string { return "AWS::RDS::DBSecurityGroup.Ingress" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSecurityGroup_Ingress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSecurityGroup_Ingress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSecurityGroup_Ingress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSecurityGroup_Ingress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSecurityGroup_Ingress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSecurityGroup_Ingress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/rds/aws-rds-dbsecuritygroupingress.go b/cloudformation/rds/aws-rds-dbsecuritygroupingress.go index 8fd24a70fa..9fe6c8d795 100644 --- a/cloudformation/rds/aws-rds-dbsecuritygroupingress.go +++ b/cloudformation/rds/aws-rds-dbsecuritygroupingress.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // DBSecurityGroupIngress AWS CloudFormation Resource (AWS::RDS::DBSecurityGroupIngress) @@ -37,14 +37,14 @@ type DBSecurityGroupIngress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-security-group-ingress.html#cfn-rds-securitygroup-ingress-ec2securitygroupownerid EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *DBSecurityGroupIngress) AWSCloudFormationType() string { return "AWS::RDS::DBSecurityGroupIngress" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSecurityGroupIngress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSecurityGroupIngress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSecurityGroupIngress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSecurityGroupIngress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSecurityGroupIngress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBSecurityGroupIngress) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r DBSecurityGroupIngress) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *DBSecurityGroupIngress) UnmarshalJSON(b []byte) error { *r = DBSecurityGroupIngress(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-dbsubnetgroup.go b/cloudformation/rds/aws-rds-dbsubnetgroup.go index 90cfe520da..4d59ee6d54 100644 --- a/cloudformation/rds/aws-rds-dbsubnetgroup.go +++ b/cloudformation/rds/aws-rds-dbsubnetgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // DBSubnetGroup AWS CloudFormation Resource (AWS::RDS::DBSubnetGroup) @@ -33,14 +33,14 @@ type DBSubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html#cfn-rds-dbsubnetgroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *DBSubnetGroup) AWSCloudFormationType() string { return "AWS::RDS::DBSubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *DBSubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *DBSubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *DBSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 DBSubnetGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r DBSubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { *r = DBSubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-eventsubscription.go b/cloudformation/rds/aws-rds-eventsubscription.go index 2603040d59..5c1c7a6b14 100644 --- a/cloudformation/rds/aws-rds-eventsubscription.go +++ b/cloudformation/rds/aws-rds-eventsubscription.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EventSubscription AWS CloudFormation Resource (AWS::RDS::EventSubscription) @@ -37,14 +37,14 @@ type EventSubscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-eventsubscription.html#cfn-rds-eventsubscription-sourcetype SourceType string `json:"SourceType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *EventSubscription) AWSCloudFormationType() string { return "AWS::RDS::EventSubscription" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventSubscription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EventSubscription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventSubscription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EventSubscription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventSubscription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EventSubscription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EventSubscription) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r EventSubscription) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *EventSubscription) UnmarshalJSON(b []byte) error { *r = EventSubscription(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-optiongroup.go b/cloudformation/rds/aws-rds-optiongroup.go index 3f2b78664e..d1f1cc1bf9 100644 --- a/cloudformation/rds/aws-rds-optiongroup.go +++ b/cloudformation/rds/aws-rds-optiongroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // OptionGroup AWS CloudFormation Resource (AWS::RDS::OptionGroup) @@ -38,14 +38,14 @@ type OptionGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html#cfn-rds-optiongroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *OptionGroup) AWSCloudFormationType() string { return "AWS::RDS::OptionGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OptionGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OptionGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OptionGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OptionGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OptionGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OptionGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 OptionGroup) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r OptionGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *OptionGroup) UnmarshalJSON(b []byte) error { *r = OptionGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go b/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go index 8517860bf1..9407bfa118 100644 --- a/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go +++ b/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // OptionGroup_OptionConfiguration AWS CloudFormation Resource (AWS::RDS::OptionGroup.OptionConfiguration) @@ -38,53 +38,17 @@ type OptionGroup_OptionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-vpcsecuritygroupmemberships VpcSecurityGroupMemberships []string `json:"VpcSecurityGroupMemberships,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *OptionGroup_OptionConfiguration) AWSCloudFormationType() string { return "AWS::RDS::OptionGroup.OptionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OptionGroup_OptionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OptionGroup_OptionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OptionGroup_OptionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OptionGroup_OptionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OptionGroup_OptionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OptionGroup_OptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/rds/aws-rds-optiongroup_optionsetting.go b/cloudformation/rds/aws-rds-optiongroup_optionsetting.go index ba39d96256..c192666ceb 100644 --- a/cloudformation/rds/aws-rds-optiongroup_optionsetting.go +++ b/cloudformation/rds/aws-rds-optiongroup_optionsetting.go @@ -1,7 +1,7 @@ package rds import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // OptionGroup_OptionSetting AWS CloudFormation Resource (AWS::RDS::OptionGroup.OptionSetting) @@ -18,53 +18,17 @@ type OptionGroup_OptionSetting struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations-optionsettings.html#cfn-rds-optiongroup-optionconfigurations-optionsettings-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *OptionGroup_OptionSetting) AWSCloudFormationType() string { return "AWS::RDS::OptionGroup.OptionSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OptionGroup_OptionSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *OptionGroup_OptionSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OptionGroup_OptionSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *OptionGroup_OptionSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OptionGroup_OptionSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *OptionGroup_OptionSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/redshift/aws-redshift-cluster.go b/cloudformation/redshift/aws-redshift-cluster.go index e8e263372f..4df10ae60c 100644 --- a/cloudformation/redshift/aws-redshift-cluster.go +++ b/cloudformation/redshift/aws-redshift-cluster.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Cluster AWS CloudFormation Resource (AWS::Redshift::Cluster) @@ -158,14 +158,14 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-vpcsecuritygroupids VpcSecurityGroupIds []string `json:"VpcSecurityGroupIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -173,42 +173,6 @@ func (r *Cluster) AWSCloudFormationType() string { return "AWS::Redshift::Cluster" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Cluster) MarshalJSON() ([]byte, error) { @@ -222,9 +186,9 @@ func (r Cluster) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -253,13 +217,13 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { *r = Cluster(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go b/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go index 9445bbe747..584e8c7284 100644 --- a/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go +++ b/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go @@ -1,7 +1,7 @@ package redshift import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Cluster_LoggingProperties AWS CloudFormation Resource (AWS::Redshift::Cluster.LoggingProperties) @@ -18,53 +18,17 @@ type Cluster_LoggingProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-cluster-loggingproperties.html#cfn-redshift-cluster-loggingproperties-s3keyprefix S3KeyPrefix string `json:"S3KeyPrefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Cluster_LoggingProperties) AWSCloudFormationType() string { return "AWS::Redshift::Cluster.LoggingProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_LoggingProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Cluster_LoggingProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_LoggingProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Cluster_LoggingProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_LoggingProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Cluster_LoggingProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/redshift/aws-redshift-clusterparametergroup.go b/cloudformation/redshift/aws-redshift-clusterparametergroup.go index 0c06353771..968d2fef43 100644 --- a/cloudformation/redshift/aws-redshift-clusterparametergroup.go +++ b/cloudformation/redshift/aws-redshift-clusterparametergroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ClusterParameterGroup AWS CloudFormation Resource (AWS::Redshift::ClusterParameterGroup) @@ -33,14 +33,14 @@ type ClusterParameterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clusterparametergroup.html#cfn-redshift-clusterparametergroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *ClusterParameterGroup) AWSCloudFormationType() string { return "AWS::Redshift::ClusterParameterGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterParameterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterParameterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterParameterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterParameterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterParameterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterParameterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClusterParameterGroup) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r ClusterParameterGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *ClusterParameterGroup) UnmarshalJSON(b []byte) error { *r = ClusterParameterGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go b/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go index a78655a861..20cd4c5fd1 100644 --- a/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go +++ b/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go @@ -1,7 +1,7 @@ package redshift import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClusterParameterGroup_Parameter AWS CloudFormation Resource (AWS::Redshift::ClusterParameterGroup.Parameter) @@ -18,53 +18,17 @@ type ClusterParameterGroup_Parameter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-property-redshift-clusterparametergroup-parameter.html#cfn-redshift-clusterparametergroup-parameter-parametervalue ParameterValue string `json:"ParameterValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ClusterParameterGroup_Parameter) AWSCloudFormationType() string { return "AWS::Redshift::ClusterParameterGroup.Parameter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterParameterGroup_Parameter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterParameterGroup_Parameter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterParameterGroup_Parameter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterParameterGroup_Parameter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterParameterGroup_Parameter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterParameterGroup_Parameter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/redshift/aws-redshift-clustersecuritygroup.go b/cloudformation/redshift/aws-redshift-clustersecuritygroup.go index 56280c7a3e..2f22cd3001 100644 --- a/cloudformation/redshift/aws-redshift-clustersecuritygroup.go +++ b/cloudformation/redshift/aws-redshift-clustersecuritygroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ClusterSecurityGroup AWS CloudFormation Resource (AWS::Redshift::ClusterSecurityGroup) @@ -23,14 +23,14 @@ type ClusterSecurityGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html#cfn-redshift-clustersecuritygroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -38,42 +38,6 @@ func (r *ClusterSecurityGroup) AWSCloudFormationType() string { return "AWS::Redshift::ClusterSecurityGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterSecurityGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterSecurityGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterSecurityGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterSecurityGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterSecurityGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterSecurityGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClusterSecurityGroup) MarshalJSON() ([]byte, error) { @@ -87,9 +51,9 @@ func (r ClusterSecurityGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -118,13 +82,13 @@ func (r *ClusterSecurityGroup) UnmarshalJSON(b []byte) error { *r = ClusterSecurityGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go b/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go index 8397f31473..07e673c40e 100644 --- a/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go +++ b/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ClusterSecurityGroupIngress AWS CloudFormation Resource (AWS::Redshift::ClusterSecurityGroupIngress) @@ -32,14 +32,14 @@ type ClusterSecurityGroupIngress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroupingress.html#cfn-redshift-clustersecuritygroupingress-ec2securitygroupownerid EC2SecurityGroupOwnerId string `json:"EC2SecurityGroupOwnerId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *ClusterSecurityGroupIngress) AWSCloudFormationType() string { return "AWS::Redshift::ClusterSecurityGroupIngress" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterSecurityGroupIngress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterSecurityGroupIngress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterSecurityGroupIngress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterSecurityGroupIngress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterSecurityGroupIngress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterSecurityGroupIngress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClusterSecurityGroupIngress) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r ClusterSecurityGroupIngress) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *ClusterSecurityGroupIngress) UnmarshalJSON(b []byte) error { *r = ClusterSecurityGroupIngress(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/redshift/aws-redshift-clustersubnetgroup.go b/cloudformation/redshift/aws-redshift-clustersubnetgroup.go index 1da9c2de3e..2babc14a37 100644 --- a/cloudformation/redshift/aws-redshift-clustersubnetgroup.go +++ b/cloudformation/redshift/aws-redshift-clustersubnetgroup.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ClusterSubnetGroup AWS CloudFormation Resource (AWS::Redshift::ClusterSubnetGroup) @@ -28,14 +28,14 @@ type ClusterSubnetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html#cfn-redshift-clustersubnetgroup-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *ClusterSubnetGroup) AWSCloudFormationType() string { return "AWS::Redshift::ClusterSubnetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterSubnetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ClusterSubnetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterSubnetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ClusterSubnetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterSubnetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ClusterSubnetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ClusterSubnetGroup) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r ClusterSubnetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *ClusterSubnetGroup) UnmarshalJSON(b []byte) error { *r = ClusterSubnetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-fleet.go b/cloudformation/robomaker/aws-robomaker-fleet.go index 80813d527d..0e67de3d9d 100644 --- a/cloudformation/robomaker/aws-robomaker-fleet.go +++ b/cloudformation/robomaker/aws-robomaker-fleet.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Fleet AWS CloudFormation Resource (AWS::RoboMaker::Fleet) @@ -22,14 +22,14 @@ type Fleet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-robomaker-fleet.html#cfn-robomaker-fleet-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Fleet) AWSCloudFormationType() string { return "AWS::RoboMaker::Fleet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Fleet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Fleet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Fleet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Fleet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Fleet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { *r = Fleet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-robot.go b/cloudformation/robomaker/aws-robomaker-robot.go index 8b18250b53..c3529ec764 100644 --- a/cloudformation/robomaker/aws-robomaker-robot.go +++ b/cloudformation/robomaker/aws-robomaker-robot.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Robot AWS CloudFormation Resource (AWS::RoboMaker::Robot) @@ -37,14 +37,14 @@ type Robot struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-robomaker-robot.html#cfn-robomaker-robot-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Robot) AWSCloudFormationType() string { return "AWS::RoboMaker::Robot" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Robot) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Robot) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Robot) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Robot) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Robot) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Robot) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Robot) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Robot) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Robot) UnmarshalJSON(b []byte) error { *r = Robot(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-robotapplication.go b/cloudformation/robomaker/aws-robomaker-robotapplication.go index 4dc289cef3..7bc17e0ec8 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplication.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplication.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RobotApplication AWS CloudFormation Resource (AWS::RoboMaker::RobotApplication) @@ -37,14 +37,14 @@ type RobotApplication struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-robomaker-robotapplication.html#cfn-robomaker-robotapplication-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *RobotApplication) AWSCloudFormationType() string { return "AWS::RoboMaker::RobotApplication" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplication) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplication) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplication) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplication) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplication) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RobotApplication) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r RobotApplication) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *RobotApplication) UnmarshalJSON(b []byte) error { *r = RobotApplication(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go b/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go index 3f351c993f..c17e0a44de 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go @@ -1,7 +1,7 @@ package robomaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RobotApplication_RobotSoftwareSuite AWS CloudFormation Resource (AWS::RoboMaker::RobotApplication.RobotSoftwareSuite) @@ -18,53 +18,17 @@ type RobotApplication_RobotSoftwareSuite struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-robotsoftwaresuite.html#cfn-robomaker-robotapplication-robotsoftwaresuite-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RobotApplication_RobotSoftwareSuite) AWSCloudFormationType() string { return "AWS::RoboMaker::RobotApplication.RobotSoftwareSuite" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplication_RobotSoftwareSuite) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplication_RobotSoftwareSuite) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplication_RobotSoftwareSuite) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplication_RobotSoftwareSuite) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplication_RobotSoftwareSuite) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplication_RobotSoftwareSuite) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go b/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go index 612e081f33..3bb105d149 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go @@ -1,7 +1,7 @@ package robomaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RobotApplication_SourceConfig AWS CloudFormation Resource (AWS::RoboMaker::RobotApplication.SourceConfig) @@ -23,53 +23,17 @@ type RobotApplication_SourceConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-sourceconfig.html#cfn-robomaker-robotapplication-sourceconfig-s3key S3Key string `json:"S3Key,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RobotApplication_SourceConfig) AWSCloudFormationType() string { return "AWS::RoboMaker::RobotApplication.SourceConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplication_SourceConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplication_SourceConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplication_SourceConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplication_SourceConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplication_SourceConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplication_SourceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go b/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go index 09992ee497..698618fc5e 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RobotApplicationVersion AWS CloudFormation Resource (AWS::RoboMaker::RobotApplicationVersion) @@ -22,14 +22,14 @@ type RobotApplicationVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-robomaker-robotapplicationversion.html#cfn-robomaker-robotapplicationversion-currentrevisionid CurrentRevisionId string `json:"CurrentRevisionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *RobotApplicationVersion) AWSCloudFormationType() string { return "AWS::RoboMaker::RobotApplicationVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplicationVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RobotApplicationVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplicationVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RobotApplicationVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplicationVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RobotApplicationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RobotApplicationVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r RobotApplicationVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *RobotApplicationVersion) UnmarshalJSON(b []byte) error { *r = RobotApplicationVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication.go b/cloudformation/robomaker/aws-robomaker-simulationapplication.go index 577e79286f..1c8d9a1854 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimulationApplication AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication) @@ -47,14 +47,14 @@ type SimulationApplication struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-robomaker-simulationapplication.html#cfn-robomaker-simulationapplication-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +62,6 @@ func (r *SimulationApplication) AWSCloudFormationType() string { return "AWS::RoboMaker::SimulationApplication" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SimulationApplication) MarshalJSON() ([]byte, error) { @@ -111,9 +75,9 @@ func (r SimulationApplication) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +106,13 @@ func (r *SimulationApplication) UnmarshalJSON(b []byte) error { *r = SimulationApplication(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go index 4de83a2564..ae07060f2f 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go @@ -1,7 +1,7 @@ package robomaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimulationApplication_RenderingEngine AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.RenderingEngine) @@ -18,53 +18,17 @@ type SimulationApplication_RenderingEngine struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-renderingengine.html#cfn-robomaker-simulationapplication-renderingengine-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimulationApplication_RenderingEngine) AWSCloudFormationType() string { return "AWS::RoboMaker::SimulationApplication.RenderingEngine" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_RenderingEngine) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_RenderingEngine) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_RenderingEngine) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_RenderingEngine) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_RenderingEngine) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_RenderingEngine) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go index 885558ab6d..6a2e11e9a7 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go @@ -1,7 +1,7 @@ package robomaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimulationApplication_RobotSoftwareSuite AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.RobotSoftwareSuite) @@ -18,53 +18,17 @@ type SimulationApplication_RobotSoftwareSuite struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-robotsoftwaresuite.html#cfn-robomaker-simulationapplication-robotsoftwaresuite-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimulationApplication_RobotSoftwareSuite) AWSCloudFormationType() string { return "AWS::RoboMaker::SimulationApplication.RobotSoftwareSuite" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_RobotSoftwareSuite) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_RobotSoftwareSuite) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_RobotSoftwareSuite) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_RobotSoftwareSuite) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_RobotSoftwareSuite) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_RobotSoftwareSuite) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go index ba7f1d3060..75b4cc3a91 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go @@ -1,7 +1,7 @@ package robomaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimulationApplication_SimulationSoftwareSuite AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.SimulationSoftwareSuite) @@ -18,53 +18,17 @@ type SimulationApplication_SimulationSoftwareSuite struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-simulationsoftwaresuite.html#cfn-robomaker-simulationapplication-simulationsoftwaresuite-version Version string `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimulationApplication_SimulationSoftwareSuite) AWSCloudFormationType() string { return "AWS::RoboMaker::SimulationApplication.SimulationSoftwareSuite" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_SimulationSoftwareSuite) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_SimulationSoftwareSuite) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_SimulationSoftwareSuite) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_SimulationSoftwareSuite) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_SimulationSoftwareSuite) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_SimulationSoftwareSuite) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go index 193831d9ba..d130019339 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go @@ -1,7 +1,7 @@ package robomaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimulationApplication_SourceConfig AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplication.SourceConfig) @@ -23,53 +23,17 @@ type SimulationApplication_SourceConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-sourceconfig.html#cfn-robomaker-simulationapplication-sourceconfig-s3key S3Key string `json:"S3Key,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimulationApplication_SourceConfig) AWSCloudFormationType() string { return "AWS::RoboMaker::SimulationApplication.SourceConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_SourceConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplication_SourceConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_SourceConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplication_SourceConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_SourceConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplication_SourceConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go b/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go index 8da580e111..57211b9cf6 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimulationApplicationVersion AWS CloudFormation Resource (AWS::RoboMaker::SimulationApplicationVersion) @@ -22,14 +22,14 @@ type SimulationApplicationVersion struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-robomaker-simulationapplicationversion.html#cfn-robomaker-simulationapplicationversion-currentrevisionid CurrentRevisionId string `json:"CurrentRevisionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SimulationApplicationVersion) AWSCloudFormationType() string { return "AWS::RoboMaker::SimulationApplicationVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplicationVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimulationApplicationVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplicationVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimulationApplicationVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplicationVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimulationApplicationVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SimulationApplicationVersion) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SimulationApplicationVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SimulationApplicationVersion) UnmarshalJSON(b []byte) error { *r = SimulationApplicationVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53/aws-route53-healthcheck.go b/cloudformation/route53/aws-route53-healthcheck.go index 0a53e98a6a..bb9a4b5cc2 100644 --- a/cloudformation/route53/aws-route53-healthcheck.go +++ b/cloudformation/route53/aws-route53-healthcheck.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HealthCheck AWS CloudFormation Resource (AWS::Route53::HealthCheck) @@ -22,14 +22,14 @@ type HealthCheck struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-healthcheck.html#cfn-route53-healthcheck-healthchecktags HealthCheckTags []HealthCheck_HealthCheckTag `json:"HealthCheckTags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *HealthCheck) AWSCloudFormationType() string { return "AWS::Route53::HealthCheck" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 HealthCheck) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r HealthCheck) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *HealthCheck) UnmarshalJSON(b []byte) error { *r = HealthCheck(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go b/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go index 162e4df6eb..a14d499a4f 100644 --- a/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go +++ b/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HealthCheck_AlarmIdentifier AWS CloudFormation Resource (AWS::Route53::HealthCheck.AlarmIdentifier) @@ -18,53 +18,17 @@ type HealthCheck_AlarmIdentifier struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-alarmidentifier.html#cfn-route53-healthcheck-alarmidentifier-region Region string `json:"Region,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HealthCheck_AlarmIdentifier) AWSCloudFormationType() string { return "AWS::Route53::HealthCheck.AlarmIdentifier" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck_AlarmIdentifier) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck_AlarmIdentifier) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck_AlarmIdentifier) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck_AlarmIdentifier) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck_AlarmIdentifier) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck_AlarmIdentifier) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go b/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go index d3778fe8af..c30a92c921 100644 --- a/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go +++ b/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HealthCheck_HealthCheckConfig AWS CloudFormation Resource (AWS::Route53::HealthCheck.HealthCheckConfig) @@ -88,53 +88,17 @@ type HealthCheck_HealthCheckConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthcheckconfig.html#cfn-route53-healthcheck-healthcheckconfig-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HealthCheck_HealthCheckConfig) AWSCloudFormationType() string { return "AWS::Route53::HealthCheck.HealthCheckConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck_HealthCheckConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck_HealthCheckConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck_HealthCheckConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck_HealthCheckConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck_HealthCheckConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck_HealthCheckConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go b/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go index c453f10279..b58907432d 100644 --- a/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go +++ b/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HealthCheck_HealthCheckTag AWS CloudFormation Resource (AWS::Route53::HealthCheck.HealthCheckTag) @@ -18,53 +18,17 @@ type HealthCheck_HealthCheckTag struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-healthcheck-healthchecktag.html#cfn-route53-healthchecktags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HealthCheck_HealthCheckTag) AWSCloudFormationType() string { return "AWS::Route53::HealthCheck.HealthCheckTag" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck_HealthCheckTag) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HealthCheck_HealthCheckTag) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck_HealthCheckTag) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HealthCheck_HealthCheckTag) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck_HealthCheckTag) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HealthCheck_HealthCheckTag) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-hostedzone.go b/cloudformation/route53/aws-route53-hostedzone.go index 64771dff1f..9da132e0c0 100644 --- a/cloudformation/route53/aws-route53-hostedzone.go +++ b/cloudformation/route53/aws-route53-hostedzone.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HostedZone AWS CloudFormation Resource (AWS::Route53::HostedZone) @@ -37,14 +37,14 @@ type HostedZone struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-vpcs VPCs []HostedZone_VPC `json:"VPCs,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *HostedZone) AWSCloudFormationType() string { return "AWS::Route53::HostedZone" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 HostedZone) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r HostedZone) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *HostedZone) UnmarshalJSON(b []byte) error { *r = HostedZone(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go b/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go index c309a25636..c955aabe9c 100644 --- a/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go +++ b/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HostedZone_HostedZoneConfig AWS CloudFormation Resource (AWS::Route53::HostedZone.HostedZoneConfig) @@ -13,53 +13,17 @@ type HostedZone_HostedZoneConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzoneconfig.html#cfn-route53-hostedzone-hostedzoneconfig-comment Comment string `json:"Comment,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HostedZone_HostedZoneConfig) AWSCloudFormationType() string { return "AWS::Route53::HostedZone.HostedZoneConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_HostedZoneConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_HostedZoneConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_HostedZoneConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_HostedZoneConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_HostedZoneConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_HostedZoneConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go b/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go index 34cca15370..470c87b724 100644 --- a/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go +++ b/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HostedZone_HostedZoneTag AWS CloudFormation Resource (AWS::Route53::HostedZone.HostedZoneTag) @@ -18,53 +18,17 @@ type HostedZone_HostedZoneTag struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-hostedzonetags.html#cfn-route53-hostedzonetags-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HostedZone_HostedZoneTag) AWSCloudFormationType() string { return "AWS::Route53::HostedZone.HostedZoneTag" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_HostedZoneTag) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_HostedZoneTag) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_HostedZoneTag) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_HostedZoneTag) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_HostedZoneTag) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_HostedZoneTag) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go b/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go index 3182b9eb9d..0e6e440697 100644 --- a/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go +++ b/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HostedZone_QueryLoggingConfig AWS CloudFormation Resource (AWS::Route53::HostedZone.QueryLoggingConfig) @@ -13,53 +13,17 @@ type HostedZone_QueryLoggingConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-hostedzone-queryloggingconfig.html#cfn-route53-hostedzone-queryloggingconfig-cloudwatchlogsloggrouparn CloudWatchLogsLogGroupArn string `json:"CloudWatchLogsLogGroupArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HostedZone_QueryLoggingConfig) AWSCloudFormationType() string { return "AWS::Route53::HostedZone.QueryLoggingConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_QueryLoggingConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_QueryLoggingConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_QueryLoggingConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_QueryLoggingConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_QueryLoggingConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_QueryLoggingConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-hostedzone_vpc.go b/cloudformation/route53/aws-route53-hostedzone_vpc.go index 05cec3251d..9986a4e283 100644 --- a/cloudformation/route53/aws-route53-hostedzone_vpc.go +++ b/cloudformation/route53/aws-route53-hostedzone_vpc.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HostedZone_VPC AWS CloudFormation Resource (AWS::Route53::HostedZone.VPC) @@ -18,53 +18,17 @@ type HostedZone_VPC struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone-hostedzonevpcs.html#cfn-route53-hostedzone-hostedzonevpcs-vpcregion VPCRegion string `json:"VPCRegion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *HostedZone_VPC) AWSCloudFormationType() string { return "AWS::Route53::HostedZone.VPC" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_VPC) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HostedZone_VPC) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_VPC) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HostedZone_VPC) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_VPC) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HostedZone_VPC) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-recordset.go b/cloudformation/route53/aws-route53-recordset.go index 17bfdf1eeb..6d4933e184 100644 --- a/cloudformation/route53/aws-route53-recordset.go +++ b/cloudformation/route53/aws-route53-recordset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSet AWS CloudFormation Resource (AWS::Route53::RecordSet) @@ -87,14 +87,14 @@ type RecordSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-weight Weight int `json:"Weight,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -102,42 +102,6 @@ func (r *RecordSet) AWSCloudFormationType() string { return "AWS::Route53::RecordSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RecordSet) MarshalJSON() ([]byte, error) { @@ -151,9 +115,9 @@ func (r RecordSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -182,13 +146,13 @@ func (r *RecordSet) UnmarshalJSON(b []byte) error { *r = RecordSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53/aws-route53-recordset_aliastarget.go b/cloudformation/route53/aws-route53-recordset_aliastarget.go index 21b4ac8e37..51ce64d7af 100644 --- a/cloudformation/route53/aws-route53-recordset_aliastarget.go +++ b/cloudformation/route53/aws-route53-recordset_aliastarget.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSet_AliasTarget AWS CloudFormation Resource (AWS::Route53::RecordSet.AliasTarget) @@ -23,53 +23,17 @@ type RecordSet_AliasTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-hostedzoneid HostedZoneId string `json:"HostedZoneId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RecordSet_AliasTarget) AWSCloudFormationType() string { return "AWS::Route53::RecordSet.AliasTarget" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSet_AliasTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSet_AliasTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSet_AliasTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSet_AliasTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSet_AliasTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSet_AliasTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-recordset_geolocation.go b/cloudformation/route53/aws-route53-recordset_geolocation.go index 2c9e6ed640..7aa3a77f9d 100644 --- a/cloudformation/route53/aws-route53-recordset_geolocation.go +++ b/cloudformation/route53/aws-route53-recordset_geolocation.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSet_GeoLocation AWS CloudFormation Resource (AWS::Route53::RecordSet.GeoLocation) @@ -23,53 +23,17 @@ type RecordSet_GeoLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-subdivisioncode SubdivisionCode string `json:"SubdivisionCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RecordSet_GeoLocation) AWSCloudFormationType() string { return "AWS::Route53::RecordSet.GeoLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSet_GeoLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSet_GeoLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSet_GeoLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSet_GeoLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSet_GeoLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSet_GeoLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-recordsetgroup.go b/cloudformation/route53/aws-route53-recordsetgroup.go index 183ac346e9..bcd18f5f16 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup.go +++ b/cloudformation/route53/aws-route53-recordsetgroup.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSetGroup AWS CloudFormation Resource (AWS::Route53::RecordSetGroup) @@ -32,14 +32,14 @@ type RecordSetGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-recordsets RecordSets []RecordSetGroup_RecordSet `json:"RecordSets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *RecordSetGroup) AWSCloudFormationType() string { return "AWS::Route53::RecordSetGroup" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RecordSetGroup) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r RecordSetGroup) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *RecordSetGroup) UnmarshalJSON(b []byte) error { *r = RecordSetGroup(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go b/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go index b61f989344..494bb511f2 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go +++ b/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSetGroup_AliasTarget AWS CloudFormation Resource (AWS::Route53::RecordSetGroup.AliasTarget) @@ -23,53 +23,17 @@ type RecordSetGroup_AliasTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html#cfn-route53-aliastarget-hostedzoneid HostedZoneId string `json:"HostedZoneId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RecordSetGroup_AliasTarget) AWSCloudFormationType() string { return "AWS::Route53::RecordSetGroup.AliasTarget" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup_AliasTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup_AliasTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup_AliasTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup_AliasTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup_AliasTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup_AliasTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go b/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go index 8436120bae..988ce26981 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go +++ b/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSetGroup_GeoLocation AWS CloudFormation Resource (AWS::Route53::RecordSetGroup.GeoLocation) @@ -23,53 +23,17 @@ type RecordSetGroup_GeoLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset-geolocation.html#cfn-route53-recordset-geolocation-subdivisioncode SubdivisionCode string `json:"SubdivisionCode,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RecordSetGroup_GeoLocation) AWSCloudFormationType() string { return "AWS::Route53::RecordSetGroup.GeoLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup_GeoLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup_GeoLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup_GeoLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup_GeoLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup_GeoLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup_GeoLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53/aws-route53-recordsetgroup_recordset.go b/cloudformation/route53/aws-route53-recordsetgroup_recordset.go index 2c7c456d5d..30bd41ceb9 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup_recordset.go +++ b/cloudformation/route53/aws-route53-recordsetgroup_recordset.go @@ -1,7 +1,7 @@ package route53 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RecordSetGroup_RecordSet AWS CloudFormation Resource (AWS::Route53::RecordSetGroup.RecordSet) @@ -83,53 +83,17 @@ type RecordSetGroup_RecordSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html#cfn-route53-recordset-weight Weight int `json:"Weight,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RecordSetGroup_RecordSet) AWSCloudFormationType() string { return "AWS::Route53::RecordSetGroup.RecordSet" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup_RecordSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RecordSetGroup_RecordSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup_RecordSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RecordSetGroup_RecordSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup_RecordSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RecordSetGroup_RecordSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go index b0e619b073..c2b38419c6 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ResolverEndpoint AWS CloudFormation Resource (AWS::Route53Resolver::ResolverEndpoint) @@ -38,14 +38,14 @@ type ResolverEndpoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverendpoint.html#cfn-route53resolver-resolverendpoint-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *ResolverEndpoint) AWSCloudFormationType() string { return "AWS::Route53Resolver::ResolverEndpoint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverEndpoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverEndpoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverEndpoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverEndpoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverEndpoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverEndpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResolverEndpoint) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r ResolverEndpoint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *ResolverEndpoint) UnmarshalJSON(b []byte) error { *r = ResolverEndpoint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go index fb9dba729c..c75e00627d 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go @@ -1,7 +1,7 @@ package route53resolver import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResolverEndpoint_IpAddressRequest AWS CloudFormation Resource (AWS::Route53Resolver::ResolverEndpoint.IpAddressRequest) @@ -18,53 +18,17 @@ type ResolverEndpoint_IpAddressRequest struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverendpoint-ipaddressrequest.html#cfn-route53resolver-resolverendpoint-ipaddressrequest-subnetid SubnetId string `json:"SubnetId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResolverEndpoint_IpAddressRequest) AWSCloudFormationType() string { return "AWS::Route53Resolver::ResolverEndpoint.IpAddressRequest" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverEndpoint_IpAddressRequest) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverEndpoint_IpAddressRequest) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverEndpoint_IpAddressRequest) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverEndpoint_IpAddressRequest) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverEndpoint_IpAddressRequest) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverEndpoint_IpAddressRequest) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverrule.go b/cloudformation/route53resolver/aws-route53resolver-resolverrule.go index 60c5ef0f97..688e8aaab5 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverrule.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverrule.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // ResolverRule AWS CloudFormation Resource (AWS::Route53Resolver::ResolverRule) @@ -43,14 +43,14 @@ type ResolverRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverrule.html#cfn-route53resolver-resolverrule-targetips TargetIps []ResolverRule_TargetAddress `json:"TargetIps,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *ResolverRule) AWSCloudFormationType() string { return "AWS::Route53Resolver::ResolverRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResolverRule) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r ResolverRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *ResolverRule) UnmarshalJSON(b []byte) error { *r = ResolverRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go b/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go index 60e7b20a69..6cd7439544 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go @@ -1,7 +1,7 @@ package route53resolver import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResolverRule_TargetAddress AWS CloudFormation Resource (AWS::Route53Resolver::ResolverRule.TargetAddress) @@ -18,53 +18,17 @@ type ResolverRule_TargetAddress struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53resolver-resolverrule-targetaddress.html#cfn-route53resolver-resolverrule-targetaddress-port Port string `json:"Port,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ResolverRule_TargetAddress) AWSCloudFormationType() string { return "AWS::Route53Resolver::ResolverRule.TargetAddress" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverRule_TargetAddress) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverRule_TargetAddress) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverRule_TargetAddress) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverRule_TargetAddress) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverRule_TargetAddress) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverRule_TargetAddress) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go b/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go index b70b52f7ca..3fb1613ad6 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResolverRuleAssociation AWS CloudFormation Resource (AWS::Route53Resolver::ResolverRuleAssociation) @@ -27,14 +27,14 @@ type ResolverRuleAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverruleassociation.html#cfn-route53resolver-resolverruleassociation-vpcid VPCId string `json:"VPCId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ResolverRuleAssociation) AWSCloudFormationType() string { return "AWS::Route53Resolver::ResolverRuleAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverRuleAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResolverRuleAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverRuleAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResolverRuleAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverRuleAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResolverRuleAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResolverRuleAssociation) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ResolverRuleAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ResolverRuleAssociation) UnmarshalJSON(b []byte) error { *r = ResolverRuleAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/s3/aws-s3-bucket.go b/cloudformation/s3/aws-s3-bucket.go index 88b633d76f..134de9001d 100644 --- a/cloudformation/s3/aws-s3-bucket.go +++ b/cloudformation/s3/aws-s3-bucket.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Bucket AWS CloudFormation Resource (AWS::S3::Bucket) @@ -103,14 +103,14 @@ type Bucket struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#cfn-s3-bucket-websiteconfiguration WebsiteConfiguration *Bucket_WebsiteConfiguration `json:"WebsiteConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -118,42 +118,6 @@ func (r *Bucket) AWSCloudFormationType() string { return "AWS::S3::Bucket" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Bucket) MarshalJSON() ([]byte, error) { @@ -167,9 +131,9 @@ func (r Bucket) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -198,13 +162,13 @@ func (r *Bucket) UnmarshalJSON(b []byte) error { *r = Bucket(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go b/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go index 7b3f28a76b..9fd155dc4a 100644 --- a/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go +++ b/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_AbortIncompleteMultipartUpload AWS CloudFormation Resource (AWS::S3::Bucket.AbortIncompleteMultipartUpload) @@ -13,53 +13,17 @@ type Bucket_AbortIncompleteMultipartUpload struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-abortincompletemultipartupload.html#cfn-s3-bucket-abortincompletemultipartupload-daysafterinitiation DaysAfterInitiation int `json:"DaysAfterInitiation"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_AbortIncompleteMultipartUpload) AWSCloudFormationType() string { return "AWS::S3::Bucket.AbortIncompleteMultipartUpload" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AbortIncompleteMultipartUpload) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AbortIncompleteMultipartUpload) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AbortIncompleteMultipartUpload) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AbortIncompleteMultipartUpload) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AbortIncompleteMultipartUpload) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AbortIncompleteMultipartUpload) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go b/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go index 7eff8cdcd3..71d895341a 100644 --- a/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_AccelerateConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.AccelerateConfiguration) @@ -13,53 +13,17 @@ type Bucket_AccelerateConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accelerateconfiguration.html#cfn-s3-bucket-accelerateconfiguration-accelerationstatus AccelerationStatus string `json:"AccelerationStatus,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_AccelerateConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.AccelerateConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AccelerateConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AccelerateConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AccelerateConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AccelerateConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AccelerateConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AccelerateConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go b/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go index 1a9cb190fb..9f30dcccc0 100644 --- a/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go +++ b/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_AccessControlTranslation AWS CloudFormation Resource (AWS::S3::Bucket.AccessControlTranslation) @@ -13,53 +13,17 @@ type Bucket_AccessControlTranslation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accesscontroltranslation.html#cfn-s3-bucket-accesscontroltranslation-owner Owner string `json:"Owner,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_AccessControlTranslation) AWSCloudFormationType() string { return "AWS::S3::Bucket.AccessControlTranslation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AccessControlTranslation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AccessControlTranslation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AccessControlTranslation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AccessControlTranslation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AccessControlTranslation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AccessControlTranslation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go b/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go index 6efac4170b..a571c5bc51 100644 --- a/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_AnalyticsConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.AnalyticsConfiguration) @@ -28,53 +28,17 @@ type Bucket_AnalyticsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-analyticsconfiguration.html#cfn-s3-bucket-analyticsconfiguration-tagfilters TagFilters []Bucket_TagFilter `json:"TagFilters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_AnalyticsConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.AnalyticsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AnalyticsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_AnalyticsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AnalyticsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_AnalyticsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AnalyticsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_AnalyticsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_bucketencryption.go b/cloudformation/s3/aws-s3-bucket_bucketencryption.go index 31555d1f73..cd03ee8abd 100644 --- a/cloudformation/s3/aws-s3-bucket_bucketencryption.go +++ b/cloudformation/s3/aws-s3-bucket_bucketencryption.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_BucketEncryption AWS CloudFormation Resource (AWS::S3::Bucket.BucketEncryption) @@ -13,53 +13,17 @@ type Bucket_BucketEncryption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration ServerSideEncryptionConfiguration []Bucket_ServerSideEncryptionRule `json:"ServerSideEncryptionConfiguration,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_BucketEncryption) AWSCloudFormationType() string { return "AWS::S3::Bucket.BucketEncryption" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_BucketEncryption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_BucketEncryption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_BucketEncryption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_BucketEncryption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_BucketEncryption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_BucketEncryption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_corsconfiguration.go b/cloudformation/s3/aws-s3-bucket_corsconfiguration.go index b89ffb712e..d1ae817947 100644 --- a/cloudformation/s3/aws-s3-bucket_corsconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_corsconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_CorsConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.CorsConfiguration) @@ -13,53 +13,17 @@ type Bucket_CorsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors.html#cfn-s3-bucket-cors-corsrule CorsRules []Bucket_CorsRule `json:"CorsRules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_CorsConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.CorsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_CorsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_CorsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_CorsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_CorsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_CorsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_CorsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_corsrule.go b/cloudformation/s3/aws-s3-bucket_corsrule.go index e2a855f138..b0fa6a9ecc 100644 --- a/cloudformation/s3/aws-s3-bucket_corsrule.go +++ b/cloudformation/s3/aws-s3-bucket_corsrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_CorsRule AWS CloudFormation Resource (AWS::S3::Bucket.CorsRule) @@ -38,53 +38,17 @@ type Bucket_CorsRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html#cfn-s3-bucket-cors-corsrule-maxage MaxAge int `json:"MaxAge,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_CorsRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.CorsRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_CorsRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_CorsRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_CorsRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_CorsRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_CorsRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_CorsRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_dataexport.go b/cloudformation/s3/aws-s3-bucket_dataexport.go index 7b7991b9f7..370031d479 100644 --- a/cloudformation/s3/aws-s3-bucket_dataexport.go +++ b/cloudformation/s3/aws-s3-bucket_dataexport.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_DataExport AWS CloudFormation Resource (AWS::S3::Bucket.DataExport) @@ -18,53 +18,17 @@ type Bucket_DataExport struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-dataexport.html#cfn-s3-bucket-dataexport-outputschemaversion OutputSchemaVersion string `json:"OutputSchemaVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_DataExport) AWSCloudFormationType() string { return "AWS::S3::Bucket.DataExport" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_DataExport) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_DataExport) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_DataExport) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_DataExport) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_DataExport) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_DataExport) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_defaultretention.go b/cloudformation/s3/aws-s3-bucket_defaultretention.go index bfa25c6625..418b403d9a 100644 --- a/cloudformation/s3/aws-s3-bucket_defaultretention.go +++ b/cloudformation/s3/aws-s3-bucket_defaultretention.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_DefaultRetention AWS CloudFormation Resource (AWS::S3::Bucket.DefaultRetention) @@ -23,53 +23,17 @@ type Bucket_DefaultRetention struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-defaultretention.html#cfn-s3-bucket-defaultretention-years Years int `json:"Years,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_DefaultRetention) AWSCloudFormationType() string { return "AWS::S3::Bucket.DefaultRetention" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_DefaultRetention) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_DefaultRetention) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_DefaultRetention) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_DefaultRetention) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_DefaultRetention) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_DefaultRetention) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_destination.go b/cloudformation/s3/aws-s3-bucket_destination.go index dd01994248..e0f8a8998e 100644 --- a/cloudformation/s3/aws-s3-bucket_destination.go +++ b/cloudformation/s3/aws-s3-bucket_destination.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_Destination AWS CloudFormation Resource (AWS::S3::Bucket.Destination) @@ -28,53 +28,17 @@ type Bucket_Destination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-destination.html#cfn-s3-bucket-destination-prefix Prefix string `json:"Prefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_Destination) AWSCloudFormationType() string { return "AWS::S3::Bucket.Destination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_Destination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_Destination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_Destination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_Destination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_Destination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_Destination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go b/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go index c292cc421f..9885069173 100644 --- a/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_EncryptionConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.EncryptionConfiguration) @@ -13,53 +13,17 @@ type Bucket_EncryptionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-encryptionconfiguration.html#cfn-s3-bucket-encryptionconfiguration-replicakmskeyid ReplicaKmsKeyID string `json:"ReplicaKmsKeyID,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_EncryptionConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.EncryptionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_EncryptionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_EncryptionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_EncryptionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_EncryptionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_EncryptionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_EncryptionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_filterrule.go b/cloudformation/s3/aws-s3-bucket_filterrule.go index 63f5ad46b1..cb69387d4c 100644 --- a/cloudformation/s3/aws-s3-bucket_filterrule.go +++ b/cloudformation/s3/aws-s3-bucket_filterrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_FilterRule AWS CloudFormation Resource (AWS::S3::Bucket.FilterRule) @@ -18,53 +18,17 @@ type Bucket_FilterRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key-rules.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key-rules-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_FilterRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.FilterRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_FilterRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_FilterRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_FilterRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_FilterRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_FilterRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_FilterRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go b/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go index 2c801257cf..e6ee9325b1 100644 --- a/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_InventoryConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.InventoryConfiguration) @@ -43,53 +43,17 @@ type Bucket_InventoryConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-inventoryconfiguration.html#cfn-s3-bucket-inventoryconfiguration-schedulefrequency ScheduleFrequency string `json:"ScheduleFrequency,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_InventoryConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.InventoryConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_InventoryConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_InventoryConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_InventoryConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_InventoryConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_InventoryConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_InventoryConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go b/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go index 3037016ed7..a28e613193 100644 --- a/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_LambdaConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.LambdaConfiguration) @@ -23,53 +23,17 @@ type Bucket_LambdaConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-function Function string `json:"Function,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_LambdaConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.LambdaConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_LambdaConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_LambdaConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_LambdaConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_LambdaConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_LambdaConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_LambdaConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go b/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go index ba4eee51b9..143d023292 100644 --- a/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_LifecycleConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.LifecycleConfiguration) @@ -13,53 +13,17 @@ type Bucket_LifecycleConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig.html#cfn-s3-bucket-lifecycleconfig-rules Rules []Bucket_Rule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_LifecycleConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.LifecycleConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_LifecycleConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_LifecycleConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_LifecycleConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_LifecycleConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_LifecycleConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_LifecycleConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go b/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go index 5ed0c67cf3..767f7f8a79 100644 --- a/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_LoggingConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.LoggingConfiguration) @@ -18,53 +18,17 @@ type Bucket_LoggingConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfig.html#cfn-s3-bucket-loggingconfig-logfileprefix LogFilePrefix string `json:"LogFilePrefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_LoggingConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.LoggingConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_LoggingConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_LoggingConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_LoggingConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_LoggingConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_LoggingConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_LoggingConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go b/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go index 50b69f712d..cce4a18b8d 100644 --- a/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_MetricsConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.MetricsConfiguration) @@ -23,53 +23,17 @@ type Bucket_MetricsConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html#cfn-s3-bucket-metricsconfiguration-tagfilters TagFilters []Bucket_TagFilter `json:"TagFilters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_MetricsConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.MetricsConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_MetricsConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_MetricsConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_MetricsConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_MetricsConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_MetricsConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_MetricsConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go b/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go index 72b402ecee..e49ca8de88 100644 --- a/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go +++ b/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_NoncurrentVersionTransition AWS CloudFormation Resource (AWS::S3::Bucket.NoncurrentVersionTransition) @@ -18,53 +18,17 @@ type Bucket_NoncurrentVersionTransition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition.html#cfn-s3-bucket-lifecycleconfig-rule-noncurrentversiontransition-transitionindays TransitionInDays int `json:"TransitionInDays"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_NoncurrentVersionTransition) AWSCloudFormationType() string { return "AWS::S3::Bucket.NoncurrentVersionTransition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_NoncurrentVersionTransition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_NoncurrentVersionTransition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_NoncurrentVersionTransition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_NoncurrentVersionTransition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_NoncurrentVersionTransition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_NoncurrentVersionTransition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go b/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go index 8a599ee73e..af508bcfd0 100644 --- a/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_NotificationConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.NotificationConfiguration) @@ -23,53 +23,17 @@ type Bucket_NotificationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig.html#cfn-s3-bucket-notificationconfig-topicconfig TopicConfigurations []Bucket_TopicConfiguration `json:"TopicConfigurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_NotificationConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.NotificationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_NotificationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_NotificationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_NotificationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_NotificationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_NotificationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_NotificationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_notificationfilter.go b/cloudformation/s3/aws-s3-bucket_notificationfilter.go index b86ab6e87f..690a24f206 100644 --- a/cloudformation/s3/aws-s3-bucket_notificationfilter.go +++ b/cloudformation/s3/aws-s3-bucket_notificationfilter.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_NotificationFilter AWS CloudFormation Resource (AWS::S3::Bucket.NotificationFilter) @@ -13,53 +13,17 @@ type Bucket_NotificationFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key S3Key *Bucket_S3KeyFilter `json:"S3Key,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_NotificationFilter) AWSCloudFormationType() string { return "AWS::S3::Bucket.NotificationFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_NotificationFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_NotificationFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_NotificationFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_NotificationFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_NotificationFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_NotificationFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go b/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go index 63faa26889..d8535671c1 100644 --- a/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ObjectLockConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.ObjectLockConfiguration) @@ -18,53 +18,17 @@ type Bucket_ObjectLockConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-objectlockconfiguration.html#cfn-s3-bucket-objectlockconfiguration-rule Rule *Bucket_ObjectLockRule `json:"Rule,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ObjectLockConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.ObjectLockConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ObjectLockConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ObjectLockConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ObjectLockConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ObjectLockConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ObjectLockConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ObjectLockConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_objectlockrule.go b/cloudformation/s3/aws-s3-bucket_objectlockrule.go index 1b7bc29061..d000153004 100644 --- a/cloudformation/s3/aws-s3-bucket_objectlockrule.go +++ b/cloudformation/s3/aws-s3-bucket_objectlockrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ObjectLockRule AWS CloudFormation Resource (AWS::S3::Bucket.ObjectLockRule) @@ -13,53 +13,17 @@ type Bucket_ObjectLockRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-objectlockrule.html#cfn-s3-bucket-objectlockrule-defaultretention DefaultRetention *Bucket_DefaultRetention `json:"DefaultRetention,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ObjectLockRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.ObjectLockRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ObjectLockRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ObjectLockRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ObjectLockRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ObjectLockRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ObjectLockRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ObjectLockRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go b/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go index dd4f5ddb0d..54e3348246 100644 --- a/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_PublicAccessBlockConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.PublicAccessBlockConfiguration) @@ -28,53 +28,17 @@ type Bucket_PublicAccessBlockConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-publicaccessblockconfiguration.html#cfn-s3-bucket-publicaccessblockconfiguration-restrictpublicbuckets RestrictPublicBuckets bool `json:"RestrictPublicBuckets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_PublicAccessBlockConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.PublicAccessBlockConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_PublicAccessBlockConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_PublicAccessBlockConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_PublicAccessBlockConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_PublicAccessBlockConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_PublicAccessBlockConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_PublicAccessBlockConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_queueconfiguration.go b/cloudformation/s3/aws-s3-bucket_queueconfiguration.go index b557f83a1a..ec174c8095 100644 --- a/cloudformation/s3/aws-s3-bucket_queueconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_queueconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_QueueConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.QueueConfiguration) @@ -23,53 +23,17 @@ type Bucket_QueueConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-queueconfig.html#cfn-s3-bucket-notificationconfig-queueconfig-queue Queue string `json:"Queue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_QueueConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.QueueConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_QueueConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_QueueConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_QueueConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_QueueConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_QueueConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_QueueConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go b/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go index fe22f75e1a..48507a26e8 100644 --- a/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go +++ b/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_RedirectAllRequestsTo AWS CloudFormation Resource (AWS::S3::Bucket.RedirectAllRequestsTo) @@ -18,53 +18,17 @@ type Bucket_RedirectAllRequestsTo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-redirectallrequeststo.html#cfn-s3-websiteconfiguration-redirectallrequeststo-protocol Protocol string `json:"Protocol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_RedirectAllRequestsTo) AWSCloudFormationType() string { return "AWS::S3::Bucket.RedirectAllRequestsTo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RedirectAllRequestsTo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RedirectAllRequestsTo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RedirectAllRequestsTo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RedirectAllRequestsTo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RedirectAllRequestsTo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RedirectAllRequestsTo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_redirectrule.go b/cloudformation/s3/aws-s3-bucket_redirectrule.go index 045c82c8a5..dc6e9cadc3 100644 --- a/cloudformation/s3/aws-s3-bucket_redirectrule.go +++ b/cloudformation/s3/aws-s3-bucket_redirectrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_RedirectRule AWS CloudFormation Resource (AWS::S3::Bucket.RedirectRule) @@ -33,53 +33,17 @@ type Bucket_RedirectRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-redirectrule.html#cfn-s3-websiteconfiguration-redirectrule-replacekeywith ReplaceKeyWith string `json:"ReplaceKeyWith,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_RedirectRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.RedirectRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RedirectRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RedirectRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RedirectRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RedirectRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RedirectRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RedirectRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go b/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go index ccde894661..40360cf504 100644 --- a/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ReplicationConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.ReplicationConfiguration) @@ -18,53 +18,17 @@ type Bucket_ReplicationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration.html#cfn-s3-bucket-replicationconfiguration-rules Rules []Bucket_ReplicationRule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ReplicationConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.ReplicationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ReplicationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ReplicationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ReplicationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ReplicationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ReplicationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ReplicationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_replicationdestination.go b/cloudformation/s3/aws-s3-bucket_replicationdestination.go index e5c5672e2d..a6bafd9e75 100644 --- a/cloudformation/s3/aws-s3-bucket_replicationdestination.go +++ b/cloudformation/s3/aws-s3-bucket_replicationdestination.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ReplicationDestination AWS CloudFormation Resource (AWS::S3::Bucket.ReplicationDestination) @@ -33,53 +33,17 @@ type Bucket_ReplicationDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules-destination.html#cfn-s3-bucket-replicationconfiguration-rules-destination-storageclass StorageClass string `json:"StorageClass,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ReplicationDestination) AWSCloudFormationType() string { return "AWS::S3::Bucket.ReplicationDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ReplicationDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ReplicationDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ReplicationDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ReplicationDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ReplicationDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ReplicationDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_replicationrule.go b/cloudformation/s3/aws-s3-bucket_replicationrule.go index 72bc5dcaba..d91177f072 100644 --- a/cloudformation/s3/aws-s3-bucket_replicationrule.go +++ b/cloudformation/s3/aws-s3-bucket_replicationrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ReplicationRule AWS CloudFormation Resource (AWS::S3::Bucket.ReplicationRule) @@ -33,53 +33,17 @@ type Bucket_ReplicationRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-replicationconfiguration-rules.html#cfn-s3-bucket-replicationconfiguration-rules-status Status string `json:"Status,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ReplicationRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.ReplicationRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ReplicationRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ReplicationRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ReplicationRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ReplicationRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ReplicationRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ReplicationRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_routingrule.go b/cloudformation/s3/aws-s3-bucket_routingrule.go index 15ad15d4c8..27f220cb00 100644 --- a/cloudformation/s3/aws-s3-bucket_routingrule.go +++ b/cloudformation/s3/aws-s3-bucket_routingrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_RoutingRule AWS CloudFormation Resource (AWS::S3::Bucket.RoutingRule) @@ -18,53 +18,17 @@ type Bucket_RoutingRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html#cfn-s3-websiteconfiguration-routingrules-routingrulecondition RoutingRuleCondition *Bucket_RoutingRuleCondition `json:"RoutingRuleCondition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_RoutingRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.RoutingRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RoutingRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RoutingRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RoutingRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RoutingRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RoutingRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RoutingRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_routingrulecondition.go b/cloudformation/s3/aws-s3-bucket_routingrulecondition.go index 681566a77c..19d5934324 100644 --- a/cloudformation/s3/aws-s3-bucket_routingrulecondition.go +++ b/cloudformation/s3/aws-s3-bucket_routingrulecondition.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_RoutingRuleCondition AWS CloudFormation Resource (AWS::S3::Bucket.RoutingRuleCondition) @@ -18,53 +18,17 @@ type Bucket_RoutingRuleCondition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules-routingrulecondition.html#cfn-s3-websiteconfiguration-routingrules-routingrulecondition-keyprefixequals KeyPrefixEquals string `json:"KeyPrefixEquals,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_RoutingRuleCondition) AWSCloudFormationType() string { return "AWS::S3::Bucket.RoutingRuleCondition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RoutingRuleCondition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_RoutingRuleCondition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RoutingRuleCondition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_RoutingRuleCondition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RoutingRuleCondition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_RoutingRuleCondition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_rule.go b/cloudformation/s3/aws-s3-bucket_rule.go index b4c03d2027..d8fa98e904 100644 --- a/cloudformation/s3/aws-s3-bucket_rule.go +++ b/cloudformation/s3/aws-s3-bucket_rule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_Rule AWS CloudFormation Resource (AWS::S3::Bucket.Rule) @@ -68,53 +68,17 @@ type Bucket_Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-lifecycleconfig-rule-transitions Transitions []Bucket_Transition `json:"Transitions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_Rule) AWSCloudFormationType() string { return "AWS::S3::Bucket.Rule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_s3keyfilter.go b/cloudformation/s3/aws-s3-bucket_s3keyfilter.go index 0a3bd0cd26..86f294c524 100644 --- a/cloudformation/s3/aws-s3-bucket_s3keyfilter.go +++ b/cloudformation/s3/aws-s3-bucket_s3keyfilter.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_S3KeyFilter AWS CloudFormation Resource (AWS::S3::Bucket.S3KeyFilter) @@ -13,53 +13,17 @@ type Bucket_S3KeyFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key.html#cfn-s3-bucket-notificationconfiguraiton-config-filter-s3key-rules Rules []Bucket_FilterRule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_S3KeyFilter) AWSCloudFormationType() string { return "AWS::S3::Bucket.S3KeyFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_S3KeyFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_S3KeyFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_S3KeyFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_S3KeyFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_S3KeyFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_S3KeyFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go b/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go index 116a409363..a76bf995fc 100644 --- a/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go +++ b/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ServerSideEncryptionByDefault AWS CloudFormation Resource (AWS::S3::Bucket.ServerSideEncryptionByDefault) @@ -18,53 +18,17 @@ type Bucket_ServerSideEncryptionByDefault struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionbydefault.html#cfn-s3-bucket-serversideencryptionbydefault-ssealgorithm SSEAlgorithm string `json:"SSEAlgorithm,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ServerSideEncryptionByDefault) AWSCloudFormationType() string { return "AWS::S3::Bucket.ServerSideEncryptionByDefault" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ServerSideEncryptionByDefault) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ServerSideEncryptionByDefault) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ServerSideEncryptionByDefault) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ServerSideEncryptionByDefault) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ServerSideEncryptionByDefault) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ServerSideEncryptionByDefault) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go b/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go index b06289ff30..eac254f10a 100644 --- a/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go +++ b/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_ServerSideEncryptionRule AWS CloudFormation Resource (AWS::S3::Bucket.ServerSideEncryptionRule) @@ -13,53 +13,17 @@ type Bucket_ServerSideEncryptionRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-serversideencryptionrule.html#cfn-s3-bucket-serversideencryptionrule-serversideencryptionbydefault ServerSideEncryptionByDefault *Bucket_ServerSideEncryptionByDefault `json:"ServerSideEncryptionByDefault,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_ServerSideEncryptionRule) AWSCloudFormationType() string { return "AWS::S3::Bucket.ServerSideEncryptionRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ServerSideEncryptionRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_ServerSideEncryptionRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ServerSideEncryptionRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_ServerSideEncryptionRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ServerSideEncryptionRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_ServerSideEncryptionRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go b/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go index 1a710e5915..509d02bbc0 100644 --- a/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go +++ b/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_SourceSelectionCriteria AWS CloudFormation Resource (AWS::S3::Bucket.SourceSelectionCriteria) @@ -13,53 +13,17 @@ type Bucket_SourceSelectionCriteria struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-sourceselectioncriteria.html#cfn-s3-bucket-sourceselectioncriteria-ssekmsencryptedobjects SseKmsEncryptedObjects *Bucket_SseKmsEncryptedObjects `json:"SseKmsEncryptedObjects,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_SourceSelectionCriteria) AWSCloudFormationType() string { return "AWS::S3::Bucket.SourceSelectionCriteria" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_SourceSelectionCriteria) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_SourceSelectionCriteria) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_SourceSelectionCriteria) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_SourceSelectionCriteria) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_SourceSelectionCriteria) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_SourceSelectionCriteria) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go b/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go index d36b66b114..93ad068275 100644 --- a/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go +++ b/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_SseKmsEncryptedObjects AWS CloudFormation Resource (AWS::S3::Bucket.SseKmsEncryptedObjects) @@ -13,53 +13,17 @@ type Bucket_SseKmsEncryptedObjects struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ssekmsencryptedobjects.html#cfn-s3-bucket-ssekmsencryptedobjects-status Status string `json:"Status,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_SseKmsEncryptedObjects) AWSCloudFormationType() string { return "AWS::S3::Bucket.SseKmsEncryptedObjects" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_SseKmsEncryptedObjects) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_SseKmsEncryptedObjects) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_SseKmsEncryptedObjects) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_SseKmsEncryptedObjects) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_SseKmsEncryptedObjects) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_SseKmsEncryptedObjects) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go b/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go index 4b6007b259..c67f43b417 100644 --- a/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go +++ b/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_StorageClassAnalysis AWS CloudFormation Resource (AWS::S3::Bucket.StorageClassAnalysis) @@ -13,53 +13,17 @@ type Bucket_StorageClassAnalysis struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-storageclassanalysis.html#cfn-s3-bucket-storageclassanalysis-dataexport DataExport *Bucket_DataExport `json:"DataExport,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_StorageClassAnalysis) AWSCloudFormationType() string { return "AWS::S3::Bucket.StorageClassAnalysis" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_StorageClassAnalysis) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_StorageClassAnalysis) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_StorageClassAnalysis) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_StorageClassAnalysis) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_StorageClassAnalysis) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_StorageClassAnalysis) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_tagfilter.go b/cloudformation/s3/aws-s3-bucket_tagfilter.go index c5433aae43..9e2c0c77d5 100644 --- a/cloudformation/s3/aws-s3-bucket_tagfilter.go +++ b/cloudformation/s3/aws-s3-bucket_tagfilter.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_TagFilter AWS CloudFormation Resource (AWS::S3::Bucket.TagFilter) @@ -18,53 +18,17 @@ type Bucket_TagFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-tagfilter.html#cfn-s3-bucket-tagfilter-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_TagFilter) AWSCloudFormationType() string { return "AWS::S3::Bucket.TagFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_TagFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_TagFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_TagFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_TagFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_TagFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_TagFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_topicconfiguration.go b/cloudformation/s3/aws-s3-bucket_topicconfiguration.go index 006022010f..67e3a3c7c4 100644 --- a/cloudformation/s3/aws-s3-bucket_topicconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_topicconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_TopicConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.TopicConfiguration) @@ -23,53 +23,17 @@ type Bucket_TopicConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-topic Topic string `json:"Topic,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_TopicConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.TopicConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_TopicConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_TopicConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_TopicConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_TopicConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_TopicConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_TopicConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_transition.go b/cloudformation/s3/aws-s3-bucket_transition.go index 9d944a0a6f..7f422ec171 100644 --- a/cloudformation/s3/aws-s3-bucket_transition.go +++ b/cloudformation/s3/aws-s3-bucket_transition.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_Transition AWS CloudFormation Resource (AWS::S3::Bucket.Transition) @@ -23,53 +23,17 @@ type Bucket_Transition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-transition.html#cfn-s3-bucket-lifecycleconfig-rule-transition-transitionindays TransitionInDays int `json:"TransitionInDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_Transition) AWSCloudFormationType() string { return "AWS::S3::Bucket.Transition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_Transition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_Transition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_Transition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_Transition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_Transition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_Transition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go b/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go index 4a78abdff5..ac74bf428b 100644 --- a/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_VersioningConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.VersioningConfiguration) @@ -13,53 +13,17 @@ type Bucket_VersioningConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-versioningconfig.html#cfn-s3-bucket-versioningconfig-status Status string `json:"Status,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_VersioningConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.VersioningConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_VersioningConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_VersioningConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_VersioningConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_VersioningConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_VersioningConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_VersioningConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go b/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go index 368f5c4aeb..d8a2deda7d 100644 --- a/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go @@ -1,7 +1,7 @@ package s3 import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Bucket_WebsiteConfiguration AWS CloudFormation Resource (AWS::S3::Bucket.WebsiteConfiguration) @@ -28,53 +28,17 @@ type Bucket_WebsiteConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration.html#cfn-s3-websiteconfiguration-routingrules RoutingRules []Bucket_RoutingRule `json:"RoutingRules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Bucket_WebsiteConfiguration) AWSCloudFormationType() string { return "AWS::S3::Bucket.WebsiteConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_WebsiteConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Bucket_WebsiteConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_WebsiteConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Bucket_WebsiteConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_WebsiteConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Bucket_WebsiteConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/s3/aws-s3-bucketpolicy.go b/cloudformation/s3/aws-s3-bucketpolicy.go index a2c4b7e22d..32fc3c20b3 100644 --- a/cloudformation/s3/aws-s3-bucketpolicy.go +++ b/cloudformation/s3/aws-s3-bucketpolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // BucketPolicy AWS CloudFormation Resource (AWS::S3::BucketPolicy) @@ -22,14 +22,14 @@ type BucketPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html#aws-properties-s3-policy-policydocument PolicyDocument interface{} `json:"PolicyDocument,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *BucketPolicy) AWSCloudFormationType() string { return "AWS::S3::BucketPolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BucketPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *BucketPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BucketPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *BucketPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BucketPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *BucketPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 BucketPolicy) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r BucketPolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *BucketPolicy) UnmarshalJSON(b []byte) error { *r = BucketPolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-coderepository.go b/cloudformation/sagemaker/aws-sagemaker-coderepository.go index af018e6f22..4e253fbe83 100644 --- a/cloudformation/sagemaker/aws-sagemaker-coderepository.go +++ b/cloudformation/sagemaker/aws-sagemaker-coderepository.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CodeRepository AWS CloudFormation Resource (AWS::SageMaker::CodeRepository) @@ -22,14 +22,14 @@ type CodeRepository struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-coderepository.html#cfn-sagemaker-coderepository-gitconfig GitConfig *CodeRepository_GitConfig `json:"GitConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *CodeRepository) AWSCloudFormationType() string { return "AWS::SageMaker::CodeRepository" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CodeRepository) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CodeRepository) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CodeRepository) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CodeRepository) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CodeRepository) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CodeRepository) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CodeRepository) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r CodeRepository) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *CodeRepository) UnmarshalJSON(b []byte) error { *r = CodeRepository(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go b/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go index 370ed90385..41d39cc066 100644 --- a/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CodeRepository_GitConfig AWS CloudFormation Resource (AWS::SageMaker::CodeRepository.GitConfig) @@ -23,53 +23,17 @@ type CodeRepository_GitConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-coderepository-gitconfig.html#cfn-sagemaker-coderepository-gitconfig-secretarn SecretArn string `json:"SecretArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CodeRepository_GitConfig) AWSCloudFormationType() string { return "AWS::SageMaker::CodeRepository.GitConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CodeRepository_GitConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CodeRepository_GitConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CodeRepository_GitConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CodeRepository_GitConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CodeRepository_GitConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CodeRepository_GitConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-endpoint.go b/cloudformation/sagemaker/aws-sagemaker-endpoint.go index 6d868807ac..d9e70e1f07 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpoint.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpoint.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Endpoint AWS CloudFormation Resource (AWS::SageMaker::Endpoint) @@ -23,19 +23,29 @@ type Endpoint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-endpointname EndpointName string `json:"EndpointName,omitempty"` + // ExcludeRetainedVariantProperties AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-excluderetainedvariantproperties + ExcludeRetainedVariantProperties []Endpoint_VariantProperty `json:"ExcludeRetainedVariantProperties,omitempty"` + + // RetainAllVariantProperties AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-retainallvariantproperties + RetainAllVariantProperties bool `json:"RetainAllVariantProperties,omitempty"` + // Tags AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +53,6 @@ func (r *Endpoint) AWSCloudFormationType() string { return "AWS::SageMaker::Endpoint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Endpoint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Endpoint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Endpoint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Endpoint) MarshalJSON() ([]byte, error) { @@ -92,9 +66,9 @@ func (r Endpoint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +97,13 @@ func (r *Endpoint) UnmarshalJSON(b []byte) error { *r = Endpoint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go b/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go new file mode 100644 index 0000000000..068dbc27a3 --- /dev/null +++ b/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go @@ -0,0 +1,29 @@ +package sagemaker + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Endpoint_VariantProperty AWS CloudFormation Resource (AWS::SageMaker::Endpoint.VariantProperty) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html +type Endpoint_VariantProperty struct { + + // VariantPropertyType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html#cfn-sagemaker-endpoint-variantproperty-variantpropertytype + VariantPropertyType string `json:"VariantPropertyType,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *Endpoint_VariantProperty) AWSCloudFormationType() string { + return "AWS::SageMaker::Endpoint.VariantProperty" +} diff --git a/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go b/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go index 2f69f8e8c3..6509735f5b 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // EndpointConfig AWS CloudFormation Resource (AWS::SageMaker::EndpointConfig) @@ -33,14 +33,14 @@ type EndpointConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html#cfn-sagemaker-endpointconfig-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -48,42 +48,6 @@ func (r *EndpointConfig) AWSCloudFormationType() string { return "AWS::SageMaker::EndpointConfig" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EndpointConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EndpointConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EndpointConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EndpointConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EndpointConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EndpointConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 EndpointConfig) MarshalJSON() ([]byte, error) { @@ -97,9 +61,9 @@ func (r EndpointConfig) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -128,13 +92,13 @@ func (r *EndpointConfig) UnmarshalJSON(b []byte) error { *r = EndpointConfig(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go b/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go index 63571d45dc..af1a62f2a9 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // EndpointConfig_ProductionVariant AWS CloudFormation Resource (AWS::SageMaker::EndpointConfig.ProductionVariant) @@ -38,53 +38,17 @@ type EndpointConfig_ProductionVariant struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-productionvariant.html#cfn-sagemaker-endpointconfig-productionvariant-variantname VariantName string `json:"VariantName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *EndpointConfig_ProductionVariant) AWSCloudFormationType() string { return "AWS::SageMaker::EndpointConfig.ProductionVariant" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EndpointConfig_ProductionVariant) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *EndpointConfig_ProductionVariant) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EndpointConfig_ProductionVariant) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *EndpointConfig_ProductionVariant) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EndpointConfig_ProductionVariant) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *EndpointConfig_ProductionVariant) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-model.go b/cloudformation/sagemaker/aws-sagemaker-model.go index 8bd8d8b2bf..79d875c3b6 100644 --- a/cloudformation/sagemaker/aws-sagemaker-model.go +++ b/cloudformation/sagemaker/aws-sagemaker-model.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Model AWS CloudFormation Resource (AWS::SageMaker::Model) @@ -43,14 +43,14 @@ type Model struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html#cfn-sagemaker-model-vpcconfig VpcConfig *Model_VpcConfig `json:"VpcConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *Model) AWSCloudFormationType() string { return "AWS::SageMaker::Model" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Model) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r Model) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *Model) UnmarshalJSON(b []byte) error { *r = Model(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go b/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go index 0e85aa8b6a..5c3f8da513 100644 --- a/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go +++ b/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Model_ContainerDefinition AWS CloudFormation Resource (AWS::SageMaker::Model.ContainerDefinition) @@ -28,53 +28,17 @@ type Model_ContainerDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-modeldataurl ModelDataUrl string `json:"ModelDataUrl,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Model_ContainerDefinition) AWSCloudFormationType() string { return "AWS::SageMaker::Model.ContainerDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model_ContainerDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model_ContainerDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model_ContainerDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model_ContainerDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model_ContainerDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model_ContainerDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go b/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go index 4c6d82003f..7c9fad48c0 100644 --- a/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Model_VpcConfig AWS CloudFormation Resource (AWS::SageMaker::Model.VpcConfig) @@ -18,53 +18,17 @@ type Model_VpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-vpcconfig.html#cfn-sagemaker-model-vpcconfig-subnets Subnets []string `json:"Subnets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Model_VpcConfig) AWSCloudFormationType() string { return "AWS::SageMaker::Model.VpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model_VpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Model_VpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model_VpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Model_VpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model_VpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Model_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go b/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go index fb164dccb3..522425bbbe 100644 --- a/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go +++ b/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // NotebookInstance AWS CloudFormation Resource (AWS::SageMaker::NotebookInstance) @@ -83,14 +83,14 @@ type NotebookInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-volumesizeingb VolumeSizeInGB int `json:"VolumeSizeInGB,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -98,42 +98,6 @@ func (r *NotebookInstance) AWSCloudFormationType() string { return "AWS::SageMaker::NotebookInstance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NotebookInstance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NotebookInstance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NotebookInstance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NotebookInstance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NotebookInstance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NotebookInstance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NotebookInstance) MarshalJSON() ([]byte, error) { @@ -147,9 +111,9 @@ func (r NotebookInstance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -178,13 +142,13 @@ func (r *NotebookInstance) UnmarshalJSON(b []byte) error { *r = NotebookInstance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go index 033d1b7f19..dc9cc18c06 100644 --- a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NotebookInstanceLifecycleConfig AWS CloudFormation Resource (AWS::SageMaker::NotebookInstanceLifecycleConfig) @@ -27,14 +27,14 @@ type NotebookInstanceLifecycleConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstancelifecycleconfig.html#cfn-sagemaker-notebookinstancelifecycleconfig-onstart OnStart []NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook `json:"OnStart,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *NotebookInstanceLifecycleConfig) AWSCloudFormationType() string { return "AWS::SageMaker::NotebookInstanceLifecycleConfig" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NotebookInstanceLifecycleConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NotebookInstanceLifecycleConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NotebookInstanceLifecycleConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NotebookInstanceLifecycleConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NotebookInstanceLifecycleConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NotebookInstanceLifecycleConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 NotebookInstanceLifecycleConfig) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r NotebookInstanceLifecycleConfig) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *NotebookInstanceLifecycleConfig) UnmarshalJSON(b []byte) error { *r = NotebookInstanceLifecycleConfig(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go index 666983f051..9598ceb996 100644 --- a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go +++ b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook AWS CloudFormation Resource (AWS::SageMaker::NotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHook) @@ -13,53 +13,17 @@ type NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content Content string `json:"Content,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) AWSCloudFormationType() string { return "AWS::SageMaker::NotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHook" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam.go b/cloudformation/sagemaker/aws-sagemaker-workteam.go index 3b9fe0076f..7844e314a6 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Workteam AWS CloudFormation Resource (AWS::SageMaker::Workteam) @@ -38,14 +38,14 @@ type Workteam struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-workteam.html#cfn-sagemaker-workteam-workteamname WorkteamName string `json:"WorkteamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Workteam) AWSCloudFormationType() string { return "AWS::SageMaker::Workteam" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Workteam) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Workteam) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Workteam) UnmarshalJSON(b []byte) error { *r = Workteam(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go b/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go index c0382d295f..b1495d6e0c 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Workteam_CognitoMemberDefinition AWS CloudFormation Resource (AWS::SageMaker::Workteam.CognitoMemberDefinition) @@ -23,53 +23,17 @@ type Workteam_CognitoMemberDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-workteam-cognitomemberdefinition.html#cfn-sagemaker-workteam-cognitomemberdefinition-cognitouserpool CognitoUserPool string `json:"CognitoUserPool,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Workteam_CognitoMemberDefinition) AWSCloudFormationType() string { return "AWS::SageMaker::Workteam.CognitoMemberDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam_CognitoMemberDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam_CognitoMemberDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam_CognitoMemberDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam_CognitoMemberDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam_CognitoMemberDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam_CognitoMemberDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go b/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go index f1a02c00a0..3b0e017e7b 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Workteam_MemberDefinition AWS CloudFormation Resource (AWS::SageMaker::Workteam.MemberDefinition) @@ -13,53 +13,17 @@ type Workteam_MemberDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-workteam-memberdefinition.html#cfn-sagemaker-workteam-memberdefinition-cognitomemberdefinition CognitoMemberDefinition *Workteam_CognitoMemberDefinition `json:"CognitoMemberDefinition,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Workteam_MemberDefinition) AWSCloudFormationType() string { return "AWS::SageMaker::Workteam.MemberDefinition" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam_MemberDefinition) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam_MemberDefinition) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam_MemberDefinition) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam_MemberDefinition) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam_MemberDefinition) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam_MemberDefinition) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go b/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go index 9d2428678f..a84e3acff4 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go @@ -1,7 +1,7 @@ package sagemaker import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Workteam_NotificationConfiguration AWS CloudFormation Resource (AWS::SageMaker::Workteam.NotificationConfiguration) @@ -13,53 +13,17 @@ type Workteam_NotificationConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-workteam-notificationconfiguration.html#cfn-sagemaker-workteam-notificationconfiguration-notificationtopicarn NotificationTopicArn string `json:"NotificationTopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Workteam_NotificationConfiguration) AWSCloudFormationType() string { return "AWS::SageMaker::Workteam.NotificationConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam_NotificationConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workteam_NotificationConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam_NotificationConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workteam_NotificationConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam_NotificationConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workteam_NotificationConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sdb/aws-sdb-domain.go b/cloudformation/sdb/aws-sdb-domain.go index 64d368e222..e444015db8 100644 --- a/cloudformation/sdb/aws-sdb-domain.go +++ b/cloudformation/sdb/aws-sdb-domain.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Domain AWS CloudFormation Resource (AWS::SDB::Domain) @@ -17,14 +17,14 @@ type Domain struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simpledb.html#cfn-sdb-domain-description Description string `json:"Description,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *Domain) AWSCloudFormationType() string { return "AWS::SDB::Domain" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Domain) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Domain) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Domain) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Domain) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r Domain) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *Domain) UnmarshalJSON(b []byte) error { *r = Domain(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go b/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go index 42c0fa6dd6..dd345771c3 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourcePolicy AWS CloudFormation Resource (AWS::SecretsManager::ResourcePolicy) @@ -22,14 +22,14 @@ type ResourcePolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-resourcepolicy.html#cfn-secretsmanager-resourcepolicy-secretid SecretId string `json:"SecretId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ResourcePolicy) AWSCloudFormationType() string { return "AWS::SecretsManager::ResourcePolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourcePolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourcePolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourcePolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourcePolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourcePolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourcePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourcePolicy) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ResourcePolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ResourcePolicy) UnmarshalJSON(b []byte) error { *r = ResourcePolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go index 3634a1d236..f8aa6468fc 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RotationSchedule AWS CloudFormation Resource (AWS::SecretsManager::RotationSchedule) @@ -27,14 +27,14 @@ type RotationSchedule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-rotationschedule.html#cfn-secretsmanager-rotationschedule-secretid SecretId string `json:"SecretId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *RotationSchedule) AWSCloudFormationType() string { return "AWS::SecretsManager::RotationSchedule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RotationSchedule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RotationSchedule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RotationSchedule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RotationSchedule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RotationSchedule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RotationSchedule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RotationSchedule) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r RotationSchedule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *RotationSchedule) UnmarshalJSON(b []byte) error { *r = RotationSchedule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go index 3feabe8fd9..e090637784 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go @@ -1,7 +1,7 @@ package secretsmanager import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RotationSchedule_RotationRules AWS CloudFormation Resource (AWS::SecretsManager::RotationSchedule.RotationRules) @@ -13,53 +13,17 @@ type RotationSchedule_RotationRules struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-secretsmanager-rotationschedule-rotationrules.html#cfn-secretsmanager-rotationschedule-rotationrules-automaticallyafterdays AutomaticallyAfterDays int `json:"AutomaticallyAfterDays,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RotationSchedule_RotationRules) AWSCloudFormationType() string { return "AWS::SecretsManager::RotationSchedule.RotationRules" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RotationSchedule_RotationRules) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RotationSchedule_RotationRules) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RotationSchedule_RotationRules) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RotationSchedule_RotationRules) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RotationSchedule_RotationRules) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RotationSchedule_RotationRules) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/secretsmanager/aws-secretsmanager-secret.go b/cloudformation/secretsmanager/aws-secretsmanager-secret.go index 289f1784bd..a5b23b6cb2 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-secret.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-secret.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Secret AWS CloudFormation Resource (AWS::SecretsManager::Secret) @@ -43,14 +43,14 @@ type Secret struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html#cfn-secretsmanager-secret-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *Secret) AWSCloudFormationType() string { return "AWS::SecretsManager::Secret" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Secret) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Secret) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Secret) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Secret) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Secret) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Secret) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Secret) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r Secret) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *Secret) UnmarshalJSON(b []byte) error { *r = Secret(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go b/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go index 0f02b339bc..d95b48b86d 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go @@ -1,7 +1,7 @@ package secretsmanager import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Secret_GenerateSecretString AWS CloudFormation Resource (AWS::SecretsManager::Secret.GenerateSecretString) @@ -58,53 +58,17 @@ type Secret_GenerateSecretString struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-secretsmanager-secret-generatesecretstring.html#cfn-secretsmanager-secret-generatesecretstring-secretstringtemplate SecretStringTemplate string `json:"SecretStringTemplate,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Secret_GenerateSecretString) AWSCloudFormationType() string { return "AWS::SecretsManager::Secret.GenerateSecretString" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Secret_GenerateSecretString) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Secret_GenerateSecretString) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Secret_GenerateSecretString) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Secret_GenerateSecretString) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Secret_GenerateSecretString) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Secret_GenerateSecretString) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go b/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go index 2cd1cd4274..6d7f0d772b 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SecretTargetAttachment AWS CloudFormation Resource (AWS::SecretsManager::SecretTargetAttachment) @@ -27,14 +27,14 @@ type SecretTargetAttachment struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype TargetType string `json:"TargetType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *SecretTargetAttachment) AWSCloudFormationType() string { return "AWS::SecretsManager::SecretTargetAttachment" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecretTargetAttachment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SecretTargetAttachment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecretTargetAttachment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SecretTargetAttachment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecretTargetAttachment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SecretTargetAttachment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SecretTargetAttachment) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r SecretTargetAttachment) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *SecretTargetAttachment) UnmarshalJSON(b []byte) error { *r = SecretTargetAttachment(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/securityhub/aws-securityhub-hub.go b/cloudformation/securityhub/aws-securityhub-hub.go index 39d12aeb38..3398a55c34 100644 --- a/cloudformation/securityhub/aws-securityhub-hub.go +++ b/cloudformation/securityhub/aws-securityhub-hub.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Hub AWS CloudFormation Resource (AWS::SecurityHub::Hub) @@ -17,14 +17,14 @@ type Hub struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-hub.html#cfn-securityhub-hub-tags Tags interface{} `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *Hub) AWSCloudFormationType() string { return "AWS::SecurityHub::Hub" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Hub) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Hub) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Hub) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Hub) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Hub) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Hub) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Hub) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r Hub) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *Hub) UnmarshalJSON(b []byte) error { *r = Hub(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/serverless/api_definitionuri.go b/cloudformation/serverless/api_definitionuri.go index 05280a0ca5..3596a6c8fc 100644 --- a/cloudformation/serverless/api_definitionuri.go +++ b/cloudformation/serverless/api_definitionuri.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sort" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // Api_DefinitionUri is a helper struct that can hold either a String or S3Location value diff --git a/cloudformation/serverless/application_location.go b/cloudformation/serverless/application_location.go index dc8ef2820f..b05b7efbe5 100644 --- a/cloudformation/serverless/application_location.go +++ b/cloudformation/serverless/application_location.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sort" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // Application_Location is a helper struct that can hold either a String or ApplicationLocation value diff --git a/cloudformation/serverless/aws-serverless-api.go b/cloudformation/serverless/aws-serverless-api.go index ae6bea1fbb..ebff6da31b 100644 --- a/cloudformation/serverless/aws-serverless-api.go +++ b/cloudformation/serverless/aws-serverless-api.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Api AWS CloudFormation Resource (AWS::Serverless::Api) @@ -82,14 +82,14 @@ type Api struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi Variables map[string]string `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -97,42 +97,6 @@ func (r *Api) AWSCloudFormationType() string { return "AWS::Serverless::Api" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Api) MarshalJSON() ([]byte, error) { @@ -146,9 +110,9 @@ func (r Api) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -177,13 +141,13 @@ func (r *Api) UnmarshalJSON(b []byte) error { *r = Api(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/serverless/aws-serverless-api_accesslogsetting.go b/cloudformation/serverless/aws-serverless-api_accesslogsetting.go index 960cf2933d..6d046ab905 100644 --- a/cloudformation/serverless/aws-serverless-api_accesslogsetting.go +++ b/cloudformation/serverless/aws-serverless-api_accesslogsetting.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Api_AccessLogSetting AWS CloudFormation Resource (AWS::Serverless::Api.AccessLogSetting) @@ -18,53 +18,17 @@ type Api_AccessLogSetting struct { // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-accesslogsetting.html#cfn-apigateway-stage-accesslogsetting-format Format string `json:"Format,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Api_AccessLogSetting) AWSCloudFormationType() string { return "AWS::Serverless::Api.AccessLogSetting" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api_AccessLogSetting) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api_AccessLogSetting) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api_AccessLogSetting) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api_AccessLogSetting) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api_AccessLogSetting) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api_AccessLogSetting) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-api_auth.go b/cloudformation/serverless/aws-serverless-api_auth.go index af7a03b419..422c915714 100644 --- a/cloudformation/serverless/aws-serverless-api_auth.go +++ b/cloudformation/serverless/aws-serverless-api_auth.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Api_Auth AWS CloudFormation Resource (AWS::Serverless::Api.Auth) @@ -18,53 +18,17 @@ type Api_Auth struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api-auth-object DefaultAuthorizer string `json:"DefaultAuthorizer,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Api_Auth) AWSCloudFormationType() string { return "AWS::Serverless::Api.Auth" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api_Auth) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api_Auth) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api_Auth) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api_Auth) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api_Auth) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api_Auth) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-api_s3location.go b/cloudformation/serverless/aws-serverless-api_s3location.go index 8d717297d2..45cebddb02 100644 --- a/cloudformation/serverless/aws-serverless-api_s3location.go +++ b/cloudformation/serverless/aws-serverless-api_s3location.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Api_S3Location AWS CloudFormation Resource (AWS::Serverless::Api.S3Location) @@ -23,53 +23,17 @@ type Api_S3Location struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Version int `json:"Version"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Api_S3Location) AWSCloudFormationType() string { return "AWS::Serverless::Api.S3Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api_S3Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Api_S3Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api_S3Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Api_S3Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api_S3Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Api_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-application.go b/cloudformation/serverless/aws-serverless-application.go index 0e848bbb28..91f3e23ea2 100644 --- a/cloudformation/serverless/aws-serverless-application.go +++ b/cloudformation/serverless/aws-serverless-application.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application AWS CloudFormation Resource (AWS::Serverless::Application) @@ -37,14 +37,14 @@ type Application struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapplication TimeoutInMinutes int `json:"TimeoutInMinutes,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *Application) AWSCloudFormationType() string { return "AWS::Serverless::Application" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Application) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r Application) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *Application) UnmarshalJSON(b []byte) error { *r = Application(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/serverless/aws-serverless-application_applicationlocation.go b/cloudformation/serverless/aws-serverless-application_applicationlocation.go index 860137fe6d..1ff11a1a02 100644 --- a/cloudformation/serverless/aws-serverless-application_applicationlocation.go +++ b/cloudformation/serverless/aws-serverless-application_applicationlocation.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Application_ApplicationLocation AWS CloudFormation Resource (AWS::Serverless::Application.ApplicationLocation) @@ -18,53 +18,17 @@ type Application_ApplicationLocation struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapplication SemanticVersion string `json:"SemanticVersion,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Application_ApplicationLocation) AWSCloudFormationType() string { return "AWS::Serverless::Application.ApplicationLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Application_ApplicationLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Application_ApplicationLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Application_ApplicationLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function.go b/cloudformation/serverless/aws-serverless-function.go index d5142b2118..de230103fb 100644 --- a/cloudformation/serverless/aws-serverless-function.go +++ b/cloudformation/serverless/aws-serverless-function.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function AWS CloudFormation Resource (AWS::Serverless::Function) @@ -117,14 +117,14 @@ type Function struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction VpcConfig *Function_VpcConfig `json:"VpcConfig,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -132,42 +132,6 @@ func (r *Function) AWSCloudFormationType() string { return "AWS::Serverless::Function" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Function) MarshalJSON() ([]byte, error) { @@ -181,9 +145,9 @@ func (r Function) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -212,13 +176,13 @@ func (r *Function) UnmarshalJSON(b []byte) error { *r = Function(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/serverless/aws-serverless-function_alexaskillevent.go b/cloudformation/serverless/aws-serverless-function_alexaskillevent.go index 93307bc9e2..390208bfca 100644 --- a/cloudformation/serverless/aws-serverless-function_alexaskillevent.go +++ b/cloudformation/serverless/aws-serverless-function_alexaskillevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_AlexaSkillEvent AWS CloudFormation Resource (AWS::Serverless::Function.AlexaSkillEvent) @@ -13,53 +13,17 @@ type Function_AlexaSkillEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#alexaskill Variables map[string]string `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_AlexaSkillEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.AlexaSkillEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_AlexaSkillEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_AlexaSkillEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_AlexaSkillEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_AlexaSkillEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_AlexaSkillEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_AlexaSkillEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_apievent.go b/cloudformation/serverless/aws-serverless-function_apievent.go index 1e2e287d05..3f0d3d447c 100644 --- a/cloudformation/serverless/aws-serverless-function_apievent.go +++ b/cloudformation/serverless/aws-serverless-function_apievent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_ApiEvent AWS CloudFormation Resource (AWS::Serverless::Function.ApiEvent) @@ -23,53 +23,17 @@ type Function_ApiEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api RestApiId string `json:"RestApiId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_ApiEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.ApiEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_ApiEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_ApiEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_ApiEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_ApiEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_ApiEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_ApiEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_bucketsampt.go b/cloudformation/serverless/aws-serverless-function_bucketsampt.go index 0597c59d34..e85518c97b 100644 --- a/cloudformation/serverless/aws-serverless-function_bucketsampt.go +++ b/cloudformation/serverless/aws-serverless-function_bucketsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_BucketSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.BucketSAMPT) @@ -13,53 +13,17 @@ type Function_BucketSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst BucketName string `json:"BucketName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_BucketSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.BucketSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_BucketSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_BucketSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_BucketSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_BucketSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_BucketSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_BucketSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go b/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go index f372357154..18e840043e 100644 --- a/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go +++ b/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_CloudWatchEventEvent AWS CloudFormation Resource (AWS::Serverless::Function.CloudWatchEventEvent) @@ -23,53 +23,17 @@ type Function_CloudWatchEventEvent struct { // See: http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html Pattern interface{} `json:"Pattern,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_CloudWatchEventEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.CloudWatchEventEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_CloudWatchEventEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_CloudWatchEventEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_CloudWatchEventEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_CloudWatchEventEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_CloudWatchEventEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_CloudWatchEventEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_collectionsampt.go b/cloudformation/serverless/aws-serverless-function_collectionsampt.go index 462e22489c..f3a9caef8b 100644 --- a/cloudformation/serverless/aws-serverless-function_collectionsampt.go +++ b/cloudformation/serverless/aws-serverless-function_collectionsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_CollectionSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.CollectionSAMPT) @@ -13,53 +13,17 @@ type Function_CollectionSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst CollectionId string `json:"CollectionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_CollectionSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.CollectionSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_CollectionSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_CollectionSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_CollectionSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_CollectionSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_CollectionSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_CollectionSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_deadletterqueue.go b/cloudformation/serverless/aws-serverless-function_deadletterqueue.go index b110e70101..b94d0f0a8d 100644 --- a/cloudformation/serverless/aws-serverless-function_deadletterqueue.go +++ b/cloudformation/serverless/aws-serverless-function_deadletterqueue.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_DeadLetterQueue AWS CloudFormation Resource (AWS::Serverless::Function.DeadLetterQueue) @@ -18,53 +18,17 @@ type Function_DeadLetterQueue struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_DeadLetterQueue) AWSCloudFormationType() string { return "AWS::Serverless::Function.DeadLetterQueue" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DeadLetterQueue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DeadLetterQueue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DeadLetterQueue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DeadLetterQueue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DeadLetterQueue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DeadLetterQueue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_deploymentpreference.go b/cloudformation/serverless/aws-serverless-function_deploymentpreference.go index a46f675c6c..21a729929a 100644 --- a/cloudformation/serverless/aws-serverless-function_deploymentpreference.go +++ b/cloudformation/serverless/aws-serverless-function_deploymentpreference.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_DeploymentPreference AWS CloudFormation Resource (AWS::Serverless::Function.DeploymentPreference) @@ -33,53 +33,17 @@ type Function_DeploymentPreference struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_DeploymentPreference) AWSCloudFormationType() string { return "AWS::Serverless::Function.DeploymentPreference" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DeploymentPreference) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DeploymentPreference) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DeploymentPreference) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DeploymentPreference) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DeploymentPreference) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DeploymentPreference) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_domainsampt.go b/cloudformation/serverless/aws-serverless-function_domainsampt.go index c5db2072ae..8aa3a614a8 100644 --- a/cloudformation/serverless/aws-serverless-function_domainsampt.go +++ b/cloudformation/serverless/aws-serverless-function_domainsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_DomainSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.DomainSAMPT) @@ -13,53 +13,17 @@ type Function_DomainSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst DomainName string `json:"DomainName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_DomainSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.DomainSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DomainSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DomainSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DomainSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DomainSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DomainSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DomainSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_dynamodbevent.go b/cloudformation/serverless/aws-serverless-function_dynamodbevent.go index 57b9df30c4..5dca4b136e 100644 --- a/cloudformation/serverless/aws-serverless-function_dynamodbevent.go +++ b/cloudformation/serverless/aws-serverless-function_dynamodbevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_DynamoDBEvent AWS CloudFormation Resource (AWS::Serverless::Function.DynamoDBEvent) @@ -28,53 +28,17 @@ type Function_DynamoDBEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#dynamodb Stream string `json:"Stream,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_DynamoDBEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.DynamoDBEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DynamoDBEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_DynamoDBEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DynamoDBEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_DynamoDBEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DynamoDBEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_DynamoDBEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_emptysampt.go b/cloudformation/serverless/aws-serverless-function_emptysampt.go index 536e54bad9..e0d897c37b 100644 --- a/cloudformation/serverless/aws-serverless-function_emptysampt.go +++ b/cloudformation/serverless/aws-serverless-function_emptysampt.go @@ -1,60 +1,24 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_EmptySAMPT AWS CloudFormation Resource (AWS::Serverless::Function.EmptySAMPT) // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst type Function_EmptySAMPT struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_EmptySAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.EmptySAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_EmptySAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_EmptySAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_EmptySAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_EmptySAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_EmptySAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_EmptySAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_eventsource.go b/cloudformation/serverless/aws-serverless-function_eventsource.go index 28b878aa1f..153253a216 100644 --- a/cloudformation/serverless/aws-serverless-function_eventsource.go +++ b/cloudformation/serverless/aws-serverless-function_eventsource.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_EventSource AWS CloudFormation Resource (AWS::Serverless::Function.EventSource) @@ -18,53 +18,17 @@ type Function_EventSource struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#event-source-object Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_EventSource) AWSCloudFormationType() string { return "AWS::Serverless::Function.EventSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_EventSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_EventSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_EventSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_EventSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_EventSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_EventSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_functionenvironment.go b/cloudformation/serverless/aws-serverless-function_functionenvironment.go index e3e0a50c3b..44f75c960d 100644 --- a/cloudformation/serverless/aws-serverless-function_functionenvironment.go +++ b/cloudformation/serverless/aws-serverless-function_functionenvironment.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_FunctionEnvironment AWS CloudFormation Resource (AWS::Serverless::Function.FunctionEnvironment) @@ -13,53 +13,17 @@ type Function_FunctionEnvironment struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object Variables map[string]string `json:"Variables,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_FunctionEnvironment) AWSCloudFormationType() string { return "AWS::Serverless::Function.FunctionEnvironment" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_FunctionEnvironment) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_FunctionEnvironment) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_FunctionEnvironment) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_FunctionEnvironment) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_FunctionEnvironment) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_FunctionEnvironment) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_functionsampt.go b/cloudformation/serverless/aws-serverless-function_functionsampt.go index 2cc7e07f7d..7593bb8121 100644 --- a/cloudformation/serverless/aws-serverless-function_functionsampt.go +++ b/cloudformation/serverless/aws-serverless-function_functionsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_FunctionSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.FunctionSAMPT) @@ -13,53 +13,17 @@ type Function_FunctionSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst FunctionName string `json:"FunctionName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_FunctionSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.FunctionSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_FunctionSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_FunctionSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_FunctionSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_FunctionSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_FunctionSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_FunctionSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_iampolicydocument.go b/cloudformation/serverless/aws-serverless-function_iampolicydocument.go index 057ca417e0..dfadb900e6 100644 --- a/cloudformation/serverless/aws-serverless-function_iampolicydocument.go +++ b/cloudformation/serverless/aws-serverless-function_iampolicydocument.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_IAMPolicyDocument AWS CloudFormation Resource (AWS::Serverless::Function.IAMPolicyDocument) @@ -13,53 +13,17 @@ type Function_IAMPolicyDocument struct { // See: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html Statement interface{} `json:"Statement,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_IAMPolicyDocument) AWSCloudFormationType() string { return "AWS::Serverless::Function.IAMPolicyDocument" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_IAMPolicyDocument) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_IAMPolicyDocument) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_IAMPolicyDocument) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_IAMPolicyDocument) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_IAMPolicyDocument) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_IAMPolicyDocument) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_identitysampt.go b/cloudformation/serverless/aws-serverless-function_identitysampt.go index d401729848..842ba6ccee 100644 --- a/cloudformation/serverless/aws-serverless-function_identitysampt.go +++ b/cloudformation/serverless/aws-serverless-function_identitysampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_IdentitySAMPT AWS CloudFormation Resource (AWS::Serverless::Function.IdentitySAMPT) @@ -13,53 +13,17 @@ type Function_IdentitySAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst IdentityName string `json:"IdentityName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_IdentitySAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.IdentitySAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_IdentitySAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_IdentitySAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_IdentitySAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_IdentitySAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_IdentitySAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_IdentitySAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_iotruleevent.go b/cloudformation/serverless/aws-serverless-function_iotruleevent.go index 87f2038cd2..1d6f07cb4d 100644 --- a/cloudformation/serverless/aws-serverless-function_iotruleevent.go +++ b/cloudformation/serverless/aws-serverless-function_iotruleevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_IoTRuleEvent AWS CloudFormation Resource (AWS::Serverless::Function.IoTRuleEvent) @@ -18,53 +18,17 @@ type Function_IoTRuleEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#iotrule Sql string `json:"Sql,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_IoTRuleEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.IoTRuleEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_IoTRuleEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_IoTRuleEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_IoTRuleEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_IoTRuleEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_IoTRuleEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_IoTRuleEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_keysampt.go b/cloudformation/serverless/aws-serverless-function_keysampt.go index cf6f3ecd4b..5e1dc4c247 100644 --- a/cloudformation/serverless/aws-serverless-function_keysampt.go +++ b/cloudformation/serverless/aws-serverless-function_keysampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_KeySAMPT AWS CloudFormation Resource (AWS::Serverless::Function.KeySAMPT) @@ -13,53 +13,17 @@ type Function_KeySAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst KeyId string `json:"KeyId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_KeySAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.KeySAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_KeySAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_KeySAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_KeySAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_KeySAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_KeySAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_KeySAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_kinesisevent.go b/cloudformation/serverless/aws-serverless-function_kinesisevent.go index 5a3cc8d29d..be4d396ca2 100644 --- a/cloudformation/serverless/aws-serverless-function_kinesisevent.go +++ b/cloudformation/serverless/aws-serverless-function_kinesisevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_KinesisEvent AWS CloudFormation Resource (AWS::Serverless::Function.KinesisEvent) @@ -28,53 +28,17 @@ type Function_KinesisEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis Stream string `json:"Stream,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_KinesisEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.KinesisEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_KinesisEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_KinesisEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_KinesisEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_KinesisEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_KinesisEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_KinesisEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_loggroupsampt.go b/cloudformation/serverless/aws-serverless-function_loggroupsampt.go index 27054a25b8..c6c0f40b9e 100644 --- a/cloudformation/serverless/aws-serverless-function_loggroupsampt.go +++ b/cloudformation/serverless/aws-serverless-function_loggroupsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_LogGroupSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.LogGroupSAMPT) @@ -13,53 +13,17 @@ type Function_LogGroupSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst LogGroupName string `json:"LogGroupName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_LogGroupSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.LogGroupSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_LogGroupSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_LogGroupSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_LogGroupSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_LogGroupSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_LogGroupSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_LogGroupSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_queuesampt.go b/cloudformation/serverless/aws-serverless-function_queuesampt.go index d21695c0d8..f458e44f83 100644 --- a/cloudformation/serverless/aws-serverless-function_queuesampt.go +++ b/cloudformation/serverless/aws-serverless-function_queuesampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_QueueSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.QueueSAMPT) @@ -13,53 +13,17 @@ type Function_QueueSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst QueueName string `json:"QueueName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_QueueSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.QueueSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_QueueSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_QueueSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_QueueSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_QueueSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_QueueSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_QueueSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_s3event.go b/cloudformation/serverless/aws-serverless-function_s3event.go index 9191d87903..89acd18631 100644 --- a/cloudformation/serverless/aws-serverless-function_s3event.go +++ b/cloudformation/serverless/aws-serverless-function_s3event.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_S3Event AWS CloudFormation Resource (AWS::Serverless::Function.S3Event) @@ -23,53 +23,17 @@ type Function_S3Event struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3 Filter *Function_S3NotificationFilter `json:"Filter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_S3Event) AWSCloudFormationType() string { return "AWS::Serverless::Function.S3Event" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_S3Event) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_S3Event) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_S3Event) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_S3Event) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_S3Event) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_S3Event) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_s3location.go b/cloudformation/serverless/aws-serverless-function_s3location.go index dbd3baaa92..c75339c6ac 100644 --- a/cloudformation/serverless/aws-serverless-function_s3location.go +++ b/cloudformation/serverless/aws-serverless-function_s3location.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_S3Location AWS CloudFormation Resource (AWS::Serverless::Function.S3Location) @@ -23,53 +23,17 @@ type Function_S3Location struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Version int `json:"Version,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_S3Location) AWSCloudFormationType() string { return "AWS::Serverless::Function.S3Location" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_S3Location) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_S3Location) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_S3Location) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_S3Location) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_S3Location) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_S3Location) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go b/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go index 24924a3c32..eabd8521b9 100644 --- a/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go +++ b/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_S3NotificationFilter AWS CloudFormation Resource (AWS::Serverless::Function.S3NotificationFilter) @@ -13,53 +13,17 @@ type Function_S3NotificationFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter.html S3Key string `json:"S3Key,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_S3NotificationFilter) AWSCloudFormationType() string { return "AWS::Serverless::Function.S3NotificationFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_S3NotificationFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_S3NotificationFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_S3NotificationFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_S3NotificationFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_S3NotificationFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_S3NotificationFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go b/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go index 4c168360e3..8b744f229b 100644 --- a/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go +++ b/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_SAMPolicyTemplate AWS CloudFormation Resource (AWS::Serverless::Function.SAMPolicyTemplate) @@ -158,53 +158,17 @@ type Function_SAMPolicyTemplate struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst VPCAccessPolicy *Function_EmptySAMPT `json:"VPCAccessPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_SAMPolicyTemplate) AWSCloudFormationType() string { return "AWS::Serverless::Function.SAMPolicyTemplate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_SAMPolicyTemplate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_SAMPolicyTemplate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_SAMPolicyTemplate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_SAMPolicyTemplate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_SAMPolicyTemplate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_SAMPolicyTemplate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_scheduleevent.go b/cloudformation/serverless/aws-serverless-function_scheduleevent.go index 155847426f..4778bd314e 100644 --- a/cloudformation/serverless/aws-serverless-function_scheduleevent.go +++ b/cloudformation/serverless/aws-serverless-function_scheduleevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_ScheduleEvent AWS CloudFormation Resource (AWS::Serverless::Function.ScheduleEvent) @@ -18,53 +18,17 @@ type Function_ScheduleEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#schedule Schedule string `json:"Schedule,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_ScheduleEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.ScheduleEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_ScheduleEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_ScheduleEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_ScheduleEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_ScheduleEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_ScheduleEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_ScheduleEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_snsevent.go b/cloudformation/serverless/aws-serverless-function_snsevent.go index a967de798e..9ee9c78c7a 100644 --- a/cloudformation/serverless/aws-serverless-function_snsevent.go +++ b/cloudformation/serverless/aws-serverless-function_snsevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_SNSEvent AWS CloudFormation Resource (AWS::Serverless::Function.SNSEvent) @@ -13,53 +13,17 @@ type Function_SNSEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#sns Topic string `json:"Topic,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_SNSEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.SNSEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_SNSEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_SNSEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_SNSEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_SNSEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_SNSEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_SNSEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_sqsevent.go b/cloudformation/serverless/aws-serverless-function_sqsevent.go index 2b286b7ed5..c60cb86029 100644 --- a/cloudformation/serverless/aws-serverless-function_sqsevent.go +++ b/cloudformation/serverless/aws-serverless-function_sqsevent.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_SQSEvent AWS CloudFormation Resource (AWS::Serverless::Function.SQSEvent) @@ -23,53 +23,17 @@ type Function_SQSEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#sqs Queue string `json:"Queue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_SQSEvent) AWSCloudFormationType() string { return "AWS::Serverless::Function.SQSEvent" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_SQSEvent) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_SQSEvent) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_SQSEvent) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_SQSEvent) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_SQSEvent) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_SQSEvent) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_statemachinesampt.go b/cloudformation/serverless/aws-serverless-function_statemachinesampt.go index f8e6e7b2d3..9de8e5536b 100644 --- a/cloudformation/serverless/aws-serverless-function_statemachinesampt.go +++ b/cloudformation/serverless/aws-serverless-function_statemachinesampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_StateMachineSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.StateMachineSAMPT) @@ -13,53 +13,17 @@ type Function_StateMachineSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst StateMachineName string `json:"StateMachineName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_StateMachineSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.StateMachineSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_StateMachineSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_StateMachineSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_StateMachineSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_StateMachineSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_StateMachineSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_StateMachineSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_streamsampt.go b/cloudformation/serverless/aws-serverless-function_streamsampt.go index 81d674f972..95e90c2a7a 100644 --- a/cloudformation/serverless/aws-serverless-function_streamsampt.go +++ b/cloudformation/serverless/aws-serverless-function_streamsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_StreamSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.StreamSAMPT) @@ -13,53 +13,17 @@ type Function_StreamSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst StreamName string `json:"StreamName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_StreamSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.StreamSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_StreamSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_StreamSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_StreamSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_StreamSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_StreamSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_StreamSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_tablesampt.go b/cloudformation/serverless/aws-serverless-function_tablesampt.go index 03cbb375af..a95a2673cb 100644 --- a/cloudformation/serverless/aws-serverless-function_tablesampt.go +++ b/cloudformation/serverless/aws-serverless-function_tablesampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_TableSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.TableSAMPT) @@ -13,53 +13,17 @@ type Function_TableSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_TableSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.TableSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TableSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TableSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TableSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TableSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TableSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TableSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go b/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go index e51fe6d73e..a148576ad8 100644 --- a/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go +++ b/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_TableStreamSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.TableStreamSAMPT) @@ -18,53 +18,17 @@ type Function_TableStreamSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst TableName string `json:"TableName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_TableStreamSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.TableStreamSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TableStreamSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TableStreamSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TableStreamSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TableStreamSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TableStreamSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TableStreamSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_topicsampt.go b/cloudformation/serverless/aws-serverless-function_topicsampt.go index db867f10b0..c33051ebc5 100644 --- a/cloudformation/serverless/aws-serverless-function_topicsampt.go +++ b/cloudformation/serverless/aws-serverless-function_topicsampt.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_TopicSAMPT AWS CloudFormation Resource (AWS::Serverless::Function.TopicSAMPT) @@ -13,53 +13,17 @@ type Function_TopicSAMPT struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst TopicName string `json:"TopicName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_TopicSAMPT) AWSCloudFormationType() string { return "AWS::Serverless::Function.TopicSAMPT" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TopicSAMPT) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_TopicSAMPT) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TopicSAMPT) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_TopicSAMPT) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TopicSAMPT) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_TopicSAMPT) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-function_vpcconfig.go b/cloudformation/serverless/aws-serverless-function_vpcconfig.go index 3b761bdca1..e50656c0e6 100644 --- a/cloudformation/serverless/aws-serverless-function_vpcconfig.go +++ b/cloudformation/serverless/aws-serverless-function_vpcconfig.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Function_VpcConfig AWS CloudFormation Resource (AWS::Serverless::Function.VpcConfig) @@ -18,53 +18,17 @@ type Function_VpcConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html SubnetIds []string `json:"SubnetIds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Function_VpcConfig) AWSCloudFormationType() string { return "AWS::Serverless::Function.VpcConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_VpcConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Function_VpcConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_VpcConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Function_VpcConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_VpcConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Function_VpcConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-layerversion.go b/cloudformation/serverless/aws-serverless-layerversion.go index bf12400273..223539a380 100644 --- a/cloudformation/serverless/aws-serverless-layerversion.go +++ b/cloudformation/serverless/aws-serverless-layerversion.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LayerVersion AWS CloudFormation Resource (AWS::Serverless::LayerVersion) @@ -42,14 +42,14 @@ type LayerVersion struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesslayerversion RetentionPolicy string `json:"RetentionPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *LayerVersion) AWSCloudFormationType() string { return "AWS::Serverless::LayerVersion" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersion) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LayerVersion) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersion) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LayerVersion) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersion) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LayerVersion) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LayerVersion) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r LayerVersion) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *LayerVersion) UnmarshalJSON(b []byte) error { *r = LayerVersion(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/serverless/aws-serverless-simpletable.go b/cloudformation/serverless/aws-serverless-simpletable.go index 4cdcce2acc..69ef57a593 100644 --- a/cloudformation/serverless/aws-serverless-simpletable.go +++ b/cloudformation/serverless/aws-serverless-simpletable.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimpleTable AWS CloudFormation Resource (AWS::Serverless::SimpleTable) @@ -37,14 +37,14 @@ type SimpleTable struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesssimpletable Tags map[string]string `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *SimpleTable) AWSCloudFormationType() string { return "AWS::Serverless::SimpleTable" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SimpleTable) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r SimpleTable) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *SimpleTable) UnmarshalJSON(b []byte) error { *r = SimpleTable(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/serverless/aws-serverless-simpletable_primarykey.go b/cloudformation/serverless/aws-serverless-simpletable_primarykey.go index 634649c73d..02aa88e66e 100644 --- a/cloudformation/serverless/aws-serverless-simpletable_primarykey.go +++ b/cloudformation/serverless/aws-serverless-simpletable_primarykey.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimpleTable_PrimaryKey AWS CloudFormation Resource (AWS::Serverless::SimpleTable.PrimaryKey) @@ -18,53 +18,17 @@ type SimpleTable_PrimaryKey struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#primary-key-object Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimpleTable_PrimaryKey) AWSCloudFormationType() string { return "AWS::Serverless::SimpleTable.PrimaryKey" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable_PrimaryKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable_PrimaryKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable_PrimaryKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable_PrimaryKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable_PrimaryKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable_PrimaryKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go b/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go index 60c56abb96..2fbee04616 100644 --- a/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go +++ b/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimpleTable_ProvisionedThroughput AWS CloudFormation Resource (AWS::Serverless::SimpleTable.ProvisionedThroughput) @@ -18,53 +18,17 @@ type SimpleTable_ProvisionedThroughput struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html WriteCapacityUnits int `json:"WriteCapacityUnits"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimpleTable_ProvisionedThroughput) AWSCloudFormationType() string { return "AWS::Serverless::SimpleTable.ProvisionedThroughput" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable_ProvisionedThroughput) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable_ProvisionedThroughput) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable_ProvisionedThroughput) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable_ProvisionedThroughput) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable_ProvisionedThroughput) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable_ProvisionedThroughput) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go b/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go index 77667f84e8..5b0887e2f8 100644 --- a/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go +++ b/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go @@ -1,7 +1,7 @@ package serverless import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SimpleTable_SSESpecification AWS CloudFormation Resource (AWS::Serverless::SimpleTable.SSESpecification) @@ -13,53 +13,17 @@ type SimpleTable_SSESpecification struct { // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html SSEEnabled bool `json:"SSEEnabled,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SimpleTable_SSESpecification) AWSCloudFormationType() string { return "AWS::Serverless::SimpleTable.SSESpecification" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable_SSESpecification) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SimpleTable_SSESpecification) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable_SSESpecification) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SimpleTable_SSESpecification) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable_SSESpecification) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SimpleTable_SSESpecification) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/serverless/function_codeuri.go b/cloudformation/serverless/function_codeuri.go index 033b21be62..bd77b24199 100644 --- a/cloudformation/serverless/function_codeuri.go +++ b/cloudformation/serverless/function_codeuri.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sort" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // Function_CodeUri is a helper struct that can hold either a String or S3Location value diff --git a/cloudformation/serverless/function_events.go b/cloudformation/serverless/function_events.go index 3f96be2c4a..3b59ba40fe 100644 --- a/cloudformation/serverless/function_events.go +++ b/cloudformation/serverless/function_events.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sort" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // Function_Events is a helper struct that can hold either a String or String value diff --git a/cloudformation/serverless/function_policies.go b/cloudformation/serverless/function_policies.go index e103598c51..f998ad3360 100644 --- a/cloudformation/serverless/function_policies.go +++ b/cloudformation/serverless/function_policies.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sort" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // Function_Policies is a helper struct that can hold either a String, String, IAMPolicyDocument, SAMPolicyTemplate, or IAMPolicyDocument value diff --git a/cloudformation/serverless/function_properties.go b/cloudformation/serverless/function_properties.go index 200b4d9a58..eb1c0652ff 100644 --- a/cloudformation/serverless/function_properties.go +++ b/cloudformation/serverless/function_properties.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sort" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // Function_Properties is a helper struct that can hold either a S3Event, SNSEvent, SQSEvent, KinesisEvent, DynamoDBEvent, ApiEvent, ScheduleEvent, CloudWatchEventEvent, IoTRuleEvent, or AlexaSkillEvent value diff --git a/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go b/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go index 5f33a9518f..fb6ce75db6 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // AcceptedPortfolioShare AWS CloudFormation Resource (AWS::ServiceCatalog::AcceptedPortfolioShare) @@ -22,14 +22,14 @@ type AcceptedPortfolioShare struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-acceptedportfolioshare.html#cfn-servicecatalog-acceptedportfolioshare-portfolioid PortfolioId string `json:"PortfolioId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *AcceptedPortfolioShare) AWSCloudFormationType() string { return "AWS::ServiceCatalog::AcceptedPortfolioShare" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AcceptedPortfolioShare) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *AcceptedPortfolioShare) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AcceptedPortfolioShare) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *AcceptedPortfolioShare) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AcceptedPortfolioShare) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *AcceptedPortfolioShare) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 AcceptedPortfolioShare) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r AcceptedPortfolioShare) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *AcceptedPortfolioShare) UnmarshalJSON(b []byte) error { *r = AcceptedPortfolioShare(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go index 55ce5dee0d..a19e9408fa 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // CloudFormationProduct AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProduct) @@ -63,14 +63,14 @@ type CloudFormationProduct struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationproduct.html#cfn-servicecatalog-cloudformationproduct-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -78,42 +78,6 @@ func (r *CloudFormationProduct) AWSCloudFormationType() string { return "AWS::ServiceCatalog::CloudFormationProduct" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProduct) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProduct) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProduct) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProduct) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProduct) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProduct) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CloudFormationProduct) MarshalJSON() ([]byte, error) { @@ -127,9 +91,9 @@ func (r CloudFormationProduct) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -158,13 +122,13 @@ func (r *CloudFormationProduct) UnmarshalJSON(b []byte) error { *r = CloudFormationProduct(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go index bf9c6ca740..93037a29e4 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go @@ -1,7 +1,7 @@ package servicecatalog import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CloudFormationProduct_ProvisioningArtifactProperties AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProduct.ProvisioningArtifactProperties) @@ -28,53 +28,17 @@ type CloudFormationProduct_ProvisioningArtifactProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationproduct-provisioningartifactproperties.html#cfn-servicecatalog-cloudformationproduct-provisioningartifactproperties-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CloudFormationProduct_ProvisioningArtifactProperties) AWSCloudFormationType() string { return "AWS::ServiceCatalog::CloudFormationProduct.ProvisioningArtifactProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProduct_ProvisioningArtifactProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProduct_ProvisioningArtifactProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProduct_ProvisioningArtifactProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProduct_ProvisioningArtifactProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProduct_ProvisioningArtifactProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProduct_ProvisioningArtifactProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go index e7168b4e29..95ce5181f4 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // CloudFormationProvisionedProduct AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProvisionedProduct) @@ -68,14 +68,14 @@ type CloudFormationProvisionedProduct struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-cloudformationprovisionedproduct.html#cfn-servicecatalog-cloudformationprovisionedproduct-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -83,42 +83,6 @@ func (r *CloudFormationProvisionedProduct) AWSCloudFormationType() string { return "AWS::ServiceCatalog::CloudFormationProvisionedProduct" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProvisionedProduct) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProvisionedProduct) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProvisionedProduct) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProvisionedProduct) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProvisionedProduct) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProvisionedProduct) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 CloudFormationProvisionedProduct) MarshalJSON() ([]byte, error) { @@ -132,9 +96,9 @@ func (r CloudFormationProvisionedProduct) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -163,13 +127,13 @@ func (r *CloudFormationProvisionedProduct) UnmarshalJSON(b []byte) error { *r = CloudFormationProvisionedProduct(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go index cb3c9729aa..f51c559635 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go @@ -1,7 +1,7 @@ package servicecatalog import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CloudFormationProvisionedProduct_ProvisioningParameter AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProvisionedProduct.ProvisioningParameter) @@ -18,53 +18,17 @@ type CloudFormationProvisionedProduct_ProvisioningParameter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationprovisionedproduct-provisioningparameter.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningparameter-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CloudFormationProvisionedProduct_ProvisioningParameter) AWSCloudFormationType() string { return "AWS::ServiceCatalog::CloudFormationProvisionedProduct.ProvisioningParameter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProvisionedProduct_ProvisioningParameter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProvisionedProduct_ProvisioningParameter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProvisionedProduct_ProvisioningParameter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProvisionedProduct_ProvisioningParameter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProvisionedProduct_ProvisioningParameter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProvisionedProduct_ProvisioningParameter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go index b330a9923d..13b3ff8654 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go @@ -1,7 +1,7 @@ package servicecatalog import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // CloudFormationProvisionedProduct_ProvisioningPreferences AWS CloudFormation Resource (AWS::ServiceCatalog::CloudFormationProvisionedProduct.ProvisioningPreferences) @@ -43,53 +43,17 @@ type CloudFormationProvisionedProduct_ProvisioningPreferences struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicecatalog-cloudformationprovisionedproduct-provisioningpreferences.html#cfn-servicecatalog-cloudformationprovisionedproduct-provisioningpreferences-stacksetregions StackSetRegions []string `json:"StackSetRegions,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) AWSCloudFormationType() string { return "AWS::ServiceCatalog::CloudFormationProvisionedProduct.ProvisioningPreferences" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *CloudFormationProvisionedProduct_ProvisioningPreferences) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go index 55852c83a1..aafa74ba4f 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchNotificationConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::LaunchNotificationConstraint) @@ -37,14 +37,14 @@ type LaunchNotificationConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchnotificationconstraint.html#cfn-servicecatalog-launchnotificationconstraint-productid ProductId string `json:"ProductId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *LaunchNotificationConstraint) AWSCloudFormationType() string { return "AWS::ServiceCatalog::LaunchNotificationConstraint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchNotificationConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchNotificationConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchNotificationConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchNotificationConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchNotificationConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchNotificationConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LaunchNotificationConstraint) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r LaunchNotificationConstraint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *LaunchNotificationConstraint) UnmarshalJSON(b []byte) error { *r = LaunchNotificationConstraint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go index f2dd417dc8..2fd064567f 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchRoleConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::LaunchRoleConstraint) @@ -37,14 +37,14 @@ type LaunchRoleConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchroleconstraint.html#cfn-servicecatalog-launchroleconstraint-rolearn RoleArn string `json:"RoleArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *LaunchRoleConstraint) AWSCloudFormationType() string { return "AWS::ServiceCatalog::LaunchRoleConstraint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchRoleConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchRoleConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchRoleConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchRoleConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchRoleConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchRoleConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LaunchRoleConstraint) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r LaunchRoleConstraint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *LaunchRoleConstraint) UnmarshalJSON(b []byte) error { *r = LaunchRoleConstraint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go index de926f7d84..84d9b51e15 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // LaunchTemplateConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::LaunchTemplateConstraint) @@ -37,14 +37,14 @@ type LaunchTemplateConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-launchtemplateconstraint.html#cfn-servicecatalog-launchtemplateconstraint-rules Rules string `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *LaunchTemplateConstraint) AWSCloudFormationType() string { return "AWS::ServiceCatalog::LaunchTemplateConstraint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplateConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *LaunchTemplateConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplateConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *LaunchTemplateConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplateConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *LaunchTemplateConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 LaunchTemplateConstraint) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r LaunchTemplateConstraint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *LaunchTemplateConstraint) UnmarshalJSON(b []byte) error { *r = LaunchTemplateConstraint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go index 9d43aa8fbd..3d28f1d41d 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Portfolio AWS CloudFormation Resource (AWS::ServiceCatalog::Portfolio) @@ -38,14 +38,14 @@ type Portfolio struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolio.html#cfn-servicecatalog-portfolio-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -53,42 +53,6 @@ func (r *Portfolio) AWSCloudFormationType() string { return "AWS::ServiceCatalog::Portfolio" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Portfolio) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Portfolio) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Portfolio) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Portfolio) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Portfolio) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Portfolio) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Portfolio) MarshalJSON() ([]byte, error) { @@ -102,9 +66,9 @@ func (r Portfolio) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -133,13 +97,13 @@ func (r *Portfolio) UnmarshalJSON(b []byte) error { *r = Portfolio(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go index 048e81c7b6..e14cb94387 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PortfolioPrincipalAssociation AWS CloudFormation Resource (AWS::ServiceCatalog::PortfolioPrincipalAssociation) @@ -32,14 +32,14 @@ type PortfolioPrincipalAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioprincipalassociation.html#cfn-servicecatalog-portfolioprincipalassociation-principaltype PrincipalType string `json:"PrincipalType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *PortfolioPrincipalAssociation) AWSCloudFormationType() string { return "AWS::ServiceCatalog::PortfolioPrincipalAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PortfolioPrincipalAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PortfolioPrincipalAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PortfolioPrincipalAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PortfolioPrincipalAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PortfolioPrincipalAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PortfolioPrincipalAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PortfolioPrincipalAssociation) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r PortfolioPrincipalAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *PortfolioPrincipalAssociation) UnmarshalJSON(b []byte) error { *r = PortfolioPrincipalAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go index c15db2ddba..a00669802a 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PortfolioProductAssociation AWS CloudFormation Resource (AWS::ServiceCatalog::PortfolioProductAssociation) @@ -32,14 +32,14 @@ type PortfolioProductAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html#cfn-servicecatalog-portfolioproductassociation-sourceportfolioid SourcePortfolioId string `json:"SourcePortfolioId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *PortfolioProductAssociation) AWSCloudFormationType() string { return "AWS::ServiceCatalog::PortfolioProductAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PortfolioProductAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PortfolioProductAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PortfolioProductAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PortfolioProductAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PortfolioProductAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PortfolioProductAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PortfolioProductAssociation) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r PortfolioProductAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *PortfolioProductAssociation) UnmarshalJSON(b []byte) error { *r = PortfolioProductAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go index 937050e564..f6bd242f4a 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PortfolioShare AWS CloudFormation Resource (AWS::ServiceCatalog::PortfolioShare) @@ -27,14 +27,14 @@ type PortfolioShare struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioshare.html#cfn-servicecatalog-portfolioshare-portfolioid PortfolioId string `json:"PortfolioId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *PortfolioShare) AWSCloudFormationType() string { return "AWS::ServiceCatalog::PortfolioShare" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PortfolioShare) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PortfolioShare) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PortfolioShare) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PortfolioShare) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PortfolioShare) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PortfolioShare) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PortfolioShare) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r PortfolioShare) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *PortfolioShare) UnmarshalJSON(b []byte) error { *r = PortfolioShare(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go index 737ac90db6..00f506cd9b 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceUpdateConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::ResourceUpdateConstraint) @@ -37,14 +37,14 @@ type ResourceUpdateConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-resourceupdateconstraint.html#cfn-servicecatalog-resourceupdateconstraint-tagupdateonprovisionedproduct TagUpdateOnProvisionedProduct string `json:"TagUpdateOnProvisionedProduct,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *ResourceUpdateConstraint) AWSCloudFormationType() string { return "AWS::ServiceCatalog::ResourceUpdateConstraint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceUpdateConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceUpdateConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceUpdateConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceUpdateConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceUpdateConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceUpdateConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourceUpdateConstraint) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r ResourceUpdateConstraint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *ResourceUpdateConstraint) UnmarshalJSON(b []byte) error { *r = ResourceUpdateConstraint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go index a6ded635d5..24c7ee97a2 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StackSetConstraint AWS CloudFormation Resource (AWS::ServiceCatalog::StackSetConstraint) @@ -57,14 +57,14 @@ type StackSetConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-stacksetconstraint.html#cfn-servicecatalog-stacksetconstraint-stackinstancecontrol StackInstanceControl string `json:"StackInstanceControl,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -72,42 +72,6 @@ func (r *StackSetConstraint) AWSCloudFormationType() string { return "AWS::ServiceCatalog::StackSetConstraint" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StackSetConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StackSetConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StackSetConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StackSetConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StackSetConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StackSetConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 StackSetConstraint) MarshalJSON() ([]byte, error) { @@ -121,9 +85,9 @@ func (r StackSetConstraint) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -152,13 +116,13 @@ func (r *StackSetConstraint) UnmarshalJSON(b []byte) error { *r = StackSetConstraint(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go b/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go index adbba6a328..6ad3013e71 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TagOption AWS CloudFormation Resource (AWS::ServiceCatalog::TagOption) @@ -27,14 +27,14 @@ type TagOption struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoption.html#cfn-servicecatalog-tagoption-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *TagOption) AWSCloudFormationType() string { return "AWS::ServiceCatalog::TagOption" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TagOption) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TagOption) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TagOption) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TagOption) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TagOption) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TagOption) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TagOption) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r TagOption) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *TagOption) UnmarshalJSON(b []byte) error { *r = TagOption(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go b/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go index ba53056d03..d41bfcc2b6 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TagOptionAssociation AWS CloudFormation Resource (AWS::ServiceCatalog::TagOptionAssociation) @@ -22,14 +22,14 @@ type TagOptionAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-tagoptionassociation.html#cfn-servicecatalog-tagoptionassociation-tagoptionid TagOptionId string `json:"TagOptionId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *TagOptionAssociation) AWSCloudFormationType() string { return "AWS::ServiceCatalog::TagOptionAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TagOptionAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TagOptionAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TagOptionAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TagOptionAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TagOptionAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TagOptionAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TagOptionAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r TagOptionAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *TagOptionAssociation) UnmarshalJSON(b []byte) error { *r = TagOptionAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go b/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go index 98e5445b5f..4138ff4155 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // HttpNamespace AWS CloudFormation Resource (AWS::ServiceDiscovery::HttpNamespace) @@ -22,14 +22,14 @@ type HttpNamespace struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-httpnamespace.html#cfn-servicediscovery-httpnamespace-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *HttpNamespace) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::HttpNamespace" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HttpNamespace) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *HttpNamespace) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HttpNamespace) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *HttpNamespace) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HttpNamespace) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *HttpNamespace) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 HttpNamespace) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r HttpNamespace) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *HttpNamespace) UnmarshalJSON(b []byte) error { *r = HttpNamespace(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-instance.go b/cloudformation/servicediscovery/aws-servicediscovery-instance.go index 49a49d9d73..e698155dfe 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-instance.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-instance.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Instance AWS CloudFormation Resource (AWS::ServiceDiscovery::Instance) @@ -27,14 +27,14 @@ type Instance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-instance.html#cfn-servicediscovery-instance-serviceid ServiceId string `json:"ServiceId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Instance) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::Instance" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Instance) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Instance) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Instance) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Instance) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Instance) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Instance) UnmarshalJSON(b []byte) error { *r = Instance(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go b/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go index 8021c25f29..6016e7d785 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PrivateDnsNamespace AWS CloudFormation Resource (AWS::ServiceDiscovery::PrivateDnsNamespace) @@ -27,14 +27,14 @@ type PrivateDnsNamespace struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-privatednsnamespace.html#cfn-servicediscovery-privatednsnamespace-vpc Vpc string `json:"Vpc,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *PrivateDnsNamespace) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::PrivateDnsNamespace" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PrivateDnsNamespace) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PrivateDnsNamespace) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PrivateDnsNamespace) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PrivateDnsNamespace) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PrivateDnsNamespace) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PrivateDnsNamespace) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PrivateDnsNamespace) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r PrivateDnsNamespace) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *PrivateDnsNamespace) UnmarshalJSON(b []byte) error { *r = PrivateDnsNamespace(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go b/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go index be141a860e..e2b77fabc4 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PublicDnsNamespace AWS CloudFormation Resource (AWS::ServiceDiscovery::PublicDnsNamespace) @@ -22,14 +22,14 @@ type PublicDnsNamespace struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-publicdnsnamespace.html#cfn-servicediscovery-publicdnsnamespace-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *PublicDnsNamespace) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::PublicDnsNamespace" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PublicDnsNamespace) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PublicDnsNamespace) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PublicDnsNamespace) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PublicDnsNamespace) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PublicDnsNamespace) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PublicDnsNamespace) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PublicDnsNamespace) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r PublicDnsNamespace) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *PublicDnsNamespace) UnmarshalJSON(b []byte) error { *r = PublicDnsNamespace(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service.go b/cloudformation/servicediscovery/aws-servicediscovery-service.go index 255eadac98..bded08f0eb 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service AWS CloudFormation Resource (AWS::ServiceDiscovery::Service) @@ -42,14 +42,14 @@ type Service struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-namespaceid NamespaceId string `json:"NamespaceId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *Service) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::Service" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Service) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r Service) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *Service) UnmarshalJSON(b []byte) error { *r = Service(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go index c6197ee7b8..b455c66cd6 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go @@ -1,7 +1,7 @@ package servicediscovery import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_DnsConfig AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.DnsConfig) @@ -23,53 +23,17 @@ type Service_DnsConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html#cfn-servicediscovery-service-dnsconfig-routingpolicy RoutingPolicy string `json:"RoutingPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_DnsConfig) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::Service.DnsConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_DnsConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_DnsConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_DnsConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_DnsConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_DnsConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_DnsConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go index 85f2ea4c03..491614689b 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go @@ -1,7 +1,7 @@ package servicediscovery import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_DnsRecord AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.DnsRecord) @@ -18,53 +18,17 @@ type Service_DnsRecord struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsrecord.html#cfn-servicediscovery-service-dnsrecord-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_DnsRecord) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::Service.DnsRecord" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_DnsRecord) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_DnsRecord) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_DnsRecord) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_DnsRecord) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_DnsRecord) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_DnsRecord) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go index 5f0a3db634..b69eff3866 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go @@ -1,7 +1,7 @@ package servicediscovery import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_HealthCheckConfig AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.HealthCheckConfig) @@ -23,53 +23,17 @@ type Service_HealthCheckConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckconfig.html#cfn-servicediscovery-service-healthcheckconfig-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_HealthCheckConfig) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::Service.HealthCheckConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_HealthCheckConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_HealthCheckConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_HealthCheckConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_HealthCheckConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_HealthCheckConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_HealthCheckConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go index e5ccf842ec..c3f292c583 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go @@ -1,7 +1,7 @@ package servicediscovery import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Service_HealthCheckCustomConfig AWS CloudFormation Resource (AWS::ServiceDiscovery::Service.HealthCheckCustomConfig) @@ -13,53 +13,17 @@ type Service_HealthCheckCustomConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-healthcheckcustomconfig.html#cfn-servicediscovery-service-healthcheckcustomconfig-failurethreshold FailureThreshold float64 `json:"FailureThreshold,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Service_HealthCheckCustomConfig) AWSCloudFormationType() string { return "AWS::ServiceDiscovery::Service.HealthCheckCustomConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_HealthCheckCustomConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Service_HealthCheckCustomConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_HealthCheckCustomConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Service_HealthCheckCustomConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_HealthCheckCustomConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Service_HealthCheckCustomConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-configurationset.go b/cloudformation/ses/aws-ses-configurationset.go index 9d3cef563e..7d88e2b47a 100644 --- a/cloudformation/ses/aws-ses-configurationset.go +++ b/cloudformation/ses/aws-ses-configurationset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSet AWS CloudFormation Resource (AWS::SES::ConfigurationSet) @@ -17,14 +17,14 @@ type ConfigurationSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *ConfigurationSet) AWSCloudFormationType() string { return "AWS::SES::ConfigurationSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationSet) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r ConfigurationSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *ConfigurationSet) UnmarshalJSON(b []byte) error { *r = ConfigurationSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination.go index b691a9d771..61a55a777d 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination) @@ -22,14 +22,14 @@ type ConfigurationSetEventDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination EventDestination *ConfigurationSetEventDestination_EventDestination `json:"EventDestination,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ConfigurationSetEventDestination) AWSCloudFormationType() string { return "AWS::SES::ConfigurationSetEventDestination" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ConfigurationSetEventDestination) UnmarshalJSON(b []byte) error { *r = ConfigurationSetEventDestination(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go index ac828110b4..2461dc54a0 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_CloudWatchDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.CloudWatchDestination) @@ -13,53 +13,17 @@ type ConfigurationSetEventDestination_CloudWatchDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-cloudwatchdestination.html#cfn-ses-configurationseteventdestination-cloudwatchdestination-dimensionconfigurations DimensionConfigurations []ConfigurationSetEventDestination_DimensionConfiguration `json:"DimensionConfigurations,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_CloudWatchDestination) AWSCloudFormationType() string { return "AWS::SES::ConfigurationSetEventDestination.CloudWatchDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_CloudWatchDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go b/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go index 829f0c5212..9b2a3ad787 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_DimensionConfiguration AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.DimensionConfiguration) @@ -23,53 +23,17 @@ type ConfigurationSetEventDestination_DimensionConfiguration struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-dimensionconfiguration.html#cfn-ses-configurationseteventdestination-dimensionconfiguration-dimensionvaluesource DimensionValueSource string `json:"DimensionValueSource,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_DimensionConfiguration) AWSCloudFormationType() string { return "AWS::SES::ConfigurationSetEventDestination.DimensionConfiguration" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_DimensionConfiguration) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go index 2cf0a97604..e6ca37a33b 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_EventDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.EventDestination) @@ -33,53 +33,17 @@ type ConfigurationSetEventDestination_EventDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html#cfn-ses-configurationseteventdestination-eventdestination-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_EventDestination) AWSCloudFormationType() string { return "AWS::SES::ConfigurationSetEventDestination.EventDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_EventDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_EventDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_EventDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_EventDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_EventDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_EventDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go index ecf88116a9..720cd5586d 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ConfigurationSetEventDestination_KinesisFirehoseDestination AWS CloudFormation Resource (AWS::SES::ConfigurationSetEventDestination.KinesisFirehoseDestination) @@ -18,53 +18,17 @@ type ConfigurationSetEventDestination_KinesisFirehoseDestination struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-kinesisfirehosedestination.html#cfn-ses-configurationseteventdestination-kinesisfirehosedestination-iamrolearn IAMRoleARN string `json:"IAMRoleARN,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) AWSCloudFormationType() string { return "AWS::SES::ConfigurationSetEventDestination.KinesisFirehoseDestination" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ConfigurationSetEventDestination_KinesisFirehoseDestination) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptfilter.go b/cloudformation/ses/aws-ses-receiptfilter.go index d3eda7b86d..793db2d09c 100644 --- a/cloudformation/ses/aws-ses-receiptfilter.go +++ b/cloudformation/ses/aws-ses-receiptfilter.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptFilter AWS CloudFormation Resource (AWS::SES::ReceiptFilter) @@ -17,14 +17,14 @@ type ReceiptFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html#cfn-ses-receiptfilter-filter Filter *ReceiptFilter_Filter `json:"Filter,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *ReceiptFilter) AWSCloudFormationType() string { return "AWS::SES::ReceiptFilter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReceiptFilter) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r ReceiptFilter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *ReceiptFilter) UnmarshalJSON(b []byte) error { *r = ReceiptFilter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ses/aws-ses-receiptfilter_filter.go b/cloudformation/ses/aws-ses-receiptfilter_filter.go index a67a4404eb..81210826c9 100644 --- a/cloudformation/ses/aws-ses-receiptfilter_filter.go +++ b/cloudformation/ses/aws-ses-receiptfilter_filter.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptFilter_Filter AWS CloudFormation Resource (AWS::SES::ReceiptFilter.Filter) @@ -18,53 +18,17 @@ type ReceiptFilter_Filter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-filter.html#cfn-ses-receiptfilter-filter-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptFilter_Filter) AWSCloudFormationType() string { return "AWS::SES::ReceiptFilter.Filter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptFilter_Filter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptFilter_Filter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptFilter_Filter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptFilter_Filter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptFilter_Filter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptFilter_Filter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go b/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go index 907117287b..42ad94f3dc 100644 --- a/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go +++ b/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptFilter_IpFilter AWS CloudFormation Resource (AWS::SES::ReceiptFilter.IpFilter) @@ -18,53 +18,17 @@ type ReceiptFilter_IpFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptfilter-ipfilter.html#cfn-ses-receiptfilter-ipfilter-policy Policy string `json:"Policy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptFilter_IpFilter) AWSCloudFormationType() string { return "AWS::SES::ReceiptFilter.IpFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptFilter_IpFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptFilter_IpFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptFilter_IpFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptFilter_IpFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptFilter_IpFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptFilter_IpFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule.go b/cloudformation/ses/aws-ses-receiptrule.go index b6c97a2254..6f3a198597 100644 --- a/cloudformation/ses/aws-ses-receiptrule.go +++ b/cloudformation/ses/aws-ses-receiptrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule AWS CloudFormation Resource (AWS::SES::ReceiptRule) @@ -27,14 +27,14 @@ type ReceiptRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptrule.html#cfn-ses-receiptrule-rulesetname RuleSetName string `json:"RuleSetName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *ReceiptRule) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReceiptRule) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r ReceiptRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *ReceiptRule) UnmarshalJSON(b []byte) error { *r = ReceiptRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ses/aws-ses-receiptrule_action.go b/cloudformation/ses/aws-ses-receiptrule_action.go index 5cfa32141e..99bbefbe93 100644 --- a/cloudformation/ses/aws-ses-receiptrule_action.go +++ b/cloudformation/ses/aws-ses-receiptrule_action.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_Action AWS CloudFormation Resource (AWS::SES::ReceiptRule.Action) @@ -43,53 +43,17 @@ type ReceiptRule_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-action.html#cfn-ses-receiptrule-action-workmailaction WorkmailAction *ReceiptRule_WorkmailAction `json:"WorkmailAction,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_Action) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go b/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go index dffa74e4e2..59ef965b9c 100644 --- a/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_AddHeaderAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.AddHeaderAction) @@ -18,53 +18,17 @@ type ReceiptRule_AddHeaderAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-addheaderaction.html#cfn-ses-receiptrule-addheaderaction-headervalue HeaderValue string `json:"HeaderValue,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_AddHeaderAction) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.AddHeaderAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_AddHeaderAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_AddHeaderAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_AddHeaderAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_AddHeaderAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_AddHeaderAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_AddHeaderAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_bounceaction.go b/cloudformation/ses/aws-ses-receiptrule_bounceaction.go index 9c5aab9bc9..a0e657ded6 100644 --- a/cloudformation/ses/aws-ses-receiptrule_bounceaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_bounceaction.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_BounceAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.BounceAction) @@ -33,53 +33,17 @@ type ReceiptRule_BounceAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-bounceaction.html#cfn-ses-receiptrule-bounceaction-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_BounceAction) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.BounceAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_BounceAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_BounceAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_BounceAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_BounceAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_BounceAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_BounceAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go b/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go index c3c0317144..4da3b6b47c 100644 --- a/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_LambdaAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.LambdaAction) @@ -23,53 +23,17 @@ type ReceiptRule_LambdaAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-lambdaaction.html#cfn-ses-receiptrule-lambdaaction-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_LambdaAction) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.LambdaAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_LambdaAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_LambdaAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_LambdaAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_LambdaAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_LambdaAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_LambdaAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_rule.go b/cloudformation/ses/aws-ses-receiptrule_rule.go index 22ad4075cc..6cd5fc95a0 100644 --- a/cloudformation/ses/aws-ses-receiptrule_rule.go +++ b/cloudformation/ses/aws-ses-receiptrule_rule.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_Rule AWS CloudFormation Resource (AWS::SES::ReceiptRule.Rule) @@ -38,53 +38,17 @@ type ReceiptRule_Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-rule.html#cfn-ses-receiptrule-rule-tlspolicy TlsPolicy string `json:"TlsPolicy,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_Rule) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.Rule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_s3action.go b/cloudformation/ses/aws-ses-receiptrule_s3action.go index 5f0874a3be..9416f97801 100644 --- a/cloudformation/ses/aws-ses-receiptrule_s3action.go +++ b/cloudformation/ses/aws-ses-receiptrule_s3action.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_S3Action AWS CloudFormation Resource (AWS::SES::ReceiptRule.S3Action) @@ -28,53 +28,17 @@ type ReceiptRule_S3Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-s3action.html#cfn-ses-receiptrule-s3action-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_S3Action) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.S3Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_S3Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_S3Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_S3Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_S3Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_S3Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_S3Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_snsaction.go b/cloudformation/ses/aws-ses-receiptrule_snsaction.go index 71f3bcba48..c29d0d567f 100644 --- a/cloudformation/ses/aws-ses-receiptrule_snsaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_snsaction.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_SNSAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.SNSAction) @@ -18,53 +18,17 @@ type ReceiptRule_SNSAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-snsaction.html#cfn-ses-receiptrule-snsaction-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_SNSAction) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.SNSAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_SNSAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_SNSAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_SNSAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_SNSAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_SNSAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_SNSAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_stopaction.go b/cloudformation/ses/aws-ses-receiptrule_stopaction.go index b8331a07be..ae895a37a4 100644 --- a/cloudformation/ses/aws-ses-receiptrule_stopaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_stopaction.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_StopAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.StopAction) @@ -18,53 +18,17 @@ type ReceiptRule_StopAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_StopAction) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.StopAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_StopAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_StopAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_StopAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_StopAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_StopAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_StopAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptrule_workmailaction.go b/cloudformation/ses/aws-ses-receiptrule_workmailaction.go index d991a0ded3..02cc4fbd43 100644 --- a/cloudformation/ses/aws-ses-receiptrule_workmailaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_workmailaction.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRule_WorkmailAction AWS CloudFormation Resource (AWS::SES::ReceiptRule.WorkmailAction) @@ -18,53 +18,17 @@ type ReceiptRule_WorkmailAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-workmailaction.html#cfn-ses-receiptrule-workmailaction-topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ReceiptRule_WorkmailAction) AWSCloudFormationType() string { return "AWS::SES::ReceiptRule.WorkmailAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_WorkmailAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRule_WorkmailAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_WorkmailAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRule_WorkmailAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_WorkmailAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRule_WorkmailAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ses/aws-ses-receiptruleset.go b/cloudformation/ses/aws-ses-receiptruleset.go index 446aaf1605..4f30a753d3 100644 --- a/cloudformation/ses/aws-ses-receiptruleset.go +++ b/cloudformation/ses/aws-ses-receiptruleset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ReceiptRuleSet AWS CloudFormation Resource (AWS::SES::ReceiptRuleSet) @@ -17,14 +17,14 @@ type ReceiptRuleSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname RuleSetName string `json:"RuleSetName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *ReceiptRuleSet) AWSCloudFormationType() string { return "AWS::SES::ReceiptRuleSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRuleSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ReceiptRuleSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRuleSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ReceiptRuleSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRuleSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ReceiptRuleSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ReceiptRuleSet) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r ReceiptRuleSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *ReceiptRuleSet) UnmarshalJSON(b []byte) error { *r = ReceiptRuleSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ses/aws-ses-template.go b/cloudformation/ses/aws-ses-template.go index 025193cc65..ce1b65a060 100644 --- a/cloudformation/ses/aws-ses-template.go +++ b/cloudformation/ses/aws-ses-template.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Template AWS CloudFormation Resource (AWS::SES::Template) @@ -17,14 +17,14 @@ type Template struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-template.html#cfn-ses-template-template Template *Template_Template `json:"Template,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -32,42 +32,6 @@ func (r *Template) AWSCloudFormationType() string { return "AWS::SES::Template" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Template) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Template) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Template) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Template) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Template) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Template) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Template) MarshalJSON() ([]byte, error) { @@ -81,9 +45,9 @@ func (r Template) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -112,13 +76,13 @@ func (r *Template) UnmarshalJSON(b []byte) error { *r = Template(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ses/aws-ses-template_template.go b/cloudformation/ses/aws-ses-template_template.go index a6402e45dd..70389ffc6a 100644 --- a/cloudformation/ses/aws-ses-template_template.go +++ b/cloudformation/ses/aws-ses-template_template.go @@ -1,7 +1,7 @@ package ses import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Template_Template AWS CloudFormation Resource (AWS::SES::Template.Template) @@ -28,53 +28,17 @@ type Template_Template struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-template-template.html#cfn-ses-template-template-textpart TextPart string `json:"TextPart,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Template_Template) AWSCloudFormationType() string { return "AWS::SES::Template.Template" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Template_Template) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Template_Template) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Template_Template) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Template_Template) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Template_Template) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Template_Template) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sns/aws-sns-subscription.go b/cloudformation/sns/aws-sns-subscription.go index 6366c48c2d..4eabb338fc 100644 --- a/cloudformation/sns/aws-sns-subscription.go +++ b/cloudformation/sns/aws-sns-subscription.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Subscription AWS CloudFormation Resource (AWS::SNS::Subscription) @@ -37,6 +37,11 @@ type Subscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-rawmessagedelivery RawMessageDelivery bool `json:"RawMessageDelivery,omitempty"` + // RedrivePolicy AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-redrivepolicy + RedrivePolicy interface{} `json:"RedrivePolicy,omitempty"` + // Region AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#cfn-sns-subscription-region @@ -47,14 +52,14 @@ type Subscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html#topicarn TopicArn string `json:"TopicArn,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -62,42 +67,6 @@ func (r *Subscription) AWSCloudFormationType() string { return "AWS::SNS::Subscription" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Subscription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Subscription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Subscription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Subscription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Subscription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Subscription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Subscription) MarshalJSON() ([]byte, error) { @@ -111,9 +80,9 @@ func (r Subscription) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -142,13 +111,13 @@ func (r *Subscription) UnmarshalJSON(b []byte) error { *r = Subscription(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sns/aws-sns-topic.go b/cloudformation/sns/aws-sns-topic.go index ddc67097dd..a385ef533e 100644 --- a/cloudformation/sns/aws-sns-topic.go +++ b/cloudformation/sns/aws-sns-topic.go @@ -5,7 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Topic AWS CloudFormation Resource (AWS::SNS::Topic) @@ -27,19 +28,24 @@ type Topic struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-subscription Subscription []Topic_Subscription `json:"Subscription,omitempty"` + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-tags + Tags []tags.Tag `json:"Tags,omitempty"` + // TopicName AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html#cfn-sns-topic-topicname TopicName string `json:"TopicName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +53,6 @@ func (r *Topic) AWSCloudFormationType() string { return "AWS::SNS::Topic" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Topic) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Topic) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Topic) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Topic) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Topic) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Topic) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Topic) MarshalJSON() ([]byte, error) { @@ -96,9 +66,9 @@ func (r Topic) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +97,13 @@ func (r *Topic) UnmarshalJSON(b []byte) error { *r = Topic(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sns/aws-sns-topic_subscription.go b/cloudformation/sns/aws-sns-topic_subscription.go index 28f3d640d5..868a59db59 100644 --- a/cloudformation/sns/aws-sns-topic_subscription.go +++ b/cloudformation/sns/aws-sns-topic_subscription.go @@ -1,7 +1,7 @@ package sns import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Topic_Subscription AWS CloudFormation Resource (AWS::SNS::Topic.Subscription) @@ -18,53 +18,17 @@ type Topic_Subscription struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-subscription.html#cfn-sns-topic-subscription-protocol Protocol string `json:"Protocol,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Topic_Subscription) AWSCloudFormationType() string { return "AWS::SNS::Topic.Subscription" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Topic_Subscription) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Topic_Subscription) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Topic_Subscription) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Topic_Subscription) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Topic_Subscription) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Topic_Subscription) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/sns/aws-sns-topicpolicy.go b/cloudformation/sns/aws-sns-topicpolicy.go index 8ade5d937b..f7dddf232d 100644 --- a/cloudformation/sns/aws-sns-topicpolicy.go +++ b/cloudformation/sns/aws-sns-topicpolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // TopicPolicy AWS CloudFormation Resource (AWS::SNS::TopicPolicy) @@ -22,14 +22,14 @@ type TopicPolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html#cfn-sns-topicpolicy-topics Topics []string `json:"Topics,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *TopicPolicy) AWSCloudFormationType() string { return "AWS::SNS::TopicPolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicPolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *TopicPolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicPolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *TopicPolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicPolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *TopicPolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 TopicPolicy) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r TopicPolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *TopicPolicy) UnmarshalJSON(b []byte) error { *r = TopicPolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sqs/aws-sqs-queue.go b/cloudformation/sqs/aws-sqs-queue.go index d0b6a532ec..8bba64320d 100644 --- a/cloudformation/sqs/aws-sqs-queue.go +++ b/cloudformation/sqs/aws-sqs-queue.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Queue AWS CloudFormation Resource (AWS::SQS::Queue) @@ -73,14 +73,14 @@ type Queue struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-visiblitytimeout VisibilityTimeout int `json:"VisibilityTimeout,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -88,42 +88,6 @@ func (r *Queue) AWSCloudFormationType() string { return "AWS::SQS::Queue" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Queue) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Queue) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Queue) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Queue) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Queue) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Queue) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Queue) MarshalJSON() ([]byte, error) { @@ -137,9 +101,9 @@ func (r Queue) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -168,13 +132,13 @@ func (r *Queue) UnmarshalJSON(b []byte) error { *r = Queue(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/sqs/aws-sqs-queuepolicy.go b/cloudformation/sqs/aws-sqs-queuepolicy.go index ca02dd6a1d..31d150c241 100644 --- a/cloudformation/sqs/aws-sqs-queuepolicy.go +++ b/cloudformation/sqs/aws-sqs-queuepolicy.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // QueuePolicy AWS CloudFormation Resource (AWS::SQS::QueuePolicy) @@ -22,14 +22,14 @@ type QueuePolicy struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html#cfn-sqs-queuepolicy-queues Queues []string `json:"Queues,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *QueuePolicy) AWSCloudFormationType() string { return "AWS::SQS::QueuePolicy" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *QueuePolicy) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *QueuePolicy) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *QueuePolicy) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *QueuePolicy) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *QueuePolicy) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *QueuePolicy) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 QueuePolicy) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r QueuePolicy) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *QueuePolicy) UnmarshalJSON(b []byte) error { *r = QueuePolicy(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-association.go b/cloudformation/ssm/aws-ssm-association.go index b9c463efdd..62c38fd8de 100644 --- a/cloudformation/ssm/aws-ssm-association.go +++ b/cloudformation/ssm/aws-ssm-association.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Association AWS CloudFormation Resource (AWS::SSM::Association) @@ -52,14 +52,14 @@ type Association struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html#cfn-ssm-association-targets Targets []Association_Target `json:"Targets,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *Association) AWSCloudFormationType() string { return "AWS::SSM::Association" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Association) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r Association) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *Association) UnmarshalJSON(b []byte) error { *r = Association(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go b/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go index 6b681545ab..71169b27ba 100644 --- a/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go +++ b/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Association_InstanceAssociationOutputLocation AWS CloudFormation Resource (AWS::SSM::Association.InstanceAssociationOutputLocation) @@ -13,53 +13,17 @@ type Association_InstanceAssociationOutputLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html#cfn-ssm-association-instanceassociationoutputlocation-s3location S3Location *Association_S3OutputLocation `json:"S3Location,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Association_InstanceAssociationOutputLocation) AWSCloudFormationType() string { return "AWS::SSM::Association.InstanceAssociationOutputLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_InstanceAssociationOutputLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_InstanceAssociationOutputLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_InstanceAssociationOutputLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_InstanceAssociationOutputLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_InstanceAssociationOutputLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_InstanceAssociationOutputLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-association_parametervalues.go b/cloudformation/ssm/aws-ssm-association_parametervalues.go index faa69129d4..1c04d7f7e3 100644 --- a/cloudformation/ssm/aws-ssm-association_parametervalues.go +++ b/cloudformation/ssm/aws-ssm-association_parametervalues.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Association_ParameterValues AWS CloudFormation Resource (AWS::SSM::Association.ParameterValues) @@ -13,53 +13,17 @@ type Association_ParameterValues struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-parametervalues.html#cfn-ssm-association-parametervalues-parametervalues ParameterValues []string `json:"ParameterValues,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Association_ParameterValues) AWSCloudFormationType() string { return "AWS::SSM::Association.ParameterValues" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_ParameterValues) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_ParameterValues) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_ParameterValues) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_ParameterValues) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_ParameterValues) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_ParameterValues) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-association_s3outputlocation.go b/cloudformation/ssm/aws-ssm-association_s3outputlocation.go index 87b32f99c8..a09386f882 100644 --- a/cloudformation/ssm/aws-ssm-association_s3outputlocation.go +++ b/cloudformation/ssm/aws-ssm-association_s3outputlocation.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Association_S3OutputLocation AWS CloudFormation Resource (AWS::SSM::Association.S3OutputLocation) @@ -18,53 +18,17 @@ type Association_S3OutputLocation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-s3outputlocation.html#cfn-ssm-association-s3outputlocation-outputs3keyprefix OutputS3KeyPrefix string `json:"OutputS3KeyPrefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Association_S3OutputLocation) AWSCloudFormationType() string { return "AWS::SSM::Association.S3OutputLocation" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_S3OutputLocation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_S3OutputLocation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_S3OutputLocation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_S3OutputLocation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_S3OutputLocation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_S3OutputLocation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-association_target.go b/cloudformation/ssm/aws-ssm-association_target.go index c561f2e165..5e821d23fe 100644 --- a/cloudformation/ssm/aws-ssm-association_target.go +++ b/cloudformation/ssm/aws-ssm-association_target.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Association_Target AWS CloudFormation Resource (AWS::SSM::Association.Target) @@ -18,53 +18,17 @@ type Association_Target struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Association_Target) AWSCloudFormationType() string { return "AWS::SSM::Association.Target" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_Target) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Association_Target) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_Target) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Association_Target) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_Target) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Association_Target) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-document.go b/cloudformation/ssm/aws-ssm-document.go index affb075b91..d77bcb68dc 100644 --- a/cloudformation/ssm/aws-ssm-document.go +++ b/cloudformation/ssm/aws-ssm-document.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Document AWS CloudFormation Resource (AWS::SSM::Document) @@ -28,14 +28,14 @@ type Document struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -43,42 +43,6 @@ func (r *Document) AWSCloudFormationType() string { return "AWS::SSM::Document" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Document) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Document) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Document) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Document) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Document) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Document) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Document) MarshalJSON() ([]byte, error) { @@ -92,9 +56,9 @@ func (r Document) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -123,13 +87,13 @@ func (r *Document) UnmarshalJSON(b []byte) error { *r = Document(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindow.go b/cloudformation/ssm/aws-ssm-maintenancewindow.go index b783879d5f..8eedc7af8a 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindow.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindow.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // MaintenanceWindow AWS CloudFormation Resource (AWS::SSM::MaintenanceWindow) @@ -63,14 +63,14 @@ type MaintenanceWindow struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindow.html#cfn-ssm-maintenancewindow-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -78,42 +78,6 @@ func (r *MaintenanceWindow) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindow" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindow) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindow) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindow) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindow) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindow) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindow) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MaintenanceWindow) MarshalJSON() ([]byte, error) { @@ -127,9 +91,9 @@ func (r MaintenanceWindow) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -158,13 +122,13 @@ func (r *MaintenanceWindow) UnmarshalJSON(b []byte) error { *r = MaintenanceWindow(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go b/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go index fc261f465e..a9d758c146 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTarget AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTarget) @@ -42,14 +42,14 @@ type MaintenanceWindowTarget struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html#cfn-ssm-maintenancewindowtarget-windowid WindowId string `json:"WindowId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *MaintenanceWindowTarget) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTarget" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTarget) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTarget) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTarget) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTarget) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTarget) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTarget) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MaintenanceWindowTarget) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r MaintenanceWindowTarget) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *MaintenanceWindowTarget) UnmarshalJSON(b []byte) error { *r = MaintenanceWindowTarget(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go b/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go index 1abec0751a..5e01341e25 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTarget_Targets AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTarget.Targets) @@ -18,53 +18,17 @@ type MaintenanceWindowTarget_Targets struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.html#cfn-ssm-maintenancewindowtarget-targets-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTarget_Targets) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTarget.Targets" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTarget_Targets) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTarget_Targets) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTarget_Targets) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTarget_Targets) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTarget_Targets) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTarget_Targets) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask.go index d52c721273..2a8dd7727d 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask) @@ -77,14 +77,14 @@ type MaintenanceWindowTask struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtask.html#cfn-ssm-maintenancewindowtask-windowid WindowId string `json:"WindowId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -92,42 +92,6 @@ func (r *MaintenanceWindowTask) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 MaintenanceWindowTask) MarshalJSON() ([]byte, error) { @@ -141,9 +105,9 @@ func (r MaintenanceWindowTask) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -172,13 +136,13 @@ func (r *MaintenanceWindowTask) UnmarshalJSON(b []byte) error { *r = MaintenanceWindowTask(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go index 27b38c62e8..aa39728b0b 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_LoggingInfo AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.LoggingInfo) @@ -23,53 +23,17 @@ type MaintenanceWindowTask_LoggingInfo struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-logginginfo.html#cfn-ssm-maintenancewindowtask-logginginfo-s3prefix S3Prefix string `json:"S3Prefix,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_LoggingInfo) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.LoggingInfo" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_LoggingInfo) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_LoggingInfo) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_LoggingInfo) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_LoggingInfo) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_LoggingInfo) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_LoggingInfo) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go index eeb12c1593..123c031848 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_MaintenanceWindowAutomationParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowAutomationParameters) @@ -18,53 +18,17 @@ type MaintenanceWindowTask_MaintenanceWindowAutomationParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowautomationparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowautomationparameters-parameters Parameters interface{} `json:"Parameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowAutomationParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowAutomationParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go index 84dade22b3..f0650c1d63 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_MaintenanceWindowLambdaParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowLambdaParameters) @@ -23,53 +23,17 @@ type MaintenanceWindowTask_MaintenanceWindowLambdaParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowlambdaparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowlambdaparameters-qualifier Qualifier string `json:"Qualifier,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowLambdaParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowLambdaParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go index 5a5624da5e..639962da25 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_MaintenanceWindowRunCommandParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowRunCommandParameters) @@ -53,53 +53,17 @@ type MaintenanceWindowTask_MaintenanceWindowRunCommandParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowruncommandparameters-timeoutseconds TimeoutSeconds int `json:"TimeoutSeconds,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowRunCommandParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowRunCommandParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go index e66ae0bf77..c2fb7551a7 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.MaintenanceWindowStepFunctionsParameters) @@ -18,53 +18,17 @@ type MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.MaintenanceWindowStepFunctionsParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go index 992e52430c..eb44ccfcf4 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_NotificationConfig AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.NotificationConfig) @@ -23,53 +23,17 @@ type MaintenanceWindowTask_NotificationConfig struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-notificationconfig.html#cfn-ssm-maintenancewindowtask-notificationconfig-notificationtype NotificationType string `json:"NotificationType,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_NotificationConfig) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.NotificationConfig" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_NotificationConfig) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_NotificationConfig) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_NotificationConfig) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_NotificationConfig) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_NotificationConfig) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_NotificationConfig) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go index 54890ddd25..018b5148ab 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_Target AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.Target) @@ -18,53 +18,17 @@ type MaintenanceWindowTask_Target struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-target.html#cfn-ssm-maintenancewindowtask-target-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_Target) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.Target" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_Target) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_Target) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_Target) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_Target) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_Target) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_Target) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go index f19d6cf436..05059dfa60 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // MaintenanceWindowTask_TaskInvocationParameters AWS CloudFormation Resource (AWS::SSM::MaintenanceWindowTask.TaskInvocationParameters) @@ -28,53 +28,17 @@ type MaintenanceWindowTask_TaskInvocationParameters struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-taskinvocationparameters.html#cfn-ssm-maintenancewindowtask-taskinvocationparameters-maintenancewindowstepfunctionsparameters MaintenanceWindowStepFunctionsParameters *MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters `json:"MaintenanceWindowStepFunctionsParameters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *MaintenanceWindowTask_TaskInvocationParameters) AWSCloudFormationType() string { return "AWS::SSM::MaintenanceWindowTask.TaskInvocationParameters" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_TaskInvocationParameters) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *MaintenanceWindowTask_TaskInvocationParameters) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_TaskInvocationParameters) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *MaintenanceWindowTask_TaskInvocationParameters) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_TaskInvocationParameters) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *MaintenanceWindowTask_TaskInvocationParameters) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-parameter.go b/cloudformation/ssm/aws-ssm-parameter.go index 5f50275e9d..a48454500a 100644 --- a/cloudformation/ssm/aws-ssm-parameter.go +++ b/cloudformation/ssm/aws-ssm-parameter.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Parameter AWS CloudFormation Resource (AWS::SSM::Parameter) @@ -52,14 +52,14 @@ type Parameter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-parameter.html#cfn-ssm-parameter-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -67,42 +67,6 @@ func (r *Parameter) AWSCloudFormationType() string { return "AWS::SSM::Parameter" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Parameter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Parameter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Parameter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Parameter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Parameter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Parameter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Parameter) MarshalJSON() ([]byte, error) { @@ -116,9 +80,9 @@ func (r Parameter) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -147,13 +111,13 @@ func (r *Parameter) UnmarshalJSON(b []byte) error { *r = Parameter(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-patchbaseline.go b/cloudformation/ssm/aws-ssm-patchbaseline.go index f0bc0fe071..068b6796aa 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // PatchBaseline AWS CloudFormation Resource (AWS::SSM::PatchBaseline) @@ -78,14 +78,14 @@ type PatchBaseline struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html#cfn-ssm-patchbaseline-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -93,42 +93,6 @@ func (r *PatchBaseline) AWSCloudFormationType() string { return "AWS::SSM::PatchBaseline" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 PatchBaseline) MarshalJSON() ([]byte, error) { @@ -142,9 +106,9 @@ func (r PatchBaseline) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -173,13 +137,13 @@ func (r *PatchBaseline) UnmarshalJSON(b []byte) error { *r = PatchBaseline(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go b/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go index 23952b3525..98f77f3c97 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PatchBaseline_PatchFilter AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchFilter) @@ -18,53 +18,17 @@ type PatchBaseline_PatchFilter struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfilter.html#cfn-ssm-patchbaseline-patchfilter-values Values []string `json:"Values,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *PatchBaseline_PatchFilter) AWSCloudFormationType() string { return "AWS::SSM::PatchBaseline.PatchFilter" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_PatchFilter) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_PatchFilter) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_PatchFilter) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_PatchFilter) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_PatchFilter) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_PatchFilter) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go b/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go index cf6b77fa8a..402e05c0af 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PatchBaseline_PatchFilterGroup AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchFilterGroup) @@ -13,53 +13,17 @@ type PatchBaseline_PatchFilterGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchfiltergroup.html#cfn-ssm-patchbaseline-patchfiltergroup-patchfilters PatchFilters []PatchBaseline_PatchFilter `json:"PatchFilters,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *PatchBaseline_PatchFilterGroup) AWSCloudFormationType() string { return "AWS::SSM::PatchBaseline.PatchFilterGroup" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_PatchFilterGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_PatchFilterGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_PatchFilterGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_PatchFilterGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_PatchFilterGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_PatchFilterGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go b/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go index e63d25017f..30da03c0fd 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PatchBaseline_PatchSource AWS CloudFormation Resource (AWS::SSM::PatchBaseline.PatchSource) @@ -23,53 +23,17 @@ type PatchBaseline_PatchSource struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-patchsource.html#cfn-ssm-patchbaseline-patchsource-products Products []string `json:"Products,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *PatchBaseline_PatchSource) AWSCloudFormationType() string { return "AWS::SSM::PatchBaseline.PatchSource" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_PatchSource) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_PatchSource) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_PatchSource) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_PatchSource) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_PatchSource) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_PatchSource) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_rule.go b/cloudformation/ssm/aws-ssm-patchbaseline_rule.go index d1cddd0f99..abfb183e64 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_rule.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_rule.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PatchBaseline_Rule AWS CloudFormation Resource (AWS::SSM::PatchBaseline.Rule) @@ -28,53 +28,17 @@ type PatchBaseline_Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rule.html#cfn-ssm-patchbaseline-rule-patchfiltergroup PatchFilterGroup *PatchBaseline_PatchFilterGroup `json:"PatchFilterGroup,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *PatchBaseline_Rule) AWSCloudFormationType() string { return "AWS::SSM::PatchBaseline.Rule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go b/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go index 08bee7a5f0..5984f68d58 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go @@ -1,7 +1,7 @@ package ssm import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // PatchBaseline_RuleGroup AWS CloudFormation Resource (AWS::SSM::PatchBaseline.RuleGroup) @@ -13,53 +13,17 @@ type PatchBaseline_RuleGroup struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-patchbaseline-rulegroup.html#cfn-ssm-patchbaseline-rulegroup-patchrules PatchRules []PatchBaseline_Rule `json:"PatchRules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *PatchBaseline_RuleGroup) AWSCloudFormationType() string { return "AWS::SSM::PatchBaseline.RuleGroup" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_RuleGroup) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *PatchBaseline_RuleGroup) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_RuleGroup) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *PatchBaseline_RuleGroup) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_RuleGroup) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *PatchBaseline_RuleGroup) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/ssm/aws-ssm-resourcedatasync.go b/cloudformation/ssm/aws-ssm-resourcedatasync.go index 61b1e0ae4d..d900f56e74 100644 --- a/cloudformation/ssm/aws-ssm-resourcedatasync.go +++ b/cloudformation/ssm/aws-ssm-resourcedatasync.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ResourceDataSync AWS CloudFormation Resource (AWS::SSM::ResourceDataSync) @@ -42,14 +42,14 @@ 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"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -57,42 +57,6 @@ func (r *ResourceDataSync) AWSCloudFormationType() string { return "AWS::SSM::ResourceDataSync" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDataSync) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ResourceDataSync) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDataSync) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ResourceDataSync) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDataSync) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ResourceDataSync) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ResourceDataSync) MarshalJSON() ([]byte, error) { @@ -106,9 +70,9 @@ func (r ResourceDataSync) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -137,13 +101,13 @@ func (r *ResourceDataSync) UnmarshalJSON(b []byte) error { *r = ResourceDataSync(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/stepfunctions/aws-stepfunctions-activity.go b/cloudformation/stepfunctions/aws-stepfunctions-activity.go index 87ab608631..77f2a4d3a7 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-activity.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-activity.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Activity AWS CloudFormation Resource (AWS::StepFunctions::Activity) @@ -22,14 +22,14 @@ type Activity struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-activity.html#cfn-stepfunctions-activity-tags Tags []Activity_TagsEntry `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *Activity) AWSCloudFormationType() string { return "AWS::StepFunctions::Activity" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Activity) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Activity) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Activity) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Activity) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Activity) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Activity) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Activity) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r Activity) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *Activity) UnmarshalJSON(b []byte) error { *r = Activity(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go b/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go index f331515b6e..794c98b561 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go @@ -1,7 +1,7 @@ package stepfunctions import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Activity_TagsEntry AWS CloudFormation Resource (AWS::StepFunctions::Activity.TagsEntry) @@ -18,53 +18,17 @@ type Activity_TagsEntry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-activity-tagsentry.html#cfn-stepfunctions-activity-tagsentry-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Activity_TagsEntry) AWSCloudFormationType() string { return "AWS::StepFunctions::Activity.TagsEntry" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Activity_TagsEntry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Activity_TagsEntry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Activity_TagsEntry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Activity_TagsEntry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Activity_TagsEntry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Activity_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go index f2d50c6ac2..fd0e729d56 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StateMachine AWS CloudFormation Resource (AWS::StepFunctions::StateMachine) @@ -32,14 +32,14 @@ type StateMachine struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html#cfn-stepfunctions-statemachine-tags Tags []StateMachine_TagsEntry `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *StateMachine) AWSCloudFormationType() string { return "AWS::StepFunctions::StateMachine" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StateMachine) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StateMachine) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StateMachine) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StateMachine) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StateMachine) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StateMachine) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 StateMachine) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r StateMachine) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *StateMachine) UnmarshalJSON(b []byte) error { *r = StateMachine(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go index 9e935de6f5..1d0a7eaf39 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go @@ -1,7 +1,7 @@ package stepfunctions import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // StateMachine_TagsEntry AWS CloudFormation Resource (AWS::StepFunctions::StateMachine.TagsEntry) @@ -18,53 +18,17 @@ type StateMachine_TagsEntry struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-tagsentry.html#cfn-stepfunctions-statemachine-tagsentry-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *StateMachine_TagsEntry) AWSCloudFormationType() string { return "AWS::StepFunctions::StateMachine.TagsEntry" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StateMachine_TagsEntry) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *StateMachine_TagsEntry) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StateMachine_TagsEntry) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *StateMachine_TagsEntry) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StateMachine_TagsEntry) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *StateMachine_TagsEntry) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/tags/tag.go b/cloudformation/tags/tag.go index a8daca9ca8..9dd096ab36 100644 --- a/cloudformation/tags/tag.go +++ b/cloudformation/tags/tag.go @@ -1,6 +1,6 @@ package tags -import "github.com/awslabs/goformation/v3/cloudformation/policies" +import "github.com/awslabs/goformation/v4/cloudformation/policies" // Tag AWS CloudFormation Resource (Tag) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html diff --git a/cloudformation/template.go b/cloudformation/template.go index 52e65fb7aa..9e476d621c 100644 --- a/cloudformation/template.go +++ b/cloudformation/template.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/awslabs/goformation/v3/intrinsics" + "github.com/awslabs/goformation/v4/intrinsics" "github.com/sanathkr/yaml" ) diff --git a/cloudformation/transfer/aws-transfer-server.go b/cloudformation/transfer/aws-transfer-server.go index 117f897283..a27d88e807 100644 --- a/cloudformation/transfer/aws-transfer-server.go +++ b/cloudformation/transfer/aws-transfer-server.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Server AWS CloudFormation Resource (AWS::Transfer::Server) @@ -43,14 +43,14 @@ type Server struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-server.html#cfn-transfer-server-tags Tags []tags.Tag `json:"Tags,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -58,42 +58,6 @@ func (r *Server) AWSCloudFormationType() string { return "AWS::Transfer::Server" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Server) MarshalJSON() ([]byte, error) { @@ -107,9 +71,9 @@ func (r Server) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -138,13 +102,13 @@ func (r *Server) UnmarshalJSON(b []byte) error { *r = Server(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/transfer/aws-transfer-server_endpointdetails.go b/cloudformation/transfer/aws-transfer-server_endpointdetails.go index b5a26b5e79..59ea572a42 100644 --- a/cloudformation/transfer/aws-transfer-server_endpointdetails.go +++ b/cloudformation/transfer/aws-transfer-server_endpointdetails.go @@ -1,7 +1,7 @@ package transfer import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Server_EndpointDetails AWS CloudFormation Resource (AWS::Transfer::Server.EndpointDetails) @@ -13,53 +13,17 @@ type Server_EndpointDetails struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-endpointdetails.html#cfn-transfer-server-endpointdetails-vpcendpointid VpcEndpointId string `json:"VpcEndpointId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Server_EndpointDetails) AWSCloudFormationType() string { return "AWS::Transfer::Server.EndpointDetails" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server_EndpointDetails) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server_EndpointDetails) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server_EndpointDetails) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server_EndpointDetails) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server_EndpointDetails) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server_EndpointDetails) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go b/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go index 7b094ba848..4b61af8f02 100644 --- a/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go +++ b/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go @@ -1,7 +1,7 @@ package transfer import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Server_IdentityProviderDetails AWS CloudFormation Resource (AWS::Transfer::Server.IdentityProviderDetails) @@ -18,53 +18,17 @@ type Server_IdentityProviderDetails struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html#cfn-transfer-server-identityproviderdetails-url Url string `json:"Url,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Server_IdentityProviderDetails) AWSCloudFormationType() string { return "AWS::Transfer::Server.IdentityProviderDetails" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server_IdentityProviderDetails) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Server_IdentityProviderDetails) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server_IdentityProviderDetails) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Server_IdentityProviderDetails) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server_IdentityProviderDetails) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Server_IdentityProviderDetails) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/transfer/aws-transfer-user.go b/cloudformation/transfer/aws-transfer-user.go index 0c9abc542e..20ffa77191 100644 --- a/cloudformation/transfer/aws-transfer-user.go +++ b/cloudformation/transfer/aws-transfer-user.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // User AWS CloudFormation Resource (AWS::Transfer::User) @@ -48,14 +48,14 @@ type User struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html#cfn-transfer-user-username UserName string `json:"UserName,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -63,42 +63,6 @@ func (r *User) AWSCloudFormationType() string { return "AWS::Transfer::User" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 User) MarshalJSON() ([]byte, error) { @@ -112,9 +76,9 @@ func (r User) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -143,13 +107,13 @@ func (r *User) UnmarshalJSON(b []byte) error { *r = User(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/transfer/aws-transfer-user_sshpublickey.go b/cloudformation/transfer/aws-transfer-user_sshpublickey.go index 0c71983d9e..b06b3b2a89 100644 --- a/cloudformation/transfer/aws-transfer-user_sshpublickey.go +++ b/cloudformation/transfer/aws-transfer-user_sshpublickey.go @@ -1,60 +1,24 @@ package transfer import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // User_SshPublicKey AWS CloudFormation Resource (AWS::Transfer::User.SshPublicKey) // See: type User_SshPublicKey struct { - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *User_SshPublicKey) AWSCloudFormationType() string { return "AWS::Transfer::User.SshPublicKey" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User_SshPublicKey) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *User_SshPublicKey) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User_SshPublicKey) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *User_SshPublicKey) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User_SshPublicKey) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *User_SshPublicKey) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-bytematchset.go b/cloudformation/waf/aws-waf-bytematchset.go index 5fa005ba3a..a4cc44cda6 100644 --- a/cloudformation/waf/aws-waf-bytematchset.go +++ b/cloudformation/waf/aws-waf-bytematchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ByteMatchSet AWS CloudFormation Resource (AWS::WAF::ByteMatchSet) @@ -22,14 +22,14 @@ type ByteMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-bytematchset.html#cfn-waf-bytematchset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ByteMatchSet) AWSCloudFormationType() string { return "AWS::WAF::ByteMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ByteMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ByteMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ByteMatchSet) UnmarshalJSON(b []byte) error { *r = ByteMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go b/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go index 69d6608a2e..1c17d32530 100644 --- a/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go +++ b/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ByteMatchSet_ByteMatchTuple AWS CloudFormation Resource (AWS::WAF::ByteMatchSet.ByteMatchTuple) @@ -33,53 +33,17 @@ type ByteMatchSet_ByteMatchTuple struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples.html#cfn-waf-bytematchset-bytematchtuples-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ByteMatchSet_ByteMatchTuple) AWSCloudFormationType() string { return "AWS::WAF::ByteMatchSet.ByteMatchTuple" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_ByteMatchTuple) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_ByteMatchTuple) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_ByteMatchTuple) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_ByteMatchTuple) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_ByteMatchTuple) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_ByteMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go b/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go index 42cc2f9e59..b7056d32f8 100644 --- a/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ByteMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::ByteMatchSet.FieldToMatch) @@ -18,53 +18,17 @@ type ByteMatchSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html#cfn-waf-bytematchset-bytematchtuples-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ByteMatchSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAF::ByteMatchSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-ipset.go b/cloudformation/waf/aws-waf-ipset.go index d0bd2776c7..dd42f74ba3 100644 --- a/cloudformation/waf/aws-waf-ipset.go +++ b/cloudformation/waf/aws-waf-ipset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IPSet AWS CloudFormation Resource (AWS::WAF::IPSet) @@ -22,14 +22,14 @@ type IPSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-ipset.html#cfn-waf-ipset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *IPSet) AWSCloudFormationType() string { return "AWS::WAF::IPSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 IPSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r IPSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { *r = IPSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go b/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go index 575a3e2cd6..f09dabd96c 100644 --- a/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go +++ b/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IPSet_IPSetDescriptor AWS CloudFormation Resource (AWS::WAF::IPSet.IPSetDescriptor) @@ -18,53 +18,17 @@ type IPSet_IPSetDescriptor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-ipset-ipsetdescriptors.html#cfn-waf-ipset-ipsetdescriptors-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IPSet_IPSetDescriptor) AWSCloudFormationType() string { return "AWS::WAF::IPSet.IPSetDescriptor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet_IPSetDescriptor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet_IPSetDescriptor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet_IPSetDescriptor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet_IPSetDescriptor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet_IPSetDescriptor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet_IPSetDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-rule.go b/cloudformation/waf/aws-waf-rule.go index c582102f12..7e3e22ab58 100644 --- a/cloudformation/waf/aws-waf-rule.go +++ b/cloudformation/waf/aws-waf-rule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule AWS CloudFormation Resource (AWS::WAF::Rule) @@ -27,14 +27,14 @@ type Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-predicates Predicates []Rule_Predicate `json:"Predicates,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Rule) AWSCloudFormationType() string { return "AWS::WAF::Rule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Rule) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Rule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Rule) UnmarshalJSON(b []byte) error { *r = Rule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-rule_predicate.go b/cloudformation/waf/aws-waf-rule_predicate.go index c9e80f4718..b5ec51bc53 100644 --- a/cloudformation/waf/aws-waf-rule_predicate.go +++ b/cloudformation/waf/aws-waf-rule_predicate.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_Predicate AWS CloudFormation Resource (AWS::WAF::Rule.Predicate) @@ -23,53 +23,17 @@ type Rule_Predicate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-rule-predicates.html#cfn-waf-rule-predicates-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_Predicate) AWSCloudFormationType() string { return "AWS::WAF::Rule.Predicate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_Predicate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_Predicate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_Predicate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_Predicate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_Predicate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-sizeconstraintset.go b/cloudformation/waf/aws-waf-sizeconstraintset.go index 5c0ac3d77e..8606b43360 100644 --- a/cloudformation/waf/aws-waf-sizeconstraintset.go +++ b/cloudformation/waf/aws-waf-sizeconstraintset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SizeConstraintSet AWS CloudFormation Resource (AWS::WAF::SizeConstraintSet) @@ -22,14 +22,14 @@ type SizeConstraintSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sizeconstraintset.html#cfn-waf-sizeconstraintset-sizeconstraints SizeConstraints []SizeConstraintSet_SizeConstraint `json:"SizeConstraints,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SizeConstraintSet) AWSCloudFormationType() string { return "AWS::WAF::SizeConstraintSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SizeConstraintSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SizeConstraintSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SizeConstraintSet) UnmarshalJSON(b []byte) error { *r = SizeConstraintSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go b/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go index a8a120c66d..ca1dea87f2 100644 --- a/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SizeConstraintSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::SizeConstraintSet.FieldToMatch) @@ -18,53 +18,17 @@ type SizeConstraintSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint-fieldtomatch.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SizeConstraintSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAF::SizeConstraintSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go b/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go index a9ec0970c0..47a6528929 100644 --- a/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go +++ b/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SizeConstraintSet_SizeConstraint AWS CloudFormation Resource (AWS::WAF::SizeConstraintSet.SizeConstraint) @@ -28,53 +28,17 @@ type SizeConstraintSet_SizeConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sizeconstraintset-sizeconstraint.html#cfn-waf-sizeconstraintset-sizeconstraint-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SizeConstraintSet_SizeConstraint) AWSCloudFormationType() string { return "AWS::WAF::SizeConstraintSet.SizeConstraint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_SizeConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_SizeConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_SizeConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_SizeConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_SizeConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_SizeConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-sqlinjectionmatchset.go b/cloudformation/waf/aws-waf-sqlinjectionmatchset.go index 27e72aa175..3bfb871f92 100644 --- a/cloudformation/waf/aws-waf-sqlinjectionmatchset.go +++ b/cloudformation/waf/aws-waf-sqlinjectionmatchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SqlInjectionMatchSet AWS CloudFormation Resource (AWS::WAF::SqlInjectionMatchSet) @@ -22,14 +22,14 @@ type SqlInjectionMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-sqlinjectionmatchset.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples SqlInjectionMatchTuples []SqlInjectionMatchSet_SqlInjectionMatchTuple `json:"SqlInjectionMatchTuples,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SqlInjectionMatchSet) AWSCloudFormationType() string { return "AWS::WAF::SqlInjectionMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SqlInjectionMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SqlInjectionMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SqlInjectionMatchSet) UnmarshalJSON(b []byte) error { *r = SqlInjectionMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go b/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go index 5ca1f62590..4e3eb8ecfb 100644 --- a/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SqlInjectionMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::SqlInjectionMatchSet.FieldToMatch) @@ -18,53 +18,17 @@ type SqlInjectionMatchSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-bytematchset-bytematchtuples-fieldtomatch.html#cfn-waf-sizeconstraintset-sizeconstraint-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SqlInjectionMatchSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAF::SqlInjectionMatchSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go b/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go index 2ca10e26f0..e3cfb3cb03 100644 --- a/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go +++ b/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SqlInjectionMatchSet_SqlInjectionMatchTuple AWS CloudFormation Resource (AWS::WAF::SqlInjectionMatchSet.SqlInjectionMatchTuple) @@ -18,53 +18,17 @@ type SqlInjectionMatchSet_SqlInjectionMatchTuple struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-sqlinjectionmatchset-sqlinjectionmatchtuples.html#cfn-waf-sqlinjectionmatchset-sqlinjectionmatchtuples-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) AWSCloudFormationType() string { return "AWS::WAF::SqlInjectionMatchSet.SqlInjectionMatchTuple" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-webacl.go b/cloudformation/waf/aws-waf-webacl.go index 66b733d84d..ef6bc4c682 100644 --- a/cloudformation/waf/aws-waf-webacl.go +++ b/cloudformation/waf/aws-waf-webacl.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACL AWS CloudFormation Resource (AWS::WAF::WebACL) @@ -32,14 +32,14 @@ type WebACL struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-webacl-rules Rules []WebACL_ActivatedRule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *WebACL) AWSCloudFormationType() string { return "AWS::WAF::WebACL" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 WebACL) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r WebACL) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { *r = WebACL(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-webacl_activatedrule.go b/cloudformation/waf/aws-waf-webacl_activatedrule.go index 980d7d09ec..c713d2fd6d 100644 --- a/cloudformation/waf/aws-waf-webacl_activatedrule.go +++ b/cloudformation/waf/aws-waf-webacl_activatedrule.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACL_ActivatedRule AWS CloudFormation Resource (AWS::WAF::WebACL.ActivatedRule) @@ -23,53 +23,17 @@ type WebACL_ActivatedRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-rules.html#cfn-waf-webacl-rules-ruleid RuleId string `json:"RuleId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *WebACL_ActivatedRule) AWSCloudFormationType() string { return "AWS::WAF::WebACL.ActivatedRule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_ActivatedRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_ActivatedRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_ActivatedRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_ActivatedRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_ActivatedRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_ActivatedRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-webacl_wafaction.go b/cloudformation/waf/aws-waf-webacl_wafaction.go index 2620e01577..bd17cdbf8d 100644 --- a/cloudformation/waf/aws-waf-webacl_wafaction.go +++ b/cloudformation/waf/aws-waf-webacl_wafaction.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACL_WafAction AWS CloudFormation Resource (AWS::WAF::WebACL.WafAction) @@ -13,53 +13,17 @@ type WebACL_WafAction struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-webacl-action.html#cfn-waf-webacl-action-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *WebACL_WafAction) AWSCloudFormationType() string { return "AWS::WAF::WebACL.WafAction" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_WafAction) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_WafAction) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_WafAction) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_WafAction) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_WafAction) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_WafAction) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-xssmatchset.go b/cloudformation/waf/aws-waf-xssmatchset.go index 269ace347e..c056c279b2 100644 --- a/cloudformation/waf/aws-waf-xssmatchset.go +++ b/cloudformation/waf/aws-waf-xssmatchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // XssMatchSet AWS CloudFormation Resource (AWS::WAF::XssMatchSet) @@ -22,14 +22,14 @@ type XssMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-xssmatchset.html#cfn-waf-xssmatchset-xssmatchtuples XssMatchTuples []XssMatchSet_XssMatchTuple `json:"XssMatchTuples,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *XssMatchSet) AWSCloudFormationType() string { return "AWS::WAF::XssMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 XssMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r XssMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *XssMatchSet) UnmarshalJSON(b []byte) error { *r = XssMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go b/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go index 2950818c4f..945cb483e1 100644 --- a/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // XssMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAF::XssMatchSet.FieldToMatch) @@ -18,53 +18,17 @@ type XssMatchSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple-fieldtomatch.html#cfn-waf-xssmatchset-xssmatchtuple-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *XssMatchSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAF::XssMatchSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go b/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go index 53054b75d4..849816e797 100644 --- a/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go +++ b/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go @@ -1,7 +1,7 @@ package waf import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // XssMatchSet_XssMatchTuple AWS CloudFormation Resource (AWS::WAF::XssMatchSet.XssMatchTuple) @@ -18,53 +18,17 @@ type XssMatchSet_XssMatchTuple struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waf-xssmatchset-xssmatchtuple.html#cfn-waf-xssmatchset-xssmatchtuple-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *XssMatchSet_XssMatchTuple) AWSCloudFormationType() string { return "AWS::WAF::XssMatchSet.XssMatchTuple" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_XssMatchTuple) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_XssMatchTuple) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_XssMatchTuple) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_XssMatchTuple) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_XssMatchTuple) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_XssMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-bytematchset.go b/cloudformation/wafregional/aws-wafregional-bytematchset.go index 20f1114ffb..2550ac2508 100644 --- a/cloudformation/wafregional/aws-wafregional-bytematchset.go +++ b/cloudformation/wafregional/aws-wafregional-bytematchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ByteMatchSet AWS CloudFormation Resource (AWS::WAFRegional::ByteMatchSet) @@ -22,14 +22,14 @@ type ByteMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-bytematchset.html#cfn-wafregional-bytematchset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *ByteMatchSet) AWSCloudFormationType() string { return "AWS::WAFRegional::ByteMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 ByteMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r ByteMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *ByteMatchSet) UnmarshalJSON(b []byte) error { *r = ByteMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go b/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go index 5b68ecc3c9..7fccf6275d 100644 --- a/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go +++ b/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ByteMatchSet_ByteMatchTuple AWS CloudFormation Resource (AWS::WAFRegional::ByteMatchSet.ByteMatchTuple) @@ -33,53 +33,17 @@ type ByteMatchSet_ByteMatchTuple struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-bytematchtuple.html#cfn-wafregional-bytematchset-bytematchtuple-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ByteMatchSet_ByteMatchTuple) AWSCloudFormationType() string { return "AWS::WAFRegional::ByteMatchSet.ByteMatchTuple" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_ByteMatchTuple) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_ByteMatchTuple) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_ByteMatchTuple) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_ByteMatchTuple) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_ByteMatchTuple) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_ByteMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go index db722cd3e2..efbfafb29e 100644 --- a/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // ByteMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::ByteMatchSet.FieldToMatch) @@ -18,53 +18,17 @@ type ByteMatchSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-fieldtomatch.html#cfn-wafregional-bytematchset-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *ByteMatchSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAFRegional::ByteMatchSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *ByteMatchSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *ByteMatchSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *ByteMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-geomatchset.go b/cloudformation/wafregional/aws-wafregional-geomatchset.go index db87b5b9c3..e0502e7505 100644 --- a/cloudformation/wafregional/aws-wafregional-geomatchset.go +++ b/cloudformation/wafregional/aws-wafregional-geomatchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GeoMatchSet AWS CloudFormation Resource (AWS::WAFRegional::GeoMatchSet) @@ -22,14 +22,14 @@ type GeoMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-geomatchset.html#cfn-wafregional-geomatchset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *GeoMatchSet) AWSCloudFormationType() string { return "AWS::WAFRegional::GeoMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GeoMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GeoMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GeoMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GeoMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GeoMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GeoMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 GeoMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r GeoMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *GeoMatchSet) UnmarshalJSON(b []byte) error { *r = GeoMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go b/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go index 325bada33b..f3dd61a4c3 100644 --- a/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go +++ b/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // GeoMatchSet_GeoMatchConstraint AWS CloudFormation Resource (AWS::WAFRegional::GeoMatchSet.GeoMatchConstraint) @@ -18,53 +18,17 @@ type GeoMatchSet_GeoMatchConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-geomatchset-geomatchconstraint.html#cfn-wafregional-geomatchset-geomatchconstraint-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *GeoMatchSet_GeoMatchConstraint) AWSCloudFormationType() string { return "AWS::WAFRegional::GeoMatchSet.GeoMatchConstraint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GeoMatchSet_GeoMatchConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *GeoMatchSet_GeoMatchConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GeoMatchSet_GeoMatchConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *GeoMatchSet_GeoMatchConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GeoMatchSet_GeoMatchConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *GeoMatchSet_GeoMatchConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-ipset.go b/cloudformation/wafregional/aws-wafregional-ipset.go index b5f22b375f..d593b64b26 100644 --- a/cloudformation/wafregional/aws-wafregional-ipset.go +++ b/cloudformation/wafregional/aws-wafregional-ipset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IPSet AWS CloudFormation Resource (AWS::WAFRegional::IPSet) @@ -22,14 +22,14 @@ type IPSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-ipset.html#cfn-wafregional-ipset-name Name string `json:"Name,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *IPSet) AWSCloudFormationType() string { return "AWS::WAFRegional::IPSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 IPSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r IPSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { *r = IPSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go b/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go index f4419c820d..ec2d303f90 100644 --- a/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go +++ b/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // IPSet_IPSetDescriptor AWS CloudFormation Resource (AWS::WAFRegional::IPSet.IPSetDescriptor) @@ -18,53 +18,17 @@ type IPSet_IPSetDescriptor struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-ipset-ipsetdescriptor.html#cfn-wafregional-ipset-ipsetdescriptor-value Value string `json:"Value,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *IPSet_IPSetDescriptor) AWSCloudFormationType() string { return "AWS::WAFRegional::IPSet.IPSetDescriptor" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet_IPSetDescriptor) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *IPSet_IPSetDescriptor) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet_IPSetDescriptor) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *IPSet_IPSetDescriptor) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet_IPSetDescriptor) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *IPSet_IPSetDescriptor) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-ratebasedrule.go b/cloudformation/wafregional/aws-wafregional-ratebasedrule.go index 87534bcea5..53bb3005c9 100644 --- a/cloudformation/wafregional/aws-wafregional-ratebasedrule.go +++ b/cloudformation/wafregional/aws-wafregional-ratebasedrule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RateBasedRule AWS CloudFormation Resource (AWS::WAFRegional::RateBasedRule) @@ -37,14 +37,14 @@ type RateBasedRule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-ratebasedrule.html#cfn-wafregional-ratebasedrule-ratelimit RateLimit int `json:"RateLimit"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -52,42 +52,6 @@ func (r *RateBasedRule) AWSCloudFormationType() string { return "AWS::WAFRegional::RateBasedRule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RateBasedRule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RateBasedRule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RateBasedRule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RateBasedRule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RateBasedRule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RateBasedRule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RateBasedRule) MarshalJSON() ([]byte, error) { @@ -101,9 +65,9 @@ func (r RateBasedRule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -132,13 +96,13 @@ func (r *RateBasedRule) UnmarshalJSON(b []byte) error { *r = RateBasedRule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go b/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go index 0016c9b2ae..27caf2f169 100644 --- a/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go +++ b/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RateBasedRule_Predicate AWS CloudFormation Resource (AWS::WAFRegional::RateBasedRule.Predicate) @@ -23,53 +23,17 @@ type RateBasedRule_Predicate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-ratebasedrule-predicate.html#cfn-wafregional-ratebasedrule-predicate-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *RateBasedRule_Predicate) AWSCloudFormationType() string { return "AWS::WAFRegional::RateBasedRule.Predicate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RateBasedRule_Predicate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RateBasedRule_Predicate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RateBasedRule_Predicate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RateBasedRule_Predicate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RateBasedRule_Predicate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RateBasedRule_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-regexpatternset.go b/cloudformation/wafregional/aws-wafregional-regexpatternset.go index 1b9a95624f..e7bed7bb71 100644 --- a/cloudformation/wafregional/aws-wafregional-regexpatternset.go +++ b/cloudformation/wafregional/aws-wafregional-regexpatternset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // RegexPatternSet AWS CloudFormation Resource (AWS::WAFRegional::RegexPatternSet) @@ -22,14 +22,14 @@ type RegexPatternSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-regexpatternset.html#cfn-wafregional-regexpatternset-regexpatternstrings RegexPatternStrings []string `json:"RegexPatternStrings,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *RegexPatternSet) AWSCloudFormationType() string { return "AWS::WAFRegional::RegexPatternSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RegexPatternSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *RegexPatternSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RegexPatternSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *RegexPatternSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RegexPatternSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *RegexPatternSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 RegexPatternSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r RegexPatternSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *RegexPatternSet) UnmarshalJSON(b []byte) error { *r = RegexPatternSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-rule.go b/cloudformation/wafregional/aws-wafregional-rule.go index 442eb4147e..794e888f33 100644 --- a/cloudformation/wafregional/aws-wafregional-rule.go +++ b/cloudformation/wafregional/aws-wafregional-rule.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule AWS CloudFormation Resource (AWS::WAFRegional::Rule) @@ -27,14 +27,14 @@ type Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html#cfn-wafregional-rule-predicates Predicates []Rule_Predicate `json:"Predicates,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -42,42 +42,6 @@ func (r *Rule) AWSCloudFormationType() string { return "AWS::WAFRegional::Rule" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Rule) MarshalJSON() ([]byte, error) { @@ -91,9 +55,9 @@ func (r Rule) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -122,13 +86,13 @@ func (r *Rule) UnmarshalJSON(b []byte) error { *r = Rule(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-rule_predicate.go b/cloudformation/wafregional/aws-wafregional-rule_predicate.go index 3b9bb468e1..09c03d7038 100644 --- a/cloudformation/wafregional/aws-wafregional-rule_predicate.go +++ b/cloudformation/wafregional/aws-wafregional-rule_predicate.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Rule_Predicate AWS CloudFormation Resource (AWS::WAFRegional::Rule.Predicate) @@ -23,53 +23,17 @@ type Rule_Predicate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-rule-predicate.html#cfn-wafregional-rule-predicate-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Rule_Predicate) AWSCloudFormationType() string { return "AWS::WAFRegional::Rule.Predicate" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_Predicate) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Rule_Predicate) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_Predicate) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Rule_Predicate) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_Predicate) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Rule_Predicate) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go b/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go index 1c1b1e7ece..e8360a8744 100644 --- a/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go +++ b/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SizeConstraintSet AWS CloudFormation Resource (AWS::WAFRegional::SizeConstraintSet) @@ -22,14 +22,14 @@ type SizeConstraintSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sizeconstraintset.html#cfn-wafregional-sizeconstraintset-sizeconstraints SizeConstraints []SizeConstraintSet_SizeConstraint `json:"SizeConstraints,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SizeConstraintSet) AWSCloudFormationType() string { return "AWS::WAFRegional::SizeConstraintSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SizeConstraintSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SizeConstraintSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SizeConstraintSet) UnmarshalJSON(b []byte) error { *r = SizeConstraintSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go index 8b8c298d05..df9b3dcdc0 100644 --- a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SizeConstraintSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::SizeConstraintSet.FieldToMatch) @@ -18,53 +18,17 @@ type SizeConstraintSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-fieldtomatch.html#cfn-wafregional-sizeconstraintset-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SizeConstraintSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAFRegional::SizeConstraintSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go index f9b92cc505..552a2f51a5 100644 --- a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go +++ b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SizeConstraintSet_SizeConstraint AWS CloudFormation Resource (AWS::WAFRegional::SizeConstraintSet.SizeConstraint) @@ -28,53 +28,17 @@ type SizeConstraintSet_SizeConstraint struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html#cfn-wafregional-sizeconstraintset-sizeconstraint-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SizeConstraintSet_SizeConstraint) AWSCloudFormationType() string { return "AWS::WAFRegional::SizeConstraintSet.SizeConstraint" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_SizeConstraint) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SizeConstraintSet_SizeConstraint) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_SizeConstraint) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SizeConstraintSet_SizeConstraint) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_SizeConstraint) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SizeConstraintSet_SizeConstraint) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go index 9006f13984..ff1a132494 100644 --- a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go +++ b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SqlInjectionMatchSet AWS CloudFormation Resource (AWS::WAFRegional::SqlInjectionMatchSet) @@ -22,14 +22,14 @@ type SqlInjectionMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-sqlinjectionmatchset.html#cfn-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuples SqlInjectionMatchTuples []SqlInjectionMatchSet_SqlInjectionMatchTuple `json:"SqlInjectionMatchTuples,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *SqlInjectionMatchSet) AWSCloudFormationType() string { return "AWS::WAFRegional::SqlInjectionMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 SqlInjectionMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r SqlInjectionMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *SqlInjectionMatchSet) UnmarshalJSON(b []byte) error { *r = SqlInjectionMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go index acb369985f..01e374d931 100644 --- a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SqlInjectionMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::SqlInjectionMatchSet.FieldToMatch) @@ -18,53 +18,17 @@ type SqlInjectionMatchSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-fieldtomatch.html#cfn-wafregional-sqlinjectionmatchset-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SqlInjectionMatchSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAFRegional::SqlInjectionMatchSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go index e4a0d00e9e..b4cd8d9126 100644 --- a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go +++ b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // SqlInjectionMatchSet_SqlInjectionMatchTuple AWS CloudFormation Resource (AWS::WAFRegional::SqlInjectionMatchSet.SqlInjectionMatchTuple) @@ -18,53 +18,17 @@ type SqlInjectionMatchSet_SqlInjectionMatchTuple struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple.html#cfn-wafregional-sqlinjectionmatchset-sqlinjectionmatchtuple-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) AWSCloudFormationType() string { return "AWS::WAFRegional::SqlInjectionMatchSet.SqlInjectionMatchTuple" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *SqlInjectionMatchSet_SqlInjectionMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-webacl.go b/cloudformation/wafregional/aws-wafregional-webacl.go index bf4fc7b7a7..233a9958e2 100644 --- a/cloudformation/wafregional/aws-wafregional-webacl.go +++ b/cloudformation/wafregional/aws-wafregional-webacl.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACL AWS CloudFormation Resource (AWS::WAFRegional::WebACL) @@ -32,14 +32,14 @@ type WebACL struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-rules Rules []WebACL_Rule `json:"Rules,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -47,42 +47,6 @@ func (r *WebACL) AWSCloudFormationType() string { return "AWS::WAFRegional::WebACL" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 WebACL) MarshalJSON() ([]byte, error) { @@ -96,9 +60,9 @@ func (r WebACL) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -127,13 +91,13 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { *r = WebACL(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-webacl_action.go b/cloudformation/wafregional/aws-wafregional-webacl_action.go index 7975388042..fb9d72a146 100644 --- a/cloudformation/wafregional/aws-wafregional-webacl_action.go +++ b/cloudformation/wafregional/aws-wafregional-webacl_action.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACL_Action AWS CloudFormation Resource (AWS::WAFRegional::WebACL.Action) @@ -13,53 +13,17 @@ type WebACL_Action struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-action.html#cfn-wafregional-webacl-action-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *WebACL_Action) AWSCloudFormationType() string { return "AWS::WAFRegional::WebACL.Action" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_Action) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_Action) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_Action) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_Action) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_Action) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_Action) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-webacl_rule.go b/cloudformation/wafregional/aws-wafregional-webacl_rule.go index b697a4175c..9ab6ed71f3 100644 --- a/cloudformation/wafregional/aws-wafregional-webacl_rule.go +++ b/cloudformation/wafregional/aws-wafregional-webacl_rule.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACL_Rule AWS CloudFormation Resource (AWS::WAFRegional::WebACL.Rule) @@ -23,53 +23,17 @@ type WebACL_Rule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-webacl-rule.html#cfn-wafregional-webacl-rule-ruleid RuleId string `json:"RuleId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *WebACL_Rule) AWSCloudFormationType() string { return "AWS::WAFRegional::WebACL.Rule" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_Rule) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACL_Rule) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_Rule) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACL_Rule) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_Rule) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACL_Rule) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-webaclassociation.go b/cloudformation/wafregional/aws-wafregional-webaclassociation.go index 8d2ca7db21..82e857f4a3 100644 --- a/cloudformation/wafregional/aws-wafregional-webaclassociation.go +++ b/cloudformation/wafregional/aws-wafregional-webaclassociation.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // WebACLAssociation AWS CloudFormation Resource (AWS::WAFRegional::WebACLAssociation) @@ -22,14 +22,14 @@ type WebACLAssociation struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webaclassociation.html#cfn-wafregional-webaclassociation-webaclid WebACLId string `json:"WebACLId,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *WebACLAssociation) AWSCloudFormationType() string { return "AWS::WAFRegional::WebACLAssociation" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACLAssociation) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *WebACLAssociation) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACLAssociation) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *WebACLAssociation) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACLAssociation) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *WebACLAssociation) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 WebACLAssociation) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r WebACLAssociation) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *WebACLAssociation) UnmarshalJSON(b []byte) error { *r = WebACLAssociation(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-xssmatchset.go b/cloudformation/wafregional/aws-wafregional-xssmatchset.go index f69651eeca..5b22e83a2e 100644 --- a/cloudformation/wafregional/aws-wafregional-xssmatchset.go +++ b/cloudformation/wafregional/aws-wafregional-xssmatchset.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // XssMatchSet AWS CloudFormation Resource (AWS::WAFRegional::XssMatchSet) @@ -22,14 +22,14 @@ type XssMatchSet struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-xssmatchset.html#cfn-wafregional-xssmatchset-xssmatchtuples XssMatchTuples []XssMatchSet_XssMatchTuple `json:"XssMatchTuples,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -37,42 +37,6 @@ func (r *XssMatchSet) AWSCloudFormationType() string { return "AWS::WAFRegional::XssMatchSet" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 XssMatchSet) MarshalJSON() ([]byte, error) { @@ -86,9 +50,9 @@ func (r XssMatchSet) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -117,13 +81,13 @@ func (r *XssMatchSet) UnmarshalJSON(b []byte) error { *r = XssMatchSet(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go index 1336e2612a..34d6ed7b7d 100644 --- a/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // XssMatchSet_FieldToMatch AWS CloudFormation Resource (AWS::WAFRegional::XssMatchSet.FieldToMatch) @@ -18,53 +18,17 @@ type XssMatchSet_FieldToMatch struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-fieldtomatch.html#cfn-wafregional-xssmatchset-fieldtomatch-type Type string `json:"Type,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *XssMatchSet_FieldToMatch) AWSCloudFormationType() string { return "AWS::WAFRegional::XssMatchSet.FieldToMatch" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_FieldToMatch) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_FieldToMatch) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_FieldToMatch) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_FieldToMatch) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_FieldToMatch) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_FieldToMatch) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go b/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go index 6b6df75522..5d6b5dd6a9 100644 --- a/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go +++ b/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go @@ -1,7 +1,7 @@ package wafregional import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // XssMatchSet_XssMatchTuple AWS CloudFormation Resource (AWS::WAFRegional::XssMatchSet.XssMatchTuple) @@ -18,53 +18,17 @@ type XssMatchSet_XssMatchTuple struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-xssmatchtuple.html#cfn-wafregional-xssmatchset-xssmatchtuple-texttransformation TextTransformation string `json:"TextTransformation,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *XssMatchSet_XssMatchTuple) AWSCloudFormationType() string { return "AWS::WAFRegional::XssMatchSet.XssMatchTuple" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_XssMatchTuple) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *XssMatchSet_XssMatchTuple) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_XssMatchTuple) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *XssMatchSet_XssMatchTuple) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_XssMatchTuple) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *XssMatchSet_XssMatchTuple) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/cloudformation/wafv2/aws-wafv2-ipset.go b/cloudformation/wafv2/aws-wafv2-ipset.go new file mode 100644 index 0000000000..de68a5a990 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-ipset.go @@ -0,0 +1,158 @@ +package wafv2 + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// IPSet AWS CloudFormation Resource (AWS::WAFv2::IPSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html +type IPSet struct { + + // Addresses AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-addresses + Addresses *IPSet_IPAddresses `json:"Addresses,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-description + Description string `json:"Description,omitempty"` + + // IPAddressVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipaddressversion + IPAddressVersion string `json:"IPAddressVersion,omitempty"` + + // IPSet AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipset + IPSet *IPSet_IPSet `json:"IPSet,omitempty"` + + // IPSetSummary AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipsetsummary + IPSetSummary *IPSet_IPSetSummary `json:"IPSetSummary,omitempty"` + + // IPSets AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipsets + IPSets *IPSet_IPSets `json:"IPSets,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-id + Id string `json:"Id,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-limit + Limit int `json:"Limit,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-name + Name string `json:"Name,omitempty"` + + // NextLockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-nextlocktoken + NextLockToken string `json:"NextLockToken,omitempty"` + + // NextMarker AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-nextmarker + NextMarker string `json:"NextMarker,omitempty"` + + // Scope AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-scope + Scope string `json:"Scope,omitempty"` + + // Summary AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-summary + Summary *IPSet_IPSetSummary `json:"Summary,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-tags + Tags *IPSet_TagList `json:"Tags,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *IPSet) AWSCloudFormationType() string { + return "AWS::WAFv2::IPSet" +} + +// 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 IPSet) MarshalJSON() ([]byte, error) { + type Properties IPSet + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *IPSet) UnmarshalJSON(b []byte) error { + type Properties IPSet + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = IPSet(*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) + } + return nil +} diff --git a/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go b/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go new file mode 100644 index 0000000000..b1feb77717 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// IPSet_IPAddresses AWS CloudFormation Resource (AWS::WAFv2::IPSet.IPAddresses) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipaddresses.html +type IPSet_IPAddresses struct { + + // IPAddresses AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipaddresses.html#cfn-wafv2-ipset-ipaddresses-ipaddresses + IPAddresses []string `json:"IPAddresses,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *IPSet_IPAddresses) AWSCloudFormationType() string { + return "AWS::WAFv2::IPSet.IPAddresses" +} diff --git a/cloudformation/wafv2/aws-wafv2-ipset_ipset.go b/cloudformation/wafv2/aws-wafv2-ipset_ipset.go new file mode 100644 index 0000000000..48d5e0a1d7 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-ipset_ipset.go @@ -0,0 +1,54 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// IPSet_IPSet AWS CloudFormation Resource (AWS::WAFv2::IPSet.IPSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html +type IPSet_IPSet struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html#cfn-wafv2-ipset-ipset-arn + ARN string `json:"ARN,omitempty"` + + // Addresses AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html#cfn-wafv2-ipset-ipset-addresses + Addresses *IPSet_IPAddresses `json:"Addresses,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html#cfn-wafv2-ipset-ipset-description + Description string `json:"Description,omitempty"` + + // IPAddressVersion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html#cfn-wafv2-ipset-ipset-ipaddressversion + IPAddressVersion string `json:"IPAddressVersion,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html#cfn-wafv2-ipset-ipset-id + Id string `json:"Id,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipset.html#cfn-wafv2-ipset-ipset-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *IPSet_IPSet) AWSCloudFormationType() string { + return "AWS::WAFv2::IPSet.IPSet" +} diff --git a/cloudformation/wafv2/aws-wafv2-ipset_ipsets.go b/cloudformation/wafv2/aws-wafv2-ipset_ipsets.go new file mode 100644 index 0000000000..56ee894dac --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-ipset_ipsets.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// IPSet_IPSets AWS CloudFormation Resource (AWS::WAFv2::IPSet.IPSets) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsets.html +type IPSet_IPSets struct { + + // IPSets AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsets.html#cfn-wafv2-ipset-ipsets-ipsets + IPSets []IPSet_IPSetSummary `json:"IPSets,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *IPSet_IPSets) AWSCloudFormationType() string { + return "AWS::WAFv2::IPSet.IPSets" +} diff --git a/cloudformation/wafv2/aws-wafv2-ipset_ipsetsummary.go b/cloudformation/wafv2/aws-wafv2-ipset_ipsetsummary.go new file mode 100644 index 0000000000..c8f5681c06 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-ipset_ipsetsummary.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// IPSet_IPSetSummary AWS CloudFormation Resource (AWS::WAFv2::IPSet.IPSetSummary) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsetsummary.html +type IPSet_IPSetSummary struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsetsummary.html#cfn-wafv2-ipset-ipsetsummary-arn + ARN string `json:"ARN,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsetsummary.html#cfn-wafv2-ipset-ipsetsummary-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsetsummary.html#cfn-wafv2-ipset-ipsetsummary-id + Id string `json:"Id,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsetsummary.html#cfn-wafv2-ipset-ipsetsummary-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-ipsetsummary.html#cfn-wafv2-ipset-ipsetsummary-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *IPSet_IPSetSummary) AWSCloudFormationType() string { + return "AWS::WAFv2::IPSet.IPSetSummary" +} diff --git a/cloudformation/wafv2/aws-wafv2-ipset_taglist.go b/cloudformation/wafv2/aws-wafv2-ipset_taglist.go new file mode 100644 index 0000000000..5d3885424e --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-ipset_taglist.go @@ -0,0 +1,30 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" +) + +// IPSet_TagList AWS CloudFormation Resource (AWS::WAFv2::IPSet.TagList) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-taglist.html +type IPSet_TagList struct { + + // TagList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-ipset-taglist.html#cfn-wafv2-ipset-taglist-taglist + TagList []tags.Tag `json:"TagList,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *IPSet_TagList) AWSCloudFormationType() string { + return "AWS::WAFv2::IPSet.TagList" +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset.go b/cloudformation/wafv2/aws-wafv2-regexpatternset.go new file mode 100644 index 0000000000..8bd0877156 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset.go @@ -0,0 +1,148 @@ +package wafv2 + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RegexPatternSet AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html +type RegexPatternSet struct { + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-id + Id string `json:"Id,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-limit + Limit int `json:"Limit,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-name + Name string `json:"Name,omitempty"` + + // NextLockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-nextlocktoken + NextLockToken string `json:"NextLockToken,omitempty"` + + // NextMarker AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-nextmarker + NextMarker string `json:"NextMarker,omitempty"` + + // RegexPatternSet AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternset + RegexPatternSet *RegexPatternSet_RegexPatternSet `json:"RegexPatternSet,omitempty"` + + // RegexPatternSets AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternsets + RegexPatternSets *RegexPatternSet_RegexPatternSets `json:"RegexPatternSets,omitempty"` + + // RegularExpressionList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regularexpressionlist + RegularExpressionList *RegexPatternSet_RegularExpressionList `json:"RegularExpressionList,omitempty"` + + // Scope AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-scope + Scope string `json:"Scope,omitempty"` + + // Summary AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-summary + Summary *RegexPatternSet_RegexPatternSetSummary `json:"Summary,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-tags + Tags *RegexPatternSet_TagList `json:"Tags,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet" +} + +// 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 RegexPatternSet) MarshalJSON() ([]byte, error) { + type Properties RegexPatternSet + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *RegexPatternSet) UnmarshalJSON(b []byte) error { + type Properties RegexPatternSet + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = RegexPatternSet(*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) + } + return nil +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go new file mode 100644 index 0000000000..42c25954e2 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RegexPatternSet_Regex AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet.Regex) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regex.html +type RegexPatternSet_Regex struct { + + // RegexString AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regex.html#cfn-wafv2-regexpatternset-regex-regexstring + RegexString string `json:"RegexString,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet_Regex) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet.Regex" +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternset.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternset.go new file mode 100644 index 0000000000..f2ebd8acab --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternset.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RegexPatternSet_RegexPatternSet AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet.RegexPatternSet) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternset.html +type RegexPatternSet_RegexPatternSet struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternset-arn + ARN string `json:"ARN,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternset-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternset-id + Id string `json:"Id,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternset-name + Name string `json:"Name,omitempty"` + + // RegularExpressionList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternset.html#cfn-wafv2-regexpatternset-regexpatternset-regularexpressionlist + RegularExpressionList *RegexPatternSet_RegularExpressionList `json:"RegularExpressionList,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet_RegexPatternSet) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet.RegexPatternSet" +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternsets.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternsets.go new file mode 100644 index 0000000000..7267f67500 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternsets.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RegexPatternSet_RegexPatternSets AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet.RegexPatternSets) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsets.html +type RegexPatternSet_RegexPatternSets struct { + + // RegexPatternSets AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsets.html#cfn-wafv2-regexpatternset-regexpatternsets-regexpatternsets + RegexPatternSets []RegexPatternSet_RegexPatternSetSummary `json:"RegexPatternSets,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet_RegexPatternSets) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet.RegexPatternSets" +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternsetsummary.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternsetsummary.go new file mode 100644 index 0000000000..8f3eacfd41 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regexpatternsetsummary.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RegexPatternSet_RegexPatternSetSummary AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsetsummary.html +type RegexPatternSet_RegexPatternSetSummary struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsetsummary.html#cfn-wafv2-regexpatternset-regexpatternsetsummary-arn + ARN string `json:"ARN,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsetsummary.html#cfn-wafv2-regexpatternset-regexpatternsetsummary-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsetsummary.html#cfn-wafv2-regexpatternset-regexpatternsetsummary-id + Id string `json:"Id,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsetsummary.html#cfn-wafv2-regexpatternset-regexpatternsetsummary-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regexpatternsetsummary.html#cfn-wafv2-regexpatternset-regexpatternsetsummary-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet_RegexPatternSetSummary) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go new file mode 100644 index 0000000000..eaf26107f8 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RegexPatternSet_RegularExpressionList AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet.RegularExpressionList) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regularexpressionlist.html +type RegexPatternSet_RegularExpressionList struct { + + // RegularExpressionList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regularexpressionlist.html#cfn-wafv2-regexpatternset-regularexpressionlist-regularexpressionlist + RegularExpressionList []RegexPatternSet_Regex `json:"RegularExpressionList,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet_RegularExpressionList) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet.RegularExpressionList" +} diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go new file mode 100644 index 0000000000..a928383100 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go @@ -0,0 +1,30 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" +) + +// RegexPatternSet_TagList AWS CloudFormation Resource (AWS::WAFv2::RegexPatternSet.TagList) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-taglist.html +type RegexPatternSet_TagList struct { + + // TagList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-taglist.html#cfn-wafv2-regexpatternset-taglist-taglist + TagList []tags.Tag `json:"TagList,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RegexPatternSet_TagList) AWSCloudFormationType() string { + return "AWS::WAFv2::RegexPatternSet.TagList" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup.go b/cloudformation/wafv2/aws-wafv2-rulegroup.go new file mode 100644 index 0000000000..0a114021e3 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup.go @@ -0,0 +1,168 @@ +package wafv2 + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup AWS CloudFormation Resource (AWS::WAFv2::RuleGroup) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html +type RuleGroup struct { + + // Capacity AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-capacity + Capacity int `json:"Capacity,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-id + Id string `json:"Id,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-limit + Limit int `json:"Limit,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-name + Name string `json:"Name,omitempty"` + + // NextLockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-nextlocktoken + NextLockToken string `json:"NextLockToken,omitempty"` + + // NextMarker AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-nextmarker + NextMarker string `json:"NextMarker,omitempty"` + + // RuleGroup AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rulegroup + RuleGroup *RuleGroup_RuleGroup `json:"RuleGroup,omitempty"` + + // RuleGroupSummary AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rulegroupsummary + RuleGroupSummary *RuleGroup_RuleGroupSummary `json:"RuleGroupSummary,omitempty"` + + // RuleGroups AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rulegroups + RuleGroups *RuleGroup_RuleGroups `json:"RuleGroups,omitempty"` + + // Rules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rules + Rules *RuleGroup_Rules `json:"Rules,omitempty"` + + // Scope AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-scope + Scope string `json:"Scope,omitempty"` + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-statement + Statement *RuleGroup_StatementOne `json:"Statement,omitempty"` + + // Summary AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-summary + Summary *RuleGroup_RuleGroupSummary `json:"Summary,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-tags + Tags *RuleGroup_TagList `json:"Tags,omitempty"` + + // VisibilityConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-visibilityconfig + VisibilityConfig *RuleGroup_VisibilityConfig `json:"VisibilityConfig,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup" +} + +// 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 RuleGroup) MarshalJSON() ([]byte, error) { + type Properties RuleGroup + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *RuleGroup) UnmarshalJSON(b []byte) error { + type Properties RuleGroup + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = RuleGroup(*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) + } + return nil +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go new file mode 100644 index 0000000000..96ef6dd0a0 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_AllowAction AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.AllowAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allowaction.html +type RuleGroup_AllowAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_AllowAction) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.AllowAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go b/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go new file mode 100644 index 0000000000..889908e980 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_AllQueryArguments AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.AllQueryArguments) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allqueryarguments.html +type RuleGroup_AllQueryArguments struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_AllQueryArguments) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.AllQueryArguments" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go new file mode 100644 index 0000000000..75547369a6 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_AndStatementOne AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.AndStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatementone.html +type RuleGroup_AndStatementOne struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatementone.html#cfn-wafv2-rulegroup-andstatementone-statements + Statements *RuleGroup_StatementTwos `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_AndStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.AndStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go new file mode 100644 index 0000000000..3aad5571b8 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_AndStatementTwo AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.AndStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatementtwo.html +type RuleGroup_AndStatementTwo struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatementtwo.html#cfn-wafv2-rulegroup-andstatementtwo-statements + Statements *RuleGroup_StatementThrees `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_AndStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.AndStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go new file mode 100644 index 0000000000..2523a68dce --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_BlockAction AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.BlockAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-blockaction.html +type RuleGroup_BlockAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_BlockAction) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.BlockAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_body.go b/cloudformation/wafv2/aws-wafv2-rulegroup_body.go new file mode 100644 index 0000000000..6e5fa0e19a --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_body.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_Body AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.Body) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-body.html +type RuleGroup_Body struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_Body) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.Body" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go new file mode 100644 index 0000000000..da5a291c00 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_ByteMatchStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.ByteMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html +type RuleGroup_ByteMatchStatement struct { + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-fieldtomatch + FieldToMatch *RuleGroup_FieldToMatch `json:"FieldToMatch,omitempty"` + + // PositionalConstraint AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-positionalconstraint + PositionalConstraint string `json:"PositionalConstraint,omitempty"` + + // SearchString AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-searchstring + SearchString string `json:"SearchString,omitempty"` + + // SearchStringBase64 AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-searchstringbase64 + SearchStringBase64 string `json:"SearchStringBase64,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-texttransformations + TextTransformations *RuleGroup_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_ByteMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.ByteMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go new file mode 100644 index 0000000000..07cbfd14af --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_CountAction AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.CountAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countaction.html +type RuleGroup_CountAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_CountAction) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.CountAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go b/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go new file mode 100644 index 0000000000..fd8137cd37 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_CountryCodes AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.CountryCodes) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countrycodes.html +type RuleGroup_CountryCodes struct { + + // CountryCodes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countrycodes.html#cfn-wafv2-rulegroup-countrycodes-countrycodes + CountryCodes []string `json:"CountryCodes,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_CountryCodes) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.CountryCodes" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go b/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go new file mode 100644 index 0000000000..dd9a9f5c21 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go @@ -0,0 +1,59 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_FieldToMatch AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.FieldToMatch) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html +type RuleGroup_FieldToMatch struct { + + // AllQueryArguments AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-allqueryarguments + AllQueryArguments *RuleGroup_AllQueryArguments `json:"AllQueryArguments,omitempty"` + + // Body AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-body + Body *RuleGroup_Body `json:"Body,omitempty"` + + // Method AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-method + Method *RuleGroup_Method `json:"Method,omitempty"` + + // QueryString AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-querystring + QueryString *RuleGroup_QueryString `json:"QueryString,omitempty"` + + // SingleHeader AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-singleheader + SingleHeader *RuleGroup_SingleHeader `json:"SingleHeader,omitempty"` + + // SingleQueryArgument AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-singlequeryargument + SingleQueryArgument *RuleGroup_SingleQueryArgument `json:"SingleQueryArgument,omitempty"` + + // UriPath AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-uripath + UriPath *RuleGroup_UriPath `json:"UriPath,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_FieldToMatch) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.FieldToMatch" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go new file mode 100644 index 0000000000..2031a1b9db --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_GeoMatchStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.GeoMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html +type RuleGroup_GeoMatchStatement struct { + + // CountryCodes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html#cfn-wafv2-rulegroup-geomatchstatement-countrycodes + CountryCodes *RuleGroup_CountryCodes `json:"CountryCodes,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_GeoMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.GeoMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go new file mode 100644 index 0000000000..b5cf0fe9db --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_IPSetReferenceStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.IPSetReferenceStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html +type RuleGroup_IPSetReferenceStatement struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html#cfn-wafv2-rulegroup-ipsetreferencestatement-arn + ARN string `json:"ARN,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_IPSetReferenceStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.IPSetReferenceStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_method.go b/cloudformation/wafv2/aws-wafv2-rulegroup_method.go new file mode 100644 index 0000000000..917d38a8ce --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_method.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_Method AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.Method) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-method.html +type RuleGroup_Method struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_Method) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.Method" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go new file mode 100644 index 0000000000..63549ae109 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_NotStatementOne AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.NotStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatementone.html +type RuleGroup_NotStatementOne struct { + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatementone.html#cfn-wafv2-rulegroup-notstatementone-statement + Statement *RuleGroup_StatementTwo `json:"Statement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_NotStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.NotStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go new file mode 100644 index 0000000000..b182911637 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_NotStatementTwo AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.NotStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatementtwo.html +type RuleGroup_NotStatementTwo struct { + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatementtwo.html#cfn-wafv2-rulegroup-notstatementtwo-statement + Statement *RuleGroup_StatementThree `json:"Statement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_NotStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.NotStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go new file mode 100644 index 0000000000..101fb53486 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_OrStatementOne AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.OrStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatementone.html +type RuleGroup_OrStatementOne struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatementone.html#cfn-wafv2-rulegroup-orstatementone-statements + Statements *RuleGroup_StatementTwos `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_OrStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.OrStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go new file mode 100644 index 0000000000..98161bbe0c --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_OrStatementTwo AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.OrStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatementtwo.html +type RuleGroup_OrStatementTwo struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatementtwo.html#cfn-wafv2-rulegroup-orstatementtwo-statements + Statements *RuleGroup_StatementThrees `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_OrStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.OrStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go b/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go new file mode 100644 index 0000000000..334bf2eafe --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_QueryString AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.QueryString) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-querystring.html +type RuleGroup_QueryString struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_QueryString) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.QueryString" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go new file mode 100644 index 0000000000..acf6685d7d --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RateBasedStatementOne AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RateBasedStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html +type RuleGroup_RateBasedStatementOne struct { + + // AggregateKeyType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-aggregatekeytype + AggregateKeyType string `json:"AggregateKeyType,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-limit + Limit int `json:"Limit,omitempty"` + + // ScopeDownStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-scopedownstatement + ScopeDownStatement *RuleGroup_StatementTwo `json:"ScopeDownStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RateBasedStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RateBasedStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go new file mode 100644 index 0000000000..9ca8a8b0f3 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RateBasedStatementTwo AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RateBasedStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html +type RuleGroup_RateBasedStatementTwo struct { + + // AggregateKeyType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-aggregatekeytype + AggregateKeyType string `json:"AggregateKeyType,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-limit + Limit int `json:"Limit,omitempty"` + + // ScopeDownStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-scopedownstatement + ScopeDownStatement *RuleGroup_StatementThree `json:"ScopeDownStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RateBasedStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RateBasedStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go new file mode 100644 index 0000000000..8982f90d9a --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RegexPatternSetReferenceStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html +type RuleGroup_RegexPatternSetReferenceStatement struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-arn + ARN string `json:"ARN,omitempty"` + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-fieldtomatch + FieldToMatch *RuleGroup_FieldToMatch `json:"FieldToMatch,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-texttransformations + TextTransformations *RuleGroup_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RegexPatternSetReferenceStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go new file mode 100644 index 0000000000..bc3d405653 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_Rule AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.Rule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html +type RuleGroup_Rule struct { + + // Action AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-action + Action *RuleGroup_RuleAction `json:"Action,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-name + Name string `json:"Name,omitempty"` + + // Priority AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-priority + Priority int `json:"Priority,omitempty"` + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-statement + Statement *RuleGroup_StatementOne `json:"Statement,omitempty"` + + // VisibilityConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-visibilityconfig + VisibilityConfig *RuleGroup_VisibilityConfig `json:"VisibilityConfig,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_Rule) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.Rule" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go new file mode 100644 index 0000000000..934354523c --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RuleAction AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RuleAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html +type RuleGroup_RuleAction struct { + + // Allow AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-allow + Allow *RuleGroup_AllowAction `json:"Allow,omitempty"` + + // Block AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-block + Block *RuleGroup_BlockAction `json:"Block,omitempty"` + + // Count AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-count + Count *RuleGroup_CountAction `json:"Count,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RuleAction) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RuleAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroup.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroup.go new file mode 100644 index 0000000000..f0fc225853 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroup.go @@ -0,0 +1,59 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RuleGroup AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RuleGroup) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html +type RuleGroup_RuleGroup struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-arn + ARN string `json:"ARN,omitempty"` + + // Capacity AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-capacity + Capacity int `json:"Capacity,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-id + Id string `json:"Id,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-name + Name string `json:"Name,omitempty"` + + // Rules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-rules + Rules *RuleGroup_Rules `json:"Rules,omitempty"` + + // VisibilityConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroup.html#cfn-wafv2-rulegroup-rulegroup-visibilityconfig + VisibilityConfig *RuleGroup_VisibilityConfig `json:"VisibilityConfig,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RuleGroup) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RuleGroup" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroups.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroups.go new file mode 100644 index 0000000000..1ef24cc80d --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroups.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RuleGroups AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RuleGroups) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroups.html +type RuleGroup_RuleGroups struct { + + // RuleGroups AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroups.html#cfn-wafv2-rulegroup-rulegroups-rulegroups + RuleGroups []RuleGroup_RuleGroupSummary `json:"RuleGroups,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RuleGroups) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RuleGroups" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroupsummary.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroupsummary.go new file mode 100644 index 0000000000..52334c66a4 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rulegroupsummary.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_RuleGroupSummary AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.RuleGroupSummary) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroupsummary.html +type RuleGroup_RuleGroupSummary struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroupsummary.html#cfn-wafv2-rulegroup-rulegroupsummary-arn + ARN string `json:"ARN,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroupsummary.html#cfn-wafv2-rulegroup-rulegroupsummary-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroupsummary.html#cfn-wafv2-rulegroup-rulegroupsummary-id + Id string `json:"Id,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroupsummary.html#cfn-wafv2-rulegroup-rulegroupsummary-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rulegroupsummary.html#cfn-wafv2-rulegroup-rulegroupsummary-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_RuleGroupSummary) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.RuleGroupSummary" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go new file mode 100644 index 0000000000..cca67869de --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_Rules AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.Rules) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rules.html +type RuleGroup_Rules struct { + + // Rules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rules.html#cfn-wafv2-rulegroup-rules-rules + Rules []RuleGroup_Rule `json:"Rules,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_Rules) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.Rules" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go b/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go new file mode 100644 index 0000000000..e615123d47 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_SingleHeader AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.SingleHeader) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singleheader.html +type RuleGroup_SingleHeader struct { + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singleheader.html#cfn-wafv2-rulegroup-singleheader-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_SingleHeader) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.SingleHeader" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go b/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go new file mode 100644 index 0000000000..5623fc4644 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_SingleQueryArgument AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.SingleQueryArgument) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singlequeryargument.html +type RuleGroup_SingleQueryArgument struct { + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singlequeryargument.html#cfn-wafv2-rulegroup-singlequeryargument-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_SingleQueryArgument) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.SingleQueryArgument" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go new file mode 100644 index 0000000000..f0640b4d7a --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go @@ -0,0 +1,44 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_SizeConstraintStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.SizeConstraintStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html +type RuleGroup_SizeConstraintStatement struct { + + // ComparisonOperator AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-comparisonoperator + ComparisonOperator string `json:"ComparisonOperator,omitempty"` + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-fieldtomatch + FieldToMatch *RuleGroup_FieldToMatch `json:"FieldToMatch,omitempty"` + + // Size AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-size + Size int `json:"Size,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-texttransformations + TextTransformations *RuleGroup_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_SizeConstraintStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.SizeConstraintStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go new file mode 100644 index 0000000000..05e2e4c475 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_SqliMatchStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.SqliMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html +type RuleGroup_SqliMatchStatement struct { + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-fieldtomatch + FieldToMatch *RuleGroup_FieldToMatch `json:"FieldToMatch,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-texttransformations + TextTransformations *RuleGroup_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_SqliMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.SqliMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go new file mode 100644 index 0000000000..f76a3402e1 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go @@ -0,0 +1,79 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_StatementOne AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.StatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html +type RuleGroup_StatementOne struct { + + // AndStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-andstatement + AndStatement *RuleGroup_AndStatementOne `json:"AndStatement,omitempty"` + + // ByteMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-bytematchstatement + ByteMatchStatement *RuleGroup_ByteMatchStatement `json:"ByteMatchStatement,omitempty"` + + // GeoMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-geomatchstatement + GeoMatchStatement *RuleGroup_GeoMatchStatement `json:"GeoMatchStatement,omitempty"` + + // IPSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-ipsetreferencestatement + IPSetReferenceStatement *RuleGroup_IPSetReferenceStatement `json:"IPSetReferenceStatement,omitempty"` + + // NotStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-notstatement + NotStatement *RuleGroup_NotStatementOne `json:"NotStatement,omitempty"` + + // OrStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-orstatement + OrStatement *RuleGroup_OrStatementOne `json:"OrStatement,omitempty"` + + // RateBasedStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-ratebasedstatement + RateBasedStatement *RuleGroup_RateBasedStatementOne `json:"RateBasedStatement,omitempty"` + + // RegexPatternSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-regexpatternsetreferencestatement + RegexPatternSetReferenceStatement *RuleGroup_RegexPatternSetReferenceStatement `json:"RegexPatternSetReferenceStatement,omitempty"` + + // SizeConstraintStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-sizeconstraintstatement + SizeConstraintStatement *RuleGroup_SizeConstraintStatement `json:"SizeConstraintStatement,omitempty"` + + // SqliMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-sqlimatchstatement + SqliMatchStatement *RuleGroup_SqliMatchStatement `json:"SqliMatchStatement,omitempty"` + + // XssMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementone.html#cfn-wafv2-rulegroup-statementone-xssmatchstatement + XssMatchStatement *RuleGroup_XssMatchStatement `json:"XssMatchStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_StatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.StatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go new file mode 100644 index 0000000000..e7ced8177c --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go @@ -0,0 +1,59 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_StatementThree AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.StatementThree) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html +type RuleGroup_StatementThree struct { + + // ByteMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-bytematchstatement + ByteMatchStatement *RuleGroup_ByteMatchStatement `json:"ByteMatchStatement,omitempty"` + + // GeoMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-geomatchstatement + GeoMatchStatement *RuleGroup_GeoMatchStatement `json:"GeoMatchStatement,omitempty"` + + // IPSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-ipsetreferencestatement + IPSetReferenceStatement *RuleGroup_IPSetReferenceStatement `json:"IPSetReferenceStatement,omitempty"` + + // RegexPatternSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-regexpatternsetreferencestatement + RegexPatternSetReferenceStatement *RuleGroup_RegexPatternSetReferenceStatement `json:"RegexPatternSetReferenceStatement,omitempty"` + + // SizeConstraintStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-sizeconstraintstatement + SizeConstraintStatement *RuleGroup_SizeConstraintStatement `json:"SizeConstraintStatement,omitempty"` + + // SqliMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-sqlimatchstatement + SqliMatchStatement *RuleGroup_SqliMatchStatement `json:"SqliMatchStatement,omitempty"` + + // XssMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthree.html#cfn-wafv2-rulegroup-statementthree-xssmatchstatement + XssMatchStatement *RuleGroup_XssMatchStatement `json:"XssMatchStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_StatementThree) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.StatementThree" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go new file mode 100644 index 0000000000..17aab740bd --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_StatementThrees AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.StatementThrees) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthrees.html +type RuleGroup_StatementThrees struct { + + // StatementThrees AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementthrees.html#cfn-wafv2-rulegroup-statementthrees-statementthrees + StatementThrees []RuleGroup_StatementThree `json:"StatementThrees,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_StatementThrees) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.StatementThrees" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go new file mode 100644 index 0000000000..49c598093c --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go @@ -0,0 +1,79 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_StatementTwo AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.StatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html +type RuleGroup_StatementTwo struct { + + // AndStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-andstatement + AndStatement *RuleGroup_AndStatementTwo `json:"AndStatement,omitempty"` + + // ByteMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-bytematchstatement + ByteMatchStatement *RuleGroup_ByteMatchStatement `json:"ByteMatchStatement,omitempty"` + + // GeoMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-geomatchstatement + GeoMatchStatement *RuleGroup_GeoMatchStatement `json:"GeoMatchStatement,omitempty"` + + // IPSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-ipsetreferencestatement + IPSetReferenceStatement *RuleGroup_IPSetReferenceStatement `json:"IPSetReferenceStatement,omitempty"` + + // NotStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-notstatement + NotStatement *RuleGroup_NotStatementTwo `json:"NotStatement,omitempty"` + + // OrStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-orstatement + OrStatement *RuleGroup_OrStatementTwo `json:"OrStatement,omitempty"` + + // RateBasedStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-ratebasedstatement + RateBasedStatement *RuleGroup_RateBasedStatementTwo `json:"RateBasedStatement,omitempty"` + + // RegexPatternSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-regexpatternsetreferencestatement + RegexPatternSetReferenceStatement *RuleGroup_RegexPatternSetReferenceStatement `json:"RegexPatternSetReferenceStatement,omitempty"` + + // SizeConstraintStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-sizeconstraintstatement + SizeConstraintStatement *RuleGroup_SizeConstraintStatement `json:"SizeConstraintStatement,omitempty"` + + // SqliMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-sqlimatchstatement + SqliMatchStatement *RuleGroup_SqliMatchStatement `json:"SqliMatchStatement,omitempty"` + + // XssMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwo.html#cfn-wafv2-rulegroup-statementtwo-xssmatchstatement + XssMatchStatement *RuleGroup_XssMatchStatement `json:"XssMatchStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_StatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.StatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go new file mode 100644 index 0000000000..58dad601f0 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_StatementTwos AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.StatementTwos) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwos.html +type RuleGroup_StatementTwos struct { + + // StatementTwos AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statementtwos.html#cfn-wafv2-rulegroup-statementtwos-statementtwos + StatementTwos []RuleGroup_StatementTwo `json:"StatementTwos,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_StatementTwos) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.StatementTwos" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go b/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go new file mode 100644 index 0000000000..3d12406914 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go @@ -0,0 +1,30 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" +) + +// RuleGroup_TagList AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.TagList) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-taglist.html +type RuleGroup_TagList struct { + + // TagList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-taglist.html#cfn-wafv2-rulegroup-taglist-taglist + TagList []tags.Tag `json:"TagList,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_TagList) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.TagList" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go new file mode 100644 index 0000000000..95d23c6185 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_TextTransformation AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.TextTransformation) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html +type RuleGroup_TextTransformation struct { + + // Priority AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html#cfn-wafv2-rulegroup-texttransformation-priority + Priority int `json:"Priority,omitempty"` + + // Type AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html#cfn-wafv2-rulegroup-texttransformation-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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_TextTransformation) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.TextTransformation" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go new file mode 100644 index 0000000000..c13f81820b --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_TextTransformations AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.TextTransformations) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformations.html +type RuleGroup_TextTransformations struct { + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformations.html#cfn-wafv2-rulegroup-texttransformations-texttransformations + TextTransformations []RuleGroup_TextTransformation `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_TextTransformations) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.TextTransformations" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go b/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go new file mode 100644 index 0000000000..9d00e710f7 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_UriPath AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.UriPath) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-uripath.html +type RuleGroup_UriPath struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_UriPath) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.UriPath" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go b/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go new file mode 100644 index 0000000000..c557b51b2b --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_VisibilityConfig AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.VisibilityConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html +type RuleGroup_VisibilityConfig struct { + + // CloudWatchMetricsEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-cloudwatchmetricsenabled + CloudWatchMetricsEnabled bool `json:"CloudWatchMetricsEnabled,omitempty"` + + // MetricName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-metricname + MetricName string `json:"MetricName,omitempty"` + + // SampledRequestsEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-sampledrequestsenabled + SampledRequestsEnabled bool `json:"SampledRequestsEnabled,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_VisibilityConfig) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.VisibilityConfig" +} diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go new file mode 100644 index 0000000000..952c24b936 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// RuleGroup_XssMatchStatement AWS CloudFormation Resource (AWS::WAFv2::RuleGroup.XssMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html +type RuleGroup_XssMatchStatement struct { + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html#cfn-wafv2-rulegroup-xssmatchstatement-fieldtomatch + FieldToMatch *RuleGroup_FieldToMatch `json:"FieldToMatch,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html#cfn-wafv2-rulegroup-xssmatchstatement-texttransformations + TextTransformations *RuleGroup_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *RuleGroup_XssMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::RuleGroup.XssMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl.go b/cloudformation/wafv2/aws-wafv2-webacl.go new file mode 100644 index 0000000000..3a43ba4753 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl.go @@ -0,0 +1,158 @@ +package wafv2 + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL AWS CloudFormation Resource (AWS::WAFv2::WebACL) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html +type WebACL struct { + + // DefaultAction AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-defaultaction + DefaultAction *WebACL_DefaultAction `json:"DefaultAction,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-id + Id string `json:"Id,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-limit + Limit int `json:"Limit,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-name + Name string `json:"Name,omitempty"` + + // NextLockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-nextlocktoken + NextLockToken string `json:"NextLockToken,omitempty"` + + // NextMarker AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-nextmarker + NextMarker string `json:"NextMarker,omitempty"` + + // Rules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-rules + Rules *WebACL_Rules `json:"Rules,omitempty"` + + // Scope AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-scope + Scope string `json:"Scope,omitempty"` + + // Summary AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-summary + Summary *WebACL_WebACLSummary `json:"Summary,omitempty"` + + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tags + Tags *WebACL_TagList `json:"Tags,omitempty"` + + // VisibilityConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-visibilityconfig + VisibilityConfig *WebACL_VisibilityConfig `json:"VisibilityConfig,omitempty"` + + // WebACL AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-webacl + WebACL *WebACL_WebACL `json:"WebACL,omitempty"` + + // WebACLs AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-webacls + WebACLs *WebACL_WebACLs `json:"WebACLs,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL" +} + +// 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 WebACL) MarshalJSON() ([]byte, error) { + type Properties WebACL + 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"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *WebACL) UnmarshalJSON(b []byte) error { + type Properties WebACL + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy 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 = WebACL(*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) + } + return nil +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go b/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go new file mode 100644 index 0000000000..b36590bb30 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_AllowAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.AllowAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-allowaction.html +type WebACL_AllowAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_AllowAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.AllowAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go b/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go new file mode 100644 index 0000000000..b919e0dc1d --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_AllQueryArguments AWS CloudFormation Resource (AWS::WAFv2::WebACL.AllQueryArguments) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-allqueryarguments.html +type WebACL_AllQueryArguments struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_AllQueryArguments) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.AllQueryArguments" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go new file mode 100644 index 0000000000..489346b8a4 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_AndStatementOne AWS CloudFormation Resource (AWS::WAFv2::WebACL.AndStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementone.html +type WebACL_AndStatementOne struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementone.html#cfn-wafv2-webacl-andstatementone-statements + Statements *WebACL_StatementTwos `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_AndStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.AndStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go new file mode 100644 index 0000000000..cd0a018818 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_AndStatementTwo AWS CloudFormation Resource (AWS::WAFv2::WebACL.AndStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementtwo.html +type WebACL_AndStatementTwo struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatementtwo.html#cfn-wafv2-webacl-andstatementtwo-statements + Statements *WebACL_StatementThrees `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_AndStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.AndStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go b/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go new file mode 100644 index 0000000000..3469658225 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_BlockAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.BlockAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.html +type WebACL_BlockAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_BlockAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.BlockAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_body.go b/cloudformation/wafv2/aws-wafv2-webacl_body.go new file mode 100644 index 0000000000..73959779f0 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_body.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_Body AWS CloudFormation Resource (AWS::WAFv2::WebACL.Body) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-body.html +type WebACL_Body struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_Body) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.Body" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go new file mode 100644 index 0000000000..6c8e5c77d5 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_ByteMatchStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.ByteMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html +type WebACL_ByteMatchStatement struct { + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-fieldtomatch + FieldToMatch *WebACL_FieldToMatch `json:"FieldToMatch,omitempty"` + + // PositionalConstraint AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-positionalconstraint + PositionalConstraint string `json:"PositionalConstraint,omitempty"` + + // SearchString AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstring + SearchString string `json:"SearchString,omitempty"` + + // SearchStringBase64 AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstringbase64 + SearchStringBase64 string `json:"SearchStringBase64,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-texttransformations + TextTransformations *WebACL_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_ByteMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.ByteMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_countaction.go b/cloudformation/wafv2/aws-wafv2-webacl_countaction.go new file mode 100644 index 0000000000..bdce98ac22 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_countaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_CountAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.CountAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countaction.html +type WebACL_CountAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_CountAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.CountAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go b/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go new file mode 100644 index 0000000000..eed8188814 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_CountryCodes AWS CloudFormation Resource (AWS::WAFv2::WebACL.CountryCodes) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countrycodes.html +type WebACL_CountryCodes struct { + + // CountryCodes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countrycodes.html#cfn-wafv2-webacl-countrycodes-countrycodes + CountryCodes []string `json:"CountryCodes,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_CountryCodes) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.CountryCodes" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go b/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go new file mode 100644 index 0000000000..9f17784cbc --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_DefaultAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.DefaultAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html +type WebACL_DefaultAction struct { + + // Allow AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-allow + Allow *WebACL_AllowAction `json:"Allow,omitempty"` + + // Block AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-block + Block *WebACL_BlockAction `json:"Block,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_DefaultAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.DefaultAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go b/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go new file mode 100644 index 0000000000..000e6f7e3d --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_ExcludedRule AWS CloudFormation Resource (AWS::WAFv2::WebACL.ExcludedRule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html +type WebACL_ExcludedRule struct { + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html#cfn-wafv2-webacl-excludedrule-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_ExcludedRule) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.ExcludedRule" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go b/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go new file mode 100644 index 0000000000..3a39b88f10 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_ExcludedRules AWS CloudFormation Resource (AWS::WAFv2::WebACL.ExcludedRules) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrules.html +type WebACL_ExcludedRules struct { + + // ExcludedRules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrules.html#cfn-wafv2-webacl-excludedrules-excludedrules + ExcludedRules []WebACL_ExcludedRule `json:"ExcludedRules,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_ExcludedRules) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.ExcludedRules" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go b/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go new file mode 100644 index 0000000000..a4a47b5a01 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go @@ -0,0 +1,59 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_FieldToMatch AWS CloudFormation Resource (AWS::WAFv2::WebACL.FieldToMatch) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html +type WebACL_FieldToMatch struct { + + // AllQueryArguments AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-allqueryarguments + AllQueryArguments *WebACL_AllQueryArguments `json:"AllQueryArguments,omitempty"` + + // Body AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-body + Body *WebACL_Body `json:"Body,omitempty"` + + // Method AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-method + Method *WebACL_Method `json:"Method,omitempty"` + + // QueryString AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-querystring + QueryString *WebACL_QueryString `json:"QueryString,omitempty"` + + // SingleHeader AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singleheader + SingleHeader *WebACL_SingleHeader `json:"SingleHeader,omitempty"` + + // SingleQueryArgument AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singlequeryargument + SingleQueryArgument *WebACL_SingleQueryArgument `json:"SingleQueryArgument,omitempty"` + + // UriPath AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-uripath + UriPath *WebACL_UriPath `json:"UriPath,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_FieldToMatch) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.FieldToMatch" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go new file mode 100644 index 0000000000..97a7006c19 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_GeoMatchStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.GeoMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html +type WebACL_GeoMatchStatement struct { + + // CountryCodes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-countrycodes + CountryCodes *WebACL_CountryCodes `json:"CountryCodes,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_GeoMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.GeoMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go new file mode 100644 index 0000000000..727b7726b1 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_IPSetReferenceStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.IPSetReferenceStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html +type WebACL_IPSetReferenceStatement struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html#cfn-wafv2-webacl-ipsetreferencestatement-arn + ARN string `json:"ARN,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_IPSetReferenceStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.IPSetReferenceStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go new file mode 100644 index 0000000000..6e1dc73e27 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_ManagedRuleGroupStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.ManagedRuleGroupStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html +type WebACL_ManagedRuleGroupStatement struct { + + // ExcludedRules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-excludedrules + ExcludedRules *WebACL_ExcludedRules `json:"ExcludedRules,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-name + Name string `json:"Name,omitempty"` + + // VendorName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-vendorname + VendorName string `json:"VendorName,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_ManagedRuleGroupStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.ManagedRuleGroupStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_method.go b/cloudformation/wafv2/aws-wafv2-webacl_method.go new file mode 100644 index 0000000000..6ca123284c --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_method.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_Method AWS CloudFormation Resource (AWS::WAFv2::WebACL.Method) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-method.html +type WebACL_Method struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_Method) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.Method" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go b/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go new file mode 100644 index 0000000000..3cb723d170 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_NoneAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.NoneAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-noneaction.html +type WebACL_NoneAction struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_NoneAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.NoneAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go new file mode 100644 index 0000000000..5e8050f583 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_NotStatementOne AWS CloudFormation Resource (AWS::WAFv2::WebACL.NotStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementone.html +type WebACL_NotStatementOne struct { + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementone.html#cfn-wafv2-webacl-notstatementone-statement + Statement *WebACL_StatementTwo `json:"Statement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_NotStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.NotStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go new file mode 100644 index 0000000000..484fc78b1e --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_NotStatementTwo AWS CloudFormation Resource (AWS::WAFv2::WebACL.NotStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementtwo.html +type WebACL_NotStatementTwo struct { + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatementtwo.html#cfn-wafv2-webacl-notstatementtwo-statement + Statement *WebACL_StatementThree `json:"Statement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_NotStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.NotStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go new file mode 100644 index 0000000000..f53e2dfc51 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_OrStatementOne AWS CloudFormation Resource (AWS::WAFv2::WebACL.OrStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementone.html +type WebACL_OrStatementOne struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementone.html#cfn-wafv2-webacl-orstatementone-statements + Statements *WebACL_StatementTwos `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_OrStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.OrStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go new file mode 100644 index 0000000000..1a64bcab67 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_OrStatementTwo AWS CloudFormation Resource (AWS::WAFv2::WebACL.OrStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementtwo.html +type WebACL_OrStatementTwo struct { + + // Statements AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatementtwo.html#cfn-wafv2-webacl-orstatementtwo-statements + Statements *WebACL_StatementThrees `json:"Statements,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_OrStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.OrStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go b/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go new file mode 100644 index 0000000000..6560b682a7 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_OverrideAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.OverrideAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html +type WebACL_OverrideAction struct { + + // Count AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-count + Count *WebACL_CountAction `json:"Count,omitempty"` + + // None AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-none + None *WebACL_NoneAction `json:"None,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_OverrideAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.OverrideAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_querystring.go b/cloudformation/wafv2/aws-wafv2-webacl_querystring.go new file mode 100644 index 0000000000..8233c0828f --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_querystring.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_QueryString AWS CloudFormation Resource (AWS::WAFv2::WebACL.QueryString) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-querystring.html +type WebACL_QueryString struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_QueryString) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.QueryString" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go new file mode 100644 index 0000000000..5cdf883bc1 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_RateBasedStatementOne AWS CloudFormation Resource (AWS::WAFv2::WebACL.RateBasedStatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html +type WebACL_RateBasedStatementOne struct { + + // AggregateKeyType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-aggregatekeytype + AggregateKeyType string `json:"AggregateKeyType,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-limit + Limit int `json:"Limit,omitempty"` + + // ScopeDownStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-scopedownstatement + ScopeDownStatement *WebACL_StatementTwo `json:"ScopeDownStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_RateBasedStatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.RateBasedStatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go new file mode 100644 index 0000000000..7c72f05dc2 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_RateBasedStatementTwo AWS CloudFormation Resource (AWS::WAFv2::WebACL.RateBasedStatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html +type WebACL_RateBasedStatementTwo struct { + + // AggregateKeyType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-aggregatekeytype + AggregateKeyType string `json:"AggregateKeyType,omitempty"` + + // Limit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-limit + Limit int `json:"Limit,omitempty"` + + // ScopeDownStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-scopedownstatement + ScopeDownStatement *WebACL_StatementThree `json:"ScopeDownStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_RateBasedStatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.RateBasedStatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go new file mode 100644 index 0000000000..c75745a56e --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_RegexPatternSetReferenceStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html +type WebACL_RegexPatternSetReferenceStatement struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-arn + ARN string `json:"ARN,omitempty"` + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-fieldtomatch + FieldToMatch *WebACL_FieldToMatch `json:"FieldToMatch,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-texttransformations + TextTransformations *WebACL_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_RegexPatternSetReferenceStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_rule.go b/cloudformation/wafv2/aws-wafv2-webacl_rule.go new file mode 100644 index 0000000000..6432a75bbf --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_rule.go @@ -0,0 +1,54 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_Rule AWS CloudFormation Resource (AWS::WAFv2::WebACL.Rule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html +type WebACL_Rule struct { + + // Action AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-action + Action *WebACL_RuleAction `json:"Action,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-name + Name string `json:"Name,omitempty"` + + // OverrideAction AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-overrideaction + OverrideAction *WebACL_OverrideAction `json:"OverrideAction,omitempty"` + + // Priority AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-priority + Priority int `json:"Priority,omitempty"` + + // Statement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-statement + Statement *WebACL_StatementOne `json:"Statement,omitempty"` + + // VisibilityConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-visibilityconfig + VisibilityConfig *WebACL_VisibilityConfig `json:"VisibilityConfig,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_Rule) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.Rule" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go b/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go new file mode 100644 index 0000000000..7391c5ee90 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_RuleAction AWS CloudFormation Resource (AWS::WAFv2::WebACL.RuleAction) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html +type WebACL_RuleAction struct { + + // Allow AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-allow + Allow *WebACL_AllowAction `json:"Allow,omitempty"` + + // Block AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-block + Block *WebACL_BlockAction `json:"Block,omitempty"` + + // Count AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-count + Count *WebACL_CountAction `json:"Count,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_RuleAction) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.RuleAction" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go b/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go new file mode 100644 index 0000000000..2c53422eb7 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_RuleGroupReferenceStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.RuleGroupReferenceStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html +type WebACL_RuleGroupReferenceStatement struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-arn + ARN string `json:"ARN,omitempty"` + + // ExcludedRules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-excludedrules + ExcludedRules *WebACL_ExcludedRules `json:"ExcludedRules,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_RuleGroupReferenceStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.RuleGroupReferenceStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_rules.go b/cloudformation/wafv2/aws-wafv2-webacl_rules.go new file mode 100644 index 0000000000..b9a35bdf39 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_rules.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_Rules AWS CloudFormation Resource (AWS::WAFv2::WebACL.Rules) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rules.html +type WebACL_Rules struct { + + // Rules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rules.html#cfn-wafv2-webacl-rules-rules + Rules []WebACL_Rule `json:"Rules,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_Rules) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.Rules" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go b/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go new file mode 100644 index 0000000000..d3b7766740 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_SingleHeader AWS CloudFormation Resource (AWS::WAFv2::WebACL.SingleHeader) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singleheader.html +type WebACL_SingleHeader struct { + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singleheader.html#cfn-wafv2-webacl-singleheader-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_SingleHeader) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.SingleHeader" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go b/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go new file mode 100644 index 0000000000..eadc53c92a --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_SingleQueryArgument AWS CloudFormation Resource (AWS::WAFv2::WebACL.SingleQueryArgument) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singlequeryargument.html +type WebACL_SingleQueryArgument struct { + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singlequeryargument.html#cfn-wafv2-webacl-singlequeryargument-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_SingleQueryArgument) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.SingleQueryArgument" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go new file mode 100644 index 0000000000..cdf20253df --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go @@ -0,0 +1,44 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_SizeConstraintStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.SizeConstraintStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html +type WebACL_SizeConstraintStatement struct { + + // ComparisonOperator AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-comparisonoperator + ComparisonOperator string `json:"ComparisonOperator,omitempty"` + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-fieldtomatch + FieldToMatch *WebACL_FieldToMatch `json:"FieldToMatch,omitempty"` + + // Size AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-size + Size int `json:"Size,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-texttransformations + TextTransformations *WebACL_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_SizeConstraintStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.SizeConstraintStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go new file mode 100644 index 0000000000..9a457d9a49 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_SqliMatchStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.SqliMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html +type WebACL_SqliMatchStatement struct { + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-fieldtomatch + FieldToMatch *WebACL_FieldToMatch `json:"FieldToMatch,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-texttransformations + TextTransformations *WebACL_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_SqliMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.SqliMatchStatement" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementone.go b/cloudformation/wafv2/aws-wafv2-webacl_statementone.go new file mode 100644 index 0000000000..5c9dbc617f --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementone.go @@ -0,0 +1,89 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_StatementOne AWS CloudFormation Resource (AWS::WAFv2::WebACL.StatementOne) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html +type WebACL_StatementOne struct { + + // AndStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-andstatement + AndStatement *WebACL_AndStatementOne `json:"AndStatement,omitempty"` + + // ByteMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-bytematchstatement + ByteMatchStatement *WebACL_ByteMatchStatement `json:"ByteMatchStatement,omitempty"` + + // GeoMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-geomatchstatement + GeoMatchStatement *WebACL_GeoMatchStatement `json:"GeoMatchStatement,omitempty"` + + // IPSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-ipsetreferencestatement + IPSetReferenceStatement *WebACL_IPSetReferenceStatement `json:"IPSetReferenceStatement,omitempty"` + + // ManagedRuleGroupStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-managedrulegroupstatement + ManagedRuleGroupStatement *WebACL_ManagedRuleGroupStatement `json:"ManagedRuleGroupStatement,omitempty"` + + // NotStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-notstatement + NotStatement *WebACL_NotStatementOne `json:"NotStatement,omitempty"` + + // OrStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-orstatement + OrStatement *WebACL_OrStatementOne `json:"OrStatement,omitempty"` + + // RateBasedStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-ratebasedstatement + RateBasedStatement *WebACL_RateBasedStatementOne `json:"RateBasedStatement,omitempty"` + + // RegexPatternSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-regexpatternsetreferencestatement + RegexPatternSetReferenceStatement *WebACL_RegexPatternSetReferenceStatement `json:"RegexPatternSetReferenceStatement,omitempty"` + + // RuleGroupReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-rulegroupreferencestatement + RuleGroupReferenceStatement *WebACL_RuleGroupReferenceStatement `json:"RuleGroupReferenceStatement,omitempty"` + + // SizeConstraintStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-sizeconstraintstatement + SizeConstraintStatement *WebACL_SizeConstraintStatement `json:"SizeConstraintStatement,omitempty"` + + // SqliMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-sqlimatchstatement + SqliMatchStatement *WebACL_SqliMatchStatement `json:"SqliMatchStatement,omitempty"` + + // XssMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementone.html#cfn-wafv2-webacl-statementone-xssmatchstatement + XssMatchStatement *WebACL_XssMatchStatement `json:"XssMatchStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_StatementOne) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.StatementOne" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go b/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go new file mode 100644 index 0000000000..dff0abc42f --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go @@ -0,0 +1,69 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_StatementThree AWS CloudFormation Resource (AWS::WAFv2::WebACL.StatementThree) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html +type WebACL_StatementThree struct { + + // ByteMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-bytematchstatement + ByteMatchStatement *WebACL_ByteMatchStatement `json:"ByteMatchStatement,omitempty"` + + // GeoMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-geomatchstatement + GeoMatchStatement *WebACL_GeoMatchStatement `json:"GeoMatchStatement,omitempty"` + + // IPSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-ipsetreferencestatement + IPSetReferenceStatement *WebACL_IPSetReferenceStatement `json:"IPSetReferenceStatement,omitempty"` + + // ManagedRuleGroupStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-managedrulegroupstatement + ManagedRuleGroupStatement *WebACL_ManagedRuleGroupStatement `json:"ManagedRuleGroupStatement,omitempty"` + + // RegexPatternSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-regexpatternsetreferencestatement + RegexPatternSetReferenceStatement *WebACL_RegexPatternSetReferenceStatement `json:"RegexPatternSetReferenceStatement,omitempty"` + + // RuleGroupReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-rulegroupreferencestatement + RuleGroupReferenceStatement *WebACL_RuleGroupReferenceStatement `json:"RuleGroupReferenceStatement,omitempty"` + + // SizeConstraintStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-sizeconstraintstatement + SizeConstraintStatement *WebACL_SizeConstraintStatement `json:"SizeConstraintStatement,omitempty"` + + // SqliMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-sqlimatchstatement + SqliMatchStatement *WebACL_SqliMatchStatement `json:"SqliMatchStatement,omitempty"` + + // XssMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthree.html#cfn-wafv2-webacl-statementthree-xssmatchstatement + XssMatchStatement *WebACL_XssMatchStatement `json:"XssMatchStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_StatementThree) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.StatementThree" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go b/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go new file mode 100644 index 0000000000..8b1590b24b --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_StatementThrees AWS CloudFormation Resource (AWS::WAFv2::WebACL.StatementThrees) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthrees.html +type WebACL_StatementThrees struct { + + // StatementThrees AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementthrees.html#cfn-wafv2-webacl-statementthrees-statementthrees + StatementThrees []WebACL_StatementThree `json:"StatementThrees,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_StatementThrees) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.StatementThrees" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go new file mode 100644 index 0000000000..83fd2aa33d --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go @@ -0,0 +1,89 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_StatementTwo AWS CloudFormation Resource (AWS::WAFv2::WebACL.StatementTwo) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html +type WebACL_StatementTwo struct { + + // AndStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-andstatement + AndStatement *WebACL_AndStatementTwo `json:"AndStatement,omitempty"` + + // ByteMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-bytematchstatement + ByteMatchStatement *WebACL_ByteMatchStatement `json:"ByteMatchStatement,omitempty"` + + // GeoMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-geomatchstatement + GeoMatchStatement *WebACL_GeoMatchStatement `json:"GeoMatchStatement,omitempty"` + + // IPSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-ipsetreferencestatement + IPSetReferenceStatement *WebACL_IPSetReferenceStatement `json:"IPSetReferenceStatement,omitempty"` + + // ManagedRuleGroupStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-managedrulegroupstatement + ManagedRuleGroupStatement *WebACL_ManagedRuleGroupStatement `json:"ManagedRuleGroupStatement,omitempty"` + + // NotStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-notstatement + NotStatement *WebACL_NotStatementTwo `json:"NotStatement,omitempty"` + + // OrStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-orstatement + OrStatement *WebACL_OrStatementTwo `json:"OrStatement,omitempty"` + + // RateBasedStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-ratebasedstatement + RateBasedStatement *WebACL_RateBasedStatementTwo `json:"RateBasedStatement,omitempty"` + + // RegexPatternSetReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-regexpatternsetreferencestatement + RegexPatternSetReferenceStatement *WebACL_RegexPatternSetReferenceStatement `json:"RegexPatternSetReferenceStatement,omitempty"` + + // RuleGroupReferenceStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-rulegroupreferencestatement + RuleGroupReferenceStatement *WebACL_RuleGroupReferenceStatement `json:"RuleGroupReferenceStatement,omitempty"` + + // SizeConstraintStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-sizeconstraintstatement + SizeConstraintStatement *WebACL_SizeConstraintStatement `json:"SizeConstraintStatement,omitempty"` + + // SqliMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-sqlimatchstatement + SqliMatchStatement *WebACL_SqliMatchStatement `json:"SqliMatchStatement,omitempty"` + + // XssMatchStatement AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwo.html#cfn-wafv2-webacl-statementtwo-xssmatchstatement + XssMatchStatement *WebACL_XssMatchStatement `json:"XssMatchStatement,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_StatementTwo) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.StatementTwo" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go b/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go new file mode 100644 index 0000000000..570a32b004 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_StatementTwos AWS CloudFormation Resource (AWS::WAFv2::WebACL.StatementTwos) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwos.html +type WebACL_StatementTwos struct { + + // StatementTwos AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statementtwos.html#cfn-wafv2-webacl-statementtwos-statementtwos + StatementTwos []WebACL_StatementTwo `json:"StatementTwos,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_StatementTwos) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.StatementTwos" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_taglist.go b/cloudformation/wafv2/aws-wafv2-webacl_taglist.go new file mode 100644 index 0000000000..4b44e55a5c --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_taglist.go @@ -0,0 +1,30 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" +) + +// WebACL_TagList AWS CloudFormation Resource (AWS::WAFv2::WebACL.TagList) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-taglist.html +type WebACL_TagList struct { + + // TagList AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-taglist.html#cfn-wafv2-webacl-taglist-taglist + TagList []tags.Tag `json:"TagList,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_TagList) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.TagList" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go b/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go new file mode 100644 index 0000000000..92bb0ceb3f --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_TextTransformation AWS CloudFormation Resource (AWS::WAFv2::WebACL.TextTransformation) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html +type WebACL_TextTransformation struct { + + // Priority AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-priority + Priority int `json:"Priority,omitempty"` + + // Type AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_TextTransformation) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.TextTransformation" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go b/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go new file mode 100644 index 0000000000..050a06a881 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_TextTransformations AWS CloudFormation Resource (AWS::WAFv2::WebACL.TextTransformations) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformations.html +type WebACL_TextTransformations struct { + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformations.html#cfn-wafv2-webacl-texttransformations-texttransformations + TextTransformations []WebACL_TextTransformation `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_TextTransformations) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.TextTransformations" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_uripath.go b/cloudformation/wafv2/aws-wafv2-webacl_uripath.go new file mode 100644 index 0000000000..98c172109b --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_uripath.go @@ -0,0 +1,24 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_UriPath AWS CloudFormation Resource (AWS::WAFv2::WebACL.UriPath) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-uripath.html +type WebACL_UriPath struct { + + // 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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_UriPath) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.UriPath" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go b/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go new file mode 100644 index 0000000000..1704a0d978 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go @@ -0,0 +1,39 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_VisibilityConfig AWS CloudFormation Resource (AWS::WAFv2::WebACL.VisibilityConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html +type WebACL_VisibilityConfig struct { + + // CloudWatchMetricsEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-cloudwatchmetricsenabled + CloudWatchMetricsEnabled bool `json:"CloudWatchMetricsEnabled,omitempty"` + + // MetricName AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-metricname + MetricName string `json:"MetricName,omitempty"` + + // SampledRequestsEnabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-sampledrequestsenabled + SampledRequestsEnabled bool `json:"SampledRequestsEnabled,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_VisibilityConfig) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.VisibilityConfig" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_webacl.go b/cloudformation/wafv2/aws-wafv2-webacl_webacl.go new file mode 100644 index 0000000000..0eeefbfdbf --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_webacl.go @@ -0,0 +1,64 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_WebACL AWS CloudFormation Resource (AWS::WAFv2::WebACL.WebACL) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html +type WebACL_WebACL struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-arn + ARN string `json:"ARN,omitempty"` + + // Capacity AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-capacity + Capacity int `json:"Capacity,omitempty"` + + // DefaultAction AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-defaultaction + DefaultAction *WebACL_DefaultAction `json:"DefaultAction,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-id + Id string `json:"Id,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-name + Name string `json:"Name,omitempty"` + + // Rules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-rules + Rules *WebACL_Rules `json:"Rules,omitempty"` + + // VisibilityConfig AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacl.html#cfn-wafv2-webacl-webacl-visibilityconfig + VisibilityConfig *WebACL_VisibilityConfig `json:"VisibilityConfig,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_WebACL) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.WebACL" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_webacls.go b/cloudformation/wafv2/aws-wafv2-webacl_webacls.go new file mode 100644 index 0000000000..8345a62d7a --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_webacls.go @@ -0,0 +1,29 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_WebACLs AWS CloudFormation Resource (AWS::WAFv2::WebACL.WebACLs) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacls.html +type WebACL_WebACLs struct { + + // WebACLs AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webacls.html#cfn-wafv2-webacl-webacls-webacls + WebACLs []WebACL_WebACLSummary `json:"WebACLs,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_WebACLs) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.WebACLs" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_webaclsummary.go b/cloudformation/wafv2/aws-wafv2-webacl_webaclsummary.go new file mode 100644 index 0000000000..c316a6355d --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_webaclsummary.go @@ -0,0 +1,49 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_WebACLSummary AWS CloudFormation Resource (AWS::WAFv2::WebACL.WebACLSummary) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webaclsummary.html +type WebACL_WebACLSummary struct { + + // ARN AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webaclsummary.html#cfn-wafv2-webacl-webaclsummary-arn + ARN string `json:"ARN,omitempty"` + + // Description AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webaclsummary.html#cfn-wafv2-webacl-webaclsummary-description + Description string `json:"Description,omitempty"` + + // Id AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webaclsummary.html#cfn-wafv2-webacl-webaclsummary-id + Id string `json:"Id,omitempty"` + + // LockToken AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webaclsummary.html#cfn-wafv2-webacl-webaclsummary-locktoken + LockToken string `json:"LockToken,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-webaclsummary.html#cfn-wafv2-webacl-webaclsummary-name + Name string `json:"Name,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_WebACLSummary) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.WebACLSummary" +} diff --git a/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go new file mode 100644 index 0000000000..c68beab345 --- /dev/null +++ b/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go @@ -0,0 +1,34 @@ +package wafv2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// WebACL_XssMatchStatement AWS CloudFormation Resource (AWS::WAFv2::WebACL.XssMatchStatement) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html +type WebACL_XssMatchStatement struct { + + // FieldToMatch AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-fieldtomatch + FieldToMatch *WebACL_FieldToMatch `json:"FieldToMatch,omitempty"` + + // TextTransformations AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-texttransformations + TextTransformations *WebACL_TextTransformations `json:"TextTransformations,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:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *WebACL_XssMatchStatement) AWSCloudFormationType() string { + return "AWS::WAFv2::WebACL.XssMatchStatement" +} diff --git a/cloudformation/workspaces/aws-workspaces-workspace.go b/cloudformation/workspaces/aws-workspaces-workspace.go index e9f99fa25c..e6d85156c8 100644 --- a/cloudformation/workspaces/aws-workspaces-workspace.go +++ b/cloudformation/workspaces/aws-workspaces-workspace.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/tags" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // Workspace AWS CloudFormation Resource (AWS::WorkSpaces::Workspace) @@ -53,14 +53,14 @@ type Workspace struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-workspaceproperties WorkspaceProperties *Workspace_WorkspaceProperties `json:"WorkspaceProperties,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type @@ -68,42 +68,6 @@ func (r *Workspace) AWSCloudFormationType() string { return "AWS::WorkSpaces::Workspace" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workspace) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workspace) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workspace) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workspace) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workspace) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workspace) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} - // 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 Workspace) MarshalJSON() ([]byte, error) { @@ -117,9 +81,9 @@ func (r Workspace) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, }) } @@ -148,13 +112,13 @@ func (r *Workspace) UnmarshalJSON(b []byte) error { *r = Workspace(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go b/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go index 9603039e91..2af9b4bc33 100644 --- a/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go +++ b/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go @@ -1,7 +1,7 @@ package workspaces import ( - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Workspace_WorkspaceProperties AWS CloudFormation Resource (AWS::WorkSpaces::Workspace.WorkspaceProperties) @@ -33,53 +33,17 @@ type Workspace_WorkspaceProperties struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html#cfn-workspaces-workspace-workspaceproperties-uservolumesizegib UserVolumeSizeGib int `json:"UserVolumeSizeGib,omitempty"` - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *Workspace_WorkspaceProperties) AWSCloudFormationType() string { return "AWS::WorkSpaces::Workspace.WorkspaceProperties" } - -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workspace_WorkspaceProperties) DependsOn() []string { - return r._dependsOn -} - -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *Workspace_WorkspaceProperties) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} - -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workspace_WorkspaceProperties) Metadata() map[string]interface{} { - return r._metadata -} - -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *Workspace_WorkspaceProperties) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} - -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workspace_WorkspaceProperties) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} - -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *Workspace_WorkspaceProperties) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} diff --git a/example/go-to-yaml/main.go b/example/go-to-yaml/main.go index f275b839c4..c30ade5251 100644 --- a/example/go-to-yaml/main.go +++ b/example/go-to-yaml/main.go @@ -5,8 +5,8 @@ import ( "strconv" "time" - "github.com/awslabs/goformation/v3/cloudformation" - "github.com/awslabs/goformation/v3/cloudformation/sns" + "github.com/awslabs/goformation/v4/cloudformation" + "github.com/awslabs/goformation/v4/cloudformation/sns" ) func main() { diff --git a/example/yaml-to-go/main.go b/example/yaml-to-go/main.go index 4cf94c26c7..43bc6413a3 100644 --- a/example/yaml-to-go/main.go +++ b/example/yaml-to-go/main.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/awslabs/goformation/v3" + "github.com/awslabs/goformation/v4" ) func main() { diff --git a/generate/property_test.go b/generate/property_test.go index d84260a837..d512b61df3 100644 --- a/generate/property_test.go +++ b/generate/property_test.go @@ -3,7 +3,7 @@ package main_test import ( "encoding/json" - "github.com/awslabs/goformation/v3/cloudformation/serverless" + "github.com/awslabs/goformation/v4/cloudformation/serverless" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) diff --git a/generate/resource_test.go b/generate/resource_test.go index 7223f79e6c..b053e56003 100644 --- a/generate/resource_test.go +++ b/generate/resource_test.go @@ -3,9 +3,9 @@ package main_test import ( "encoding/json" - "github.com/awslabs/goformation/v3/cloudformation/ec2" - "github.com/awslabs/goformation/v3/cloudformation/s3" - "github.com/awslabs/goformation/v3/cloudformation/serverless" + "github.com/awslabs/goformation/v4/cloudformation/ec2" + "github.com/awslabs/goformation/v4/cloudformation/s3" + "github.com/awslabs/goformation/v4/cloudformation/serverless" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) @@ -72,7 +72,7 @@ var _ = Describe("Resource", func() { resource := &ec2.Instance{ ImageId: "ami-0123456789", } - resource.SetDependsOn([]string{"MyDependency"}) + resource.AWSCloudFormationDependsOn = []string{"MyDependency"} expected := []byte(`{"Type":"AWS::EC2::Instance","Properties":{"ImageId":"ami-0123456789"},"DependsOn":["MyDependency"]}`) @@ -89,7 +89,7 @@ var _ = Describe("Resource", func() { resource := &s3.Bucket{ BucketName: "MyBucket", } - resource.SetMetadata(map[string]interface{}{"Object1": "Location1", "Object2": "Location2"}) + resource.AWSCloudFormationMetadata = map[string]interface{}{"Object1": "Location1", "Object2": "Location2"} expected := []byte(`{"Type":"AWS::S3::Bucket","Properties":{"BucketName":"MyBucket"},"Metadata":{"Object1":"Location1","Object2":"Location2"}}`) @@ -111,7 +111,7 @@ var _ = Describe("Resource", func() { expected := &ec2.Instance{ ImageId: "ami-0123456789", } - expected.SetDependsOn([]string{"MyDependency"}) + expected.AWSCloudFormationDependsOn = []string{"MyDependency"} result := &ec2.Instance{} err := json.Unmarshal(property, result) @@ -128,7 +128,7 @@ var _ = Describe("Resource", func() { expected := &s3.Bucket{ BucketName: "MyBucket", } - expected.SetMetadata(map[string]interface{}{"Object1": "Location1", "Object2": "Location2"}) + expected.AWSCloudFormationMetadata = map[string]interface{}{"Object1": "Location1", "Object2": "Location2"} result := &s3.Bucket{} err := json.Unmarshal(property, result) diff --git a/generate/templates/all.template b/generate/templates/all.template index 65ddccf56a..ab922cfbf3 100644 --- a/generate/templates/all.template +++ b/generate/templates/all.template @@ -2,7 +2,7 @@ package cloudformation import ( "fmt"{{range $resource := .Resources}} - "github.com/awslabs/goformation/v3/cloudformation/{{$resource.PackageName}}"{{end}} + "github.com/awslabs/goformation/v4/cloudformation/{{$resource.PackageName}}"{{end}} ) // AllResources fetches an iterable map all CloudFormation and SAM resources diff --git a/generate/templates/polymorphic-property.template b/generate/templates/polymorphic-property.template index 22ea7b7cea..ec2fdcfd3c 100644 --- a/generate/templates/polymorphic-property.template +++ b/generate/templates/polymorphic-property.template @@ -4,7 +4,7 @@ import ( "sort" "encoding/json" - "github.com/awslabs/goformation/v3/cloudformation/utils" + "github.com/awslabs/goformation/v4/cloudformation/utils" ) // {{.Name}} is a helper struct that can hold either a {{.TypesJoined}} value diff --git a/generate/templates/resource.template b/generate/templates/resource.template index 7bc8b39df7..60f35b338d 100644 --- a/generate/templates/resource.template +++ b/generate/templates/resource.template @@ -6,13 +6,13 @@ import ( "fmt" "bytes" {{if .HasTags}} - "github.com/awslabs/goformation/v3/cloudformation/tags"{{end}} - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags"{{end}} + "github.com/awslabs/goformation/v4/cloudformation/policies" ) {{else}} import ({{if .HasTags}} - "github.com/awslabs/goformation/v3/cloudformation/tags"{{end}} - "github.com/awslabs/goformation/v3/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags"{{end}} + "github.com/awslabs/goformation/v4/cloudformation/policies" ) {{end}} @@ -27,20 +27,20 @@ type {{.StructName}} struct { // See: {{$property.Documentation}} {{$prop_name}} {{if (or ($property.IsPolymorphic) ($property.IsCustomType) )}}*{{end}}{{$property.GoType $.Name $.Basename $name}} `json:"{{$name}}{{if (not (and ($property.IsNumeric) ($property.Required)))}},omitempty{{end}}"` {{end}} - {{if .HasUpdatePolicy }}// _updatePolicy represents a CloudFormation UpdatePolicy - _updatePolicy *policies.UpdatePolicy{{ end }} + {{if .HasUpdatePolicy }}// AWSCloudFormationUpdatePolicy represents a CloudFormation UpdatePolicy + AWSCloudFormationUpdatePolicy *policies.UpdatePolicy `json:"-"`{{ end }} - {{if .HasCreationPolicy }}// _creationPolicy represents a CloudFormation CreationPolicy - _creationPolicy *policies.CreationPolicy + {{if .HasCreationPolicy }}// AWSCloudFormationCreationPolicy represents a CloudFormation CreationPolicy + AWSCloudFormationCreationPolicy *policies.CreationPolicy `json:"-"` {{ end }} - // _deletionPolicy represents a CloudFormation DeletionPolicy - _deletionPolicy policies.DeletionPolicy + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` - // _dependsOn stores the logical ID of the resources to be created before this resource - _dependsOn []string + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` - // _metadata stores structured data associated with this resource - _metadata map[string]interface{} + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` } @@ -49,50 +49,6 @@ func (r *{{.StructName}}) AWSCloudFormationType() string { return "{{.Name}}" } -// DependsOn returns a slice of logical ID names this resource depends on. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *{{.StructName}}) DependsOn() []string { - return r._dependsOn -} -// SetDependsOn specify that the creation of this resource follows another. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html -func (r *{{.StructName}}) SetDependsOn(dependencies []string) { - r._dependsOn = dependencies -} -// Metadata returns the metadata associated with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *{{.StructName}}) Metadata() map[string]interface{} { - return r._metadata -} -// SetMetadata enables you to associate structured data with this resource. -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-metadata.html -func (r *{{.StructName}}) SetMetadata(metadata map[string]interface{}) { - r._metadata = metadata -} -// DeletionPolicy returns the AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *{{.StructName}}) DeletionPolicy() policies.DeletionPolicy { - return r._deletionPolicy -} -// SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html -func (r *{{.StructName}}) SetDeletionPolicy(policy policies.DeletionPolicy) { - r._deletionPolicy = policy -} -{{if .HasUpdatePolicy}} -// SetUpdatePolicy applies an AWS CloudFormation UpdatePolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html -func (r *{{.StructName}}) SetUpdatePolicy(policy *policies.UpdatePolicy) { - r._updatePolicy = policy -} -{{end}} -{{if .HasCreationPolicy}} -// SetCreationPolicy applies an AWS CloudFormation CreationPolicy to this resource -// see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html -func (r *{{.StructName}}) SetCreationPolicy(policy *policies.CreationPolicy) { - r._creationPolicy = policy -} -{{end}} {{if not .IsCustomProperty}} // MarshalJSON is a custom JSON marshalling hook that embeds this object into // an AWS CloudFormation JSON resource's 'Properties' field and adds a 'Type'. @@ -109,11 +65,11 @@ func (r {{.StructName}}) MarshalJSON() ([]byte, error) { }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), - DependsOn: r._dependsOn, - Metadata: r._metadata, - DeletionPolicy: r._deletionPolicy, - {{if .HasUpdatePolicy}}UpdatePolicy: r._updatePolicy,{{end}} - {{if .HasCreationPolicy}}CreationPolicy: r._creationPolicy,{{end}} + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + {{if .HasUpdatePolicy}}UpdatePolicy: r.AWSCloudFormationUpdatePolicy,{{end}} + {{if .HasCreationPolicy}}CreationPolicy: r.AWSCloudFormationCreationPolicy,{{end}} }) } @@ -142,13 +98,13 @@ func (r *{{.StructName}}) UnmarshalJSON(b []byte) error { *r = {{.StructName}}(*res.Properties) } if res.DependsOn != nil { - r._dependsOn = res.DependsOn + r.AWSCloudFormationDependsOn = res.DependsOn } if res.Metadata != nil { - r._metadata = res.Metadata + r.AWSCloudFormationMetadata = res.Metadata } if res.DeletionPolicy != "" { - r._deletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } return nil } diff --git a/go.mod b/go.mod index a3212eb983..0dfeaa07d7 100644 --- a/go.mod +++ b/go.mod @@ -1,21 +1,13 @@ -module github.com/awslabs/goformation/v3 +module github.com/awslabs/goformation/v4 require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/golang/protobuf v1.3.2 // indirect + github.com/awslabs/goformation/v3 v3.1.0 github.com/imdario/mergo v0.3.6 - github.com/kr/pretty v0.1.0 // indirect github.com/onsi/ginkgo v1.5.0 github.com/onsi/gomega v1.2.0 github.com/sanathkr/go-yaml v0.0.0-20170819195128-ed9d249f429b github.com/sanathkr/yaml v0.0.0-20170819201035-0056894fa522 - github.com/stretchr/testify v1.4.0 // indirect - github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect - github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v0.0.0-20181112162635-ac52e6811b56 - golang.org/x/net v0.0.0-20191021144547-ec77196f6094 // indirect - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect - gopkg.in/yaml.v2 v2.2.4 // indirect ) go 1.13 diff --git a/go.sum b/go.sum index 6621b669e1..e1f37ba6a4 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,6 @@ +github.com/awslabs/goformation v1.4.1 h1:jws9kTrcI53Hq2COJAy50uAhgxB5N/Enb9Gmclr/MP4= +github.com/awslabs/goformation/v3 v3.1.0 h1:1WhWJrMtuwphJ+x1+0wM7v4QPDzcArvX+i4/sK1Z4e4= +github.com/awslabs/goformation/v3 v3.1.0/go.mod h1:hQ5RXo3GNm2laHWKizDzU5DsDy+yNcenSca2UxN0850= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/goformation.go b/goformation.go index 34f5ef6afa..a41133e180 100644 --- a/goformation.go +++ b/goformation.go @@ -5,8 +5,8 @@ import ( "io/ioutil" "strings" - "github.com/awslabs/goformation/v3/cloudformation" - "github.com/awslabs/goformation/v3/intrinsics" + "github.com/awslabs/goformation/v4/cloudformation" + "github.com/awslabs/goformation/v4/intrinsics" ) //go:generate generate/generate.sh diff --git a/goformation_test.go b/goformation_test.go index 72bb4edb1f..6c4fb12416 100644 --- a/goformation_test.go +++ b/goformation_test.go @@ -5,15 +5,15 @@ import ( "github.com/sanathkr/yaml" - "github.com/awslabs/goformation/v3" - "github.com/awslabs/goformation/v3/cloudformation" - "github.com/awslabs/goformation/v3/cloudformation/lambda" - "github.com/awslabs/goformation/v3/cloudformation/policies" - "github.com/awslabs/goformation/v3/cloudformation/route53" - "github.com/awslabs/goformation/v3/cloudformation/s3" - "github.com/awslabs/goformation/v3/cloudformation/serverless" - "github.com/awslabs/goformation/v3/cloudformation/sns" - "github.com/awslabs/goformation/v3/intrinsics" + "github.com/awslabs/goformation/v4" + "github.com/awslabs/goformation/v4/cloudformation" + "github.com/awslabs/goformation/v4/cloudformation/lambda" + "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/route53" + "github.com/awslabs/goformation/v4/cloudformation/s3" + "github.com/awslabs/goformation/v4/cloudformation/serverless" + "github.com/awslabs/goformation/v4/cloudformation/sns" + "github.com/awslabs/goformation/v4/intrinsics" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -466,7 +466,7 @@ var _ = Describe("Goformation", func() { }) It("should have the correct DeletionPolicy", func() { - Expect(table.DeletionPolicy()).To(Equal(policies.DeletionPolicy("Retain"))) + Expect(table.AWSCloudFormationDeletionPolicy).To(Equal(policies.DeletionPolicy("Retain"))) }) }) diff --git a/intrinsics/intrinsics_test.go b/intrinsics/intrinsics_test.go index c6e20692ea..1f0354bc56 100644 --- a/intrinsics/intrinsics_test.go +++ b/intrinsics/intrinsics_test.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "encoding/json" - . "github.com/awslabs/goformation/v3/intrinsics" + . "github.com/awslabs/goformation/v4/intrinsics" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/schema/cloudformation.go b/schema/cloudformation.go index 15b63366fc..56b5f8d86d 100644 --- a/schema/cloudformation.go +++ b/schema/cloudformation.go @@ -76,6 +76,9 @@ var CloudformationSchema = `{ }, "type": "array" }, + "StorageType": { + "type": "string" + }, "SubnetIds": { "items": { "type": "string" @@ -506,12 +509,18 @@ var CloudformationSchema = `{ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::App.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" } @@ -621,12 +630,18 @@ var CloudformationSchema = `{ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::Branch.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" }, @@ -875,6 +890,12 @@ var CloudformationSchema = `{ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Value": { "type": "string" } @@ -1087,6 +1108,12 @@ var CloudformationSchema = `{ "properties": { "Description": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -1521,6 +1548,15 @@ var CloudformationSchema = `{ }, "RegionalCertificateArn": { "type": "string" + }, + "SecurityPolicy": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -2141,6 +2177,12 @@ var CloudformationSchema = `{ }, "Policy": { "type": "object" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -2165,6 +2207,12 @@ var CloudformationSchema = `{ "type": "string" }, "type": "array" + }, + "VpcEndpointIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -2408,6 +2456,12 @@ var CloudformationSchema = `{ "Quota": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.QuotaSettings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Throttle": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.ThrottleSettings" }, @@ -3672,6 +3726,131 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::AppMesh::Route.GrpcRetryPolicy": { + "additionalProperties": false, + "properties": { + "GrpcRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "HttpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MaxRetries": { + "type": "number" + }, + "PerRetryTimeout": { + "$ref": "#/definitions/AWS::AppMesh::Route.Duration" + }, + "TcpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "MaxRetries", + "PerRetryTimeout" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRoute": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteAction" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMatch" + }, + "RetryPolicy": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRetryPolicy" + } + }, + "required": [ + "Action", + "Match" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteAction": { + "additionalProperties": false, + "properties": { + "WeightedTargets": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.WeightedTarget" + }, + "type": "array" + } + }, + "required": [ + "WeightedTargets" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMatch": { + "additionalProperties": false, + "properties": { + "Metadata": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadata" + }, + "type": "array" + }, + "MethodName": { + "type": "string" + }, + "ServiceName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadata": { + "additionalProperties": false, + "properties": { + "Invert": { + "type": "boolean" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod": { + "additionalProperties": false, + "properties": { + "Exact": { + "type": "string" + }, + "Prefix": { + "type": "string" + }, + "Range": { + "$ref": "#/definitions/AWS::AppMesh::Route.MatchRange" + }, + "Regex": { + "type": "string" + }, + "Suffix": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppMesh::Route.HeaderMatchMethod": { "additionalProperties": false, "properties": { @@ -3816,6 +3995,12 @@ var CloudformationSchema = `{ "AWS::AppMesh::Route.RouteSpec": { "additionalProperties": false, "properties": { + "GrpcRoute": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRoute" + }, + "Http2Route": { + "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" + }, "HttpRoute": { "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" }, @@ -4620,6 +4805,12 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::ImageBuilder.AccessEndpoint" + }, + "type": "array" + }, "AppstreamAgentVersion": { "type": "string" }, @@ -4675,6 +4866,22 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::AppStream::ImageBuilder.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::ImageBuilder.DomainJoinInfo": { "additionalProperties": false, "properties": { @@ -4737,6 +4944,12 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::Stack.AccessEndpoint" + }, + "type": "array" + }, "ApplicationSettings": { "$ref": "#/definitions/AWS::AppStream::Stack.ApplicationSettings" }, @@ -4755,6 +4968,12 @@ var CloudformationSchema = `{ "DisplayName": { "type": "string" }, + "EmbedHostDomains": { + "items": { + "type": "string" + }, + "type": "array" + }, "FeedbackURL": { "type": "string" }, @@ -4797,6 +5016,22 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::AppStream::Stack.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::Stack.ApplicationSettings": { "additionalProperties": false, "properties": { @@ -5039,6 +5274,78 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::AppSync::ApiCache": { + "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": { + "ApiCachingBehavior": { + "type": "string" + }, + "ApiId": { + "type": "string" + }, + "AtRestEncryptionEnabled": { + "type": "boolean" + }, + "TransitEncryptionEnabled": { + "type": "boolean" + }, + "Ttl": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ApiCachingBehavior", + "ApiId", + "Ttl", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::AppSync::ApiCache" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::AppSync::ApiKey": { "additionalProperties": false, "properties": { @@ -5209,17 +5516,43 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::AppSync::DataSource.DeltaSyncConfig": { + "additionalProperties": false, + "properties": { + "BaseTableTTL": { + "type": "string" + }, + "DeltaSyncTableName": { + "type": "string" + }, + "DeltaSyncTableTTL": { + "type": "string" + } + }, + "required": [ + "BaseTableTTL", + "DeltaSyncTableName", + "DeltaSyncTableTTL" + ], + "type": "object" + }, "AWS::AppSync::DataSource.DynamoDBConfig": { "additionalProperties": false, "properties": { "AwsRegion": { "type": "string" }, + "DeltaSyncConfig": { + "$ref": "#/definitions/AWS::AppSync::DataSource.DeltaSyncConfig" + }, "TableName": { "type": "string" }, "UseCallerCredentials": { "type": "boolean" + }, + "Versioned": { + "type": "boolean" } }, "required": [ @@ -5655,6 +5988,9 @@ var CloudformationSchema = `{ "ApiId": { "type": "string" }, + "CachingConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.CachingConfig" + }, "DataSourceName": { "type": "string" }, @@ -5679,6 +6015,9 @@ var CloudformationSchema = `{ "ResponseMappingTemplateS3Location": { "type": "string" }, + "SyncConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.SyncConfig" + }, "TypeName": { "type": "string" } @@ -5703,6 +6042,30 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::AppSync::Resolver.CachingConfig": { + "additionalProperties": false, + "properties": { + "CachingKeys": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Ttl": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::AppSync::Resolver.LambdaConflictHandlerConfig": { + "additionalProperties": false, + "properties": { + "LambdaConflictHandlerArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppSync::Resolver.PipelineConfig": { "additionalProperties": false, "properties": { @@ -5715,6 +6078,24 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::AppSync::Resolver.SyncConfig": { + "additionalProperties": false, + "properties": { + "ConflictDetection": { + "type": "string" + }, + "ConflictHandler": { + "type": "string" + }, + "LambdaConflictHandlerConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.LambdaConflictHandlerConfig" + } + }, + "required": [ + "ConflictDetection" + ], + "type": "object" + }, "AWS::ApplicationAutoScaling::ScalableTarget": { "additionalProperties": false, "properties": { @@ -10005,6 +10386,68 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::CloudWatch::InsightRule": { + "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": { + "RuleBody": { + "type": "string" + }, + "RuleName": { + "type": "string" + }, + "RuleState": { + "type": "string" + } + }, + "required": [ + "RuleBody", + "RuleName", + "RuleState" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CloudWatch::InsightRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::CodeBuild::Project": { "additionalProperties": false, "properties": { @@ -11188,6 +11631,12 @@ var CloudformationSchema = `{ "Settings": { "$ref": "#/definitions/AWS::CodePipeline::CustomActionType.Settings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Version": { "type": "string" } @@ -11342,6 +11791,12 @@ var CloudformationSchema = `{ "$ref": "#/definitions/AWS::CodePipeline::Pipeline.StageDeclaration" }, "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11381,6 +11836,9 @@ var CloudformationSchema = `{ "Name": { "type": "string" }, + "Namespace": { + "type": "string" + }, "OutputArtifacts": { "items": { "$ref": "#/definitions/AWS::CodePipeline::Pipeline.OutputArtifact" @@ -11774,6 +12232,100 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::CodeStarNotifications::NotificationRule": { + "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": { + "DetailType": { + "type": "string" + }, + "EventTypeIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "Resource": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "Targets": { + "items": { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule.Target" + }, + "type": "array" + } + }, + "required": [ + "DetailType", + "EventTypeIds", + "Name", + "Resource", + "Targets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeStarNotifications::NotificationRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeStarNotifications::NotificationRule.Target": { + "additionalProperties": false, + "properties": { + "TargetAddress": { + "type": "string" + }, + "TargetType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Cognito::IdentityPool": { "additionalProperties": false, "properties": { @@ -11806,6 +12358,9 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "AllowClassicFlow": { + "type": "boolean" + }, "AllowUnauthenticatedIdentities": { "type": "boolean" }, @@ -12181,9 +12736,15 @@ var CloudformationSchema = `{ "AWS::Cognito::UserPool.EmailConfiguration": { "additionalProperties": false, "properties": { + "ConfigurationSet": { + "type": "string" + }, "EmailSendingAccount": { "type": "string" }, + "From": { + "type": "string" + }, "ReplyToEmailAddress": { "type": "string" }, @@ -12450,6 +13011,9 @@ var CloudformationSchema = `{ }, "type": "array" }, + "PreventUserExistenceErrors": { + "type": "string" + }, "ReadAttributes": { "items": { "type": "string" @@ -13104,6 +13668,9 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "ClientMetadata": { + "type": "object" + }, "DesiredDeliveryMediums": { "items": { "type": "string" @@ -14266,6 +14833,24 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.FastRestoreRule": { + "additionalProperties": false, + "properties": { + "AvailabilityZones": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Count": { + "type": "number" + } + }, + "required": [ + "Count" + ], + "type": "object" + }, "AWS::DLM::LifecyclePolicy.Parameters": { "additionalProperties": false, "properties": { @@ -14326,6 +14911,9 @@ var CloudformationSchema = `{ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "FastRestoreRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" + }, "Name": { "type": "string" }, @@ -15440,6 +16028,10 @@ var CloudformationSchema = `{ "type": "array" } }, + "required": [ + "MasterUserPassword", + "MasterUsername" + ], "type": "object" }, "Type": { @@ -15450,7 +16042,8 @@ var CloudformationSchema = `{ } }, "required": [ - "Type" + "Type", + "Properties" ], "type": "object" }, @@ -16806,6 +17399,12 @@ var CloudformationSchema = `{ }, "PublicIpv4Pool": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -17367,6 +17966,9 @@ var CloudformationSchema = `{ "AWS::EC2::Instance.ElasticInferenceAccelerator": { "additionalProperties": false, "properties": { + "Count": { + "type": "number" + }, "Type": { "type": "string" } @@ -18216,7 +18818,6 @@ var CloudformationSchema = `{ } }, "required": [ - "CidrBlock", "NetworkAclId", "Protocol", "RuleAction", @@ -21559,6 +22160,12 @@ var CloudformationSchema = `{ "ClusterName": { "type": "string" }, + "ClusterSettings": { + "items": { + "$ref": "#/definitions/AWS::ECS::Cluster.ClusterSetting" + }, + "type": "array" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -21580,7 +22187,85 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::ECS::Service": { + "AWS::ECS::Cluster.ClusterSetting": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Name", + "Value" + ], + "type": "object" + }, + "AWS::ECS::PrimaryTaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "Service": { + "type": "string" + }, + "TaskSetId": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskSetId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::PrimaryTaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::Service": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -21618,6 +22303,9 @@ var CloudformationSchema = `{ "DeploymentConfiguration": { "$ref": "#/definitions/AWS::ECS::Service.DeploymentConfiguration" }, + "DeploymentController": { + "$ref": "#/definitions/AWS::ECS::Service.DeploymentController" + }, "DesiredCount": { "type": "number" }, @@ -21682,9 +22370,6 @@ var CloudformationSchema = `{ "type": "string" } }, - "required": [ - "TaskDefinition" - ], "type": "object" }, "Type": { @@ -21695,8 +22380,7 @@ var CloudformationSchema = `{ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" }, @@ -21736,6 +22420,15 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::ECS::Service.DeploymentController": { + "additionalProperties": false, + "properties": { + "Type": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::Service.LoadBalancer": { "additionalProperties": false, "properties": { @@ -21861,6 +22554,12 @@ var CloudformationSchema = `{ "Family": { "type": "string" }, + "InferenceAccelerators": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.InferenceAccelerator" + }, + "type": "array" + }, "IpcMode": { "type": "string" }, @@ -21987,6 +22686,9 @@ var CloudformationSchema = `{ }, "type": "array" }, + "FirelensConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.FirelensConfiguration" + }, "HealthCheck": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.HealthCheck" }, @@ -22159,6 +22861,27 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::ECS::TaskDefinition.FirelensConfiguration": { + "additionalProperties": false, + "properties": { + "Options": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::ECS::TaskDefinition.HealthCheck": { "additionalProperties": false, "properties": { @@ -22211,6 +22934,21 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::ECS::TaskDefinition.InferenceAccelerator": { + "additionalProperties": false, + "properties": { + "DeviceName": { + "type": "string" + }, + "DevicePolicy": { + "type": "string" + }, + "DeviceType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::TaskDefinition.KernelCapabilities": { "additionalProperties": false, "properties": { @@ -22256,9 +22994,15 @@ var CloudformationSchema = `{ "InitProcessEnabled": { "type": "boolean" }, + "MaxSwap": { + "type": "number" + }, "SharedMemorySize": { "type": "number" }, + "Swappiness": { + "type": "number" + }, "Tmpfs": { "items": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.Tmpfs" @@ -22486,6 +23230,176 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::ECS::TaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "ExternalId": { + "type": "string" + }, + "LaunchType": { + "type": "string" + }, + "LoadBalancers": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.LoadBalancer" + }, + "type": "array" + }, + "NetworkConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.NetworkConfiguration" + }, + "PlatformVersion": { + "type": "string" + }, + "Scale": { + "$ref": "#/definitions/AWS::ECS::TaskSet.Scale" + }, + "Service": { + "type": "string" + }, + "ServiceRegistries": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.ServiceRegistry" + }, + "type": "array" + }, + "TaskDefinition": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskDefinition" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::TaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.AwsVpcConfiguration": { + "additionalProperties": false, + "properties": { + "AssignPublicIp": { + "type": "string" + }, + "SecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Subnets" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.LoadBalancer": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "LoadBalancerName": { + "type": "string" + }, + "TargetGroupArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.NetworkConfiguration": { + "additionalProperties": false, + "properties": { + "AwsVpcConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.AwsVpcConfiguration" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.Scale": { + "additionalProperties": false, + "properties": { + "Unit": { + "type": "string" + }, + "Value": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.ServiceRegistry": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "Port": { + "type": "number" + }, + "RegistryArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::EFS::FileSystem": { "additionalProperties": false, "properties": { @@ -22741,6 +23655,140 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::EKS::Nodegroup": { + "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": { + "AmiType": { + "type": "string" + }, + "ClusterName": { + "type": "string" + }, + "DiskSize": { + "type": "number" + }, + "ForceUpdateEnabled": { + "type": "boolean" + }, + "InstanceTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Labels": { + "type": "object" + }, + "NodeRole": { + "type": "string" + }, + "NodegroupName": { + "type": "string" + }, + "ReleaseVersion": { + "type": "string" + }, + "RemoteAccess": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.RemoteAccess" + }, + "ScalingConfig": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.ScalingConfig" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Tags": { + "type": "object" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "ClusterName", + "NodeRole", + "Subnets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EKS::Nodegroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.RemoteAccess": { + "additionalProperties": false, + "properties": { + "Ec2SshKey": { + "type": "string" + }, + "SourceSecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Ec2SshKey" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.ScalingConfig": { + "additionalProperties": false, + "properties": { + "DesiredSize": { + "type": "number" + }, + "MaxSize": { + "type": "number" + }, + "MinSize": { + "type": "number" + } + }, + "type": "object" + }, "AWS::EMR::Cluster": { "additionalProperties": false, "properties": { @@ -26417,6 +27465,9 @@ var CloudformationSchema = `{ }, "type": "object" }, + "CognitoOptions": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.CognitoOptions" + }, "DomainName": { "type": "string" }, @@ -26432,6 +27483,15 @@ var CloudformationSchema = `{ "EncryptionAtRestOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.EncryptionAtRestOptions" }, + "LogPublishingOptions": { + "additionalProperties": false, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.LogPublishingOption" + } + }, + "type": "object" + }, "NodeToNodeEncryptionOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions" }, @@ -26462,6 +27522,24 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::Elasticsearch::Domain.CognitoOptions": { + "additionalProperties": false, + "properties": { + "Enabled": { + "type": "boolean" + }, + "IdentityPoolId": { + "type": "string" + }, + "RoleArn": { + "type": "string" + }, + "UserPoolId": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.EBSOptions": { "additionalProperties": false, "properties": { @@ -26519,6 +27597,18 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::Elasticsearch::Domain.LogPublishingOption": { + "additionalProperties": false, + "properties": { + "CloudWatchLogsLogGroupArn": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions": { "additionalProperties": false, "properties": { @@ -26739,6 +27829,9 @@ var CloudformationSchema = `{ "Description": { "type": "string" }, + "EventBusName": { + "type": "string" + }, "EventPattern": { "type": "object" }, @@ -26799,6 +27892,46 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::Events::Rule.BatchArrayProperties": { + "additionalProperties": false, + "properties": { + "Size": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::Events::Rule.BatchParameters": { + "additionalProperties": false, + "properties": { + "ArrayProperties": { + "$ref": "#/definitions/AWS::Events::Rule.BatchArrayProperties" + }, + "JobDefinition": { + "type": "string" + }, + "JobName": { + "type": "string" + }, + "RetryStrategy": { + "$ref": "#/definitions/AWS::Events::Rule.BatchRetryStrategy" + } + }, + "required": [ + "JobDefinition", + "JobName" + ], + "type": "object" + }, + "AWS::Events::Rule.BatchRetryStrategy": { + "additionalProperties": false, + "properties": { + "Attempts": { + "type": "number" + } + }, + "type": "object" + }, "AWS::Events::Rule.EcsParameters": { "additionalProperties": false, "properties": { @@ -26920,6 +28053,9 @@ var CloudformationSchema = `{ "Arn": { "type": "string" }, + "BatchParameters": { + "$ref": "#/definitions/AWS::Events::Rule.BatchParameters" + }, "EcsParameters": { "$ref": "#/definitions/AWS::Events::Rule.EcsParameters" }, @@ -27228,6 +28364,9 @@ var CloudformationSchema = `{ "Name": { "type": "string" }, + "OperatingSystem": { + "type": "string" + }, "StorageLocation": { "$ref": "#/definitions/AWS::GameLift::Build.S3Location" }, @@ -27258,6 +28397,9 @@ var CloudformationSchema = `{ "Key": { "type": "string" }, + "ObjectVersion": { + "type": "string" + }, "RoleArn": { "type": "string" } @@ -27304,6 +28446,9 @@ var CloudformationSchema = `{ "BuildId": { "type": "string" }, + "CertificateConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.CertificateConfiguration" + }, "Description": { "type": "string" }, @@ -27319,6 +28464,12 @@ var CloudformationSchema = `{ "EC2InstanceType": { "type": "string" }, + "FleetType": { + "type": "string" + }, + "InstanceRoleARN": { + "type": "string" + }, "LogPaths": { "items": { "type": "string" @@ -27328,12 +28479,36 @@ var CloudformationSchema = `{ "MaxSize": { "type": "number" }, + "MetricGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, "MinSize": { "type": "number" }, "Name": { "type": "string" }, + "NewGameSessionProtectionPolicy": { + "type": "string" + }, + "PeerVpcAwsAccountId": { + "type": "string" + }, + "PeerVpcId": { + "type": "string" + }, + "ResourceCreationLimitPolicy": { + "$ref": "#/definitions/AWS::GameLift::Fleet.ResourceCreationLimitPolicy" + }, + "RuntimeConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.RuntimeConfiguration" + }, + "ScriptId": { + "type": "string" + }, "ServerLaunchParameters": { "type": "string" }, @@ -27342,11 +28517,8 @@ var CloudformationSchema = `{ } }, "required": [ - "BuildId", - "DesiredEC2Instances", "EC2InstanceType", - "Name", - "ServerLaunchPath" + "Name" ], "type": "object" }, @@ -27363,6 +28535,18 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::GameLift::Fleet.CertificateConfiguration": { + "additionalProperties": false, + "properties": { + "CertificateType": { + "type": "string" + } + }, + "required": [ + "CertificateType" + ], + "type": "object" + }, "AWS::GameLift::Fleet.IpPermission": { "additionalProperties": false, "properties": { @@ -27387,152 +28571,548 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::Glue::Classifier": { + "AWS::GameLift::Fleet.ResourceCreationLimitPolicy": { "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": { - "CsvClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" - }, - "GrokClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" - }, - "JsonClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" - }, - "XMLClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" - } - }, - "type": "object" + "NewGameSessionsPerCreator": { + "type": "number" }, - "Type": { - "enum": [ - "AWS::Glue::Classifier" - ], - "type": "string" + "PolicyPeriodInMinutes": { + "type": "number" } }, - "required": [ - "Type" - ], "type": "object" }, - "AWS::Glue::Classifier.CsvClassifier": { + "AWS::GameLift::Fleet.RuntimeConfiguration": { "additionalProperties": false, "properties": { - "AllowSingleColumn": { - "type": "boolean" - }, - "ContainsHeader": { - "type": "string" - }, - "Delimiter": { - "type": "string" + "GameSessionActivationTimeoutSeconds": { + "type": "number" }, - "DisableValueTrimming": { - "type": "boolean" + "MaxConcurrentGameSessionActivations": { + "type": "number" }, - "Header": { + "ServerProcesses": { "items": { - "type": "string" + "$ref": "#/definitions/AWS::GameLift::Fleet.ServerProcess" }, "type": "array" - }, - "Name": { - "type": "string" - }, - "QuoteSymbol": { - "type": "string" } }, "type": "object" }, - "AWS::Glue::Classifier.GrokClassifier": { + "AWS::GameLift::Fleet.ServerProcess": { "additionalProperties": false, "properties": { - "Classification": { - "type": "string" - }, - "CustomPatterns": { - "type": "string" - }, - "GrokPattern": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "Classification", - "GrokPattern" - ], - "type": "object" - }, - "AWS::Glue::Classifier.JsonClassifier": { - "additionalProperties": false, - "properties": { - "JsonPath": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "JsonPath" - ], - "type": "object" - }, - "AWS::Glue::Classifier.XMLClassifier": { - "additionalProperties": false, - "properties": { - "Classification": { - "type": "string" + "ConcurrentExecutions": { + "type": "number" }, - "Name": { + "LaunchPath": { "type": "string" }, - "RowTag": { + "Parameters": { "type": "string" } }, "required": [ - "Classification", - "RowTag" + "ConcurrentExecutions", + "LaunchPath" ], "type": "object" }, - "AWS::Glue::Connection": { + "AWS::GameLift::GameSessionQueue": { + "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": { + "Destinations": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.Destination" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "PlayerLatencyPolicies": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy" + }, + "type": "array" + }, + "TimeoutInSeconds": { + "type": "number" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::GameSessionQueue" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.Destination": { + "additionalProperties": false, + "properties": { + "DestinationArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy": { + "additionalProperties": false, + "properties": { + "MaximumIndividualPlayerLatencyMilliseconds": { + "type": "number" + }, + "PolicyDurationSeconds": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration": { + "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": { + "AcceptanceRequired": { + "type": "boolean" + }, + "AcceptanceTimeoutSeconds": { + "type": "number" + }, + "AdditionalPlayerCount": { + "type": "number" + }, + "BackfillMode": { + "type": "string" + }, + "CustomEventData": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "GameProperties": { + "items": { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration.GameProperty" + }, + "type": "array" + }, + "GameSessionData": { + "type": "string" + }, + "GameSessionQueueArns": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "NotificationTarget": { + "type": "string" + }, + "RequestTimeoutSeconds": { + "type": "number" + }, + "RuleSetName": { + "type": "string" + } + }, + "required": [ + "AcceptanceRequired", + "GameSessionQueueArns", + "Name", + "RequestTimeoutSeconds", + "RuleSetName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingConfiguration" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration.GameProperty": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Key", + "Value" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingRuleSet": { + "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": { + "Name": { + "type": "string" + }, + "RuleSetBody": { + "type": "string" + } + }, + "required": [ + "Name", + "RuleSetBody" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingRuleSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script": { + "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": { + "Name": { + "type": "string" + }, + "StorageLocation": { + "$ref": "#/definitions/AWS::GameLift::Script.S3Location" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "StorageLocation" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::Script" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script.S3Location": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "Key": { + "type": "string" + }, + "ObjectVersion": { + "type": "string" + }, + "RoleArn": { + "type": "string" + } + }, + "required": [ + "Bucket", + "Key", + "RoleArn" + ], + "type": "object" + }, + "AWS::Glue::Classifier": { + "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": { + "CsvClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" + }, + "GrokClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" + }, + "JsonClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" + }, + "XMLClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Glue::Classifier" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, + "AWS::Glue::Classifier.CsvClassifier": { + "additionalProperties": false, + "properties": { + "AllowSingleColumn": { + "type": "boolean" + }, + "ContainsHeader": { + "type": "string" + }, + "Delimiter": { + "type": "string" + }, + "DisableValueTrimming": { + "type": "boolean" + }, + "Header": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "QuoteSymbol": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Glue::Classifier.GrokClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "CustomPatterns": { + "type": "string" + }, + "GrokPattern": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Classification", + "GrokPattern" + ], + "type": "object" + }, + "AWS::Glue::Classifier.JsonClassifier": { + "additionalProperties": false, + "properties": { + "JsonPath": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "JsonPath" + ], + "type": "object" + }, + "AWS::Glue::Classifier.XMLClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "RowTag": { + "type": "string" + } + }, + "required": [ + "Classification", + "RowTag" + ], + "type": "object" + }, + "AWS::Glue::Connection": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -27712,7 +29292,6 @@ var CloudformationSchema = `{ } }, "required": [ - "DatabaseName", "Role", "Targets" ], @@ -27731,6 +29310,30 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::Glue::Crawler.CatalogTarget": { + "additionalProperties": false, + "properties": { + "DatabaseName": { + "type": "string" + }, + "Tables": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::Glue::Crawler.DynamoDBTarget": { + "additionalProperties": false, + "properties": { + "Path": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Glue::Crawler.JdbcTarget": { "additionalProperties": false, "properties": { @@ -27788,6 +29391,18 @@ var CloudformationSchema = `{ "AWS::Glue::Crawler.Targets": { "additionalProperties": false, "properties": { + "CatalogTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.CatalogTarget" + }, + "type": "array" + }, + "DynamoDBTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.DynamoDBTarget" + }, + "type": "array" + }, "JdbcTargets": { "items": { "$ref": "#/definitions/AWS::Glue::Crawler.JdbcTarget" @@ -28255,6 +29870,9 @@ var CloudformationSchema = `{ "Description": { "type": "string" }, + "GlueVersion": { + "type": "string" + }, "InputRecordTables": { "$ref": "#/definitions/AWS::Glue::MLTransform.InputRecordTables" }, @@ -32021,6 +33639,12 @@ var CloudformationSchema = `{ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "UserName": { "type": "string" } @@ -37282,7 +38906,7 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::Lambda::EventSourceMapping": { + "AWS::Lambda::EventInvokeConfig": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -37314,142 +38938,31 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { - "BatchSize": { - "type": "number" - }, - "Enabled": { - "type": "boolean" - }, - "EventSourceArn": { - "type": "string" + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.DestinationConfig" }, "FunctionName": { "type": "string" }, - "MaximumBatchingWindowInSeconds": { + "MaximumEventAgeInSeconds": { "type": "number" }, - "StartingPosition": { - "type": "string" - } - }, - "required": [ - "EventSourceArn", - "FunctionName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::EventSourceMapping" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::Lambda::Function": { - "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": { - "Code": { - "$ref": "#/definitions/AWS::Lambda::Function.Code" - }, - "DeadLetterConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" - }, - "Description": { - "type": "string" - }, - "Environment": { - "$ref": "#/definitions/AWS::Lambda::Function.Environment" - }, - "FunctionName": { - "type": "string" - }, - "Handler": { - "type": "string" - }, - "KmsKeyArn": { - "type": "string" - }, - "Layers": { - "items": { - "type": "string" - }, - "type": "array" - }, - "MemorySize": { - "type": "number" - }, - "ReservedConcurrentExecutions": { + "MaximumRetryAttempts": { "type": "number" }, - "Role": { + "Qualifier": { "type": "string" - }, - "Runtime": { - "type": "string" - }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - }, - "Timeout": { - "type": "number" - }, - "TracingConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" - }, - "VpcConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" } }, "required": [ - "Code", - "Handler", - "Role", - "Runtime" + "FunctionName", + "Qualifier" ], "type": "object" }, "Type": { "enum": [ - "AWS::Lambda::Function" + "AWS::Lambda::EventInvokeConfig" ], "type": "string" } @@ -37460,168 +38973,421 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::Lambda::Function.Code": { + "AWS::Lambda::EventInvokeConfig.DestinationConfig": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnFailure" }, - "S3ObjectVersion": { - "type": "string" - }, - "ZipFile": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.DeadLetterConfig": { - "additionalProperties": false, - "properties": { - "TargetArn": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.Environment": { - "additionalProperties": false, - "properties": { - "Variables": { - "additionalProperties": true, - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "type": "string" - } - }, - "type": "object" + "OnSuccess": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnSuccess" } }, "type": "object" }, - "AWS::Lambda::Function.TracingConfig": { + "AWS::Lambda::EventInvokeConfig.OnFailure": { "additionalProperties": false, "properties": { - "Mode": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.VpcConfig": { - "additionalProperties": false, - "properties": { - "SecurityGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "SubnetIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "SecurityGroupIds", - "SubnetIds" - ], - "type": "object" - }, - "AWS::Lambda::LayerVersion": { - "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": { - "CompatibleRuntimes": { - "items": { - "type": "string" - }, - "type": "array" - }, - "Content": { - "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" - }, - "Description": { - "type": "string" - }, - "LayerName": { - "type": "string" - }, - "LicenseInfo": { - "type": "string" - } - }, - "required": [ - "Content" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::LayerVersion" - ], + "Destination": { "type": "string" } }, "required": [ - "Type", - "Properties" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersion.Content": { + "AWS::Lambda::EventInvokeConfig.OnSuccess": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" - }, - "S3ObjectVersion": { + "Destination": { "type": "string" } }, "required": [ - "S3Bucket", - "S3Key" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersionPermission": { + "AWS::Lambda::EventSourceMapping": { + "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": { + "BatchSize": { + "type": "number" + }, + "BisectBatchOnFunctionError": { + "type": "boolean" + }, + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.DestinationConfig" + }, + "Enabled": { + "type": "boolean" + }, + "EventSourceArn": { + "type": "string" + }, + "FunctionName": { + "type": "string" + }, + "MaximumBatchingWindowInSeconds": { + "type": "number" + }, + "MaximumRecordAgeInSeconds": { + "type": "number" + }, + "MaximumRetryAttempts": { + "type": "number" + }, + "ParallelizationFactor": { + "type": "number" + }, + "StartingPosition": { + "type": "string" + } + }, + "required": [ + "EventSourceArn", + "FunctionName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::EventSourceMapping" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.DestinationConfig": { + "additionalProperties": false, + "properties": { + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.OnFailure" + } + }, + "required": [ + "OnFailure" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.OnFailure": { + "additionalProperties": false, + "properties": { + "Destination": { + "type": "string" + } + }, + "required": [ + "Destination" + ], + "type": "object" + }, + "AWS::Lambda::Function": { + "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": { + "Code": { + "$ref": "#/definitions/AWS::Lambda::Function.Code" + }, + "DeadLetterConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" + }, + "Description": { + "type": "string" + }, + "Environment": { + "$ref": "#/definitions/AWS::Lambda::Function.Environment" + }, + "FunctionName": { + "type": "string" + }, + "Handler": { + "type": "string" + }, + "KmsKeyArn": { + "type": "string" + }, + "Layers": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MemorySize": { + "type": "number" + }, + "ReservedConcurrentExecutions": { + "type": "number" + }, + "Role": { + "type": "string" + }, + "Runtime": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "Timeout": { + "type": "number" + }, + "TracingConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" + }, + "VpcConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" + } + }, + "required": [ + "Code", + "Handler", + "Role", + "Runtime" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::Function" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::Function.Code": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + }, + "ZipFile": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.DeadLetterConfig": { + "additionalProperties": false, + "properties": { + "TargetArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.Environment": { + "additionalProperties": false, + "properties": { + "Variables": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.TracingConfig": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.VpcConfig": { + "additionalProperties": false, + "properties": { + "SecurityGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SubnetIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "SecurityGroupIds", + "SubnetIds" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion": { + "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": { + "CompatibleRuntimes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Content": { + "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" + }, + "Description": { + "type": "string" + }, + "LayerName": { + "type": "string" + }, + "LicenseInfo": { + "type": "string" + } + }, + "required": [ + "Content" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::LayerVersion" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion.Content": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + } + }, + "required": [ + "S3Bucket", + "S3Key" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersionPermission": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -38608,6 +40374,224 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::MediaConvert::JobTemplate": { + "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": { + "AccelerationSettings": { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate.AccelerationSettings" + }, + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Queue": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "StatusUpdateInterval": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::JobTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::JobTemplate.AccelerationSettings": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "required": [ + "Mode" + ], + "type": "object" + }, + "AWS::MediaConvert::Preset": { + "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": { + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Preset" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::Queue": { + "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": { + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "PricingPlan": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Queue" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::MediaLive::Channel": { "additionalProperties": false, "properties": { @@ -40856,6 +42840,15 @@ var CloudformationSchema = `{ "BackupRetentionCount": { "type": "number" }, + "CustomCertificate": { + "type": "string" + }, + "CustomDomain": { + "type": "string" + }, + "CustomPrivateKey": { + "type": "string" + }, "DisableAutomatedBackup": { "type": "boolean" }, @@ -41996,6 +43989,73 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::Pinpoint::EmailTemplate": { + "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": { + "HtmlPart": { + "type": "string" + }, + "Subject": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + }, + "TextPart": { + "type": "string" + } + }, + "required": [ + "Subject", + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::EmailTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::Pinpoint::EventStream": { "additionalProperties": false, "properties": { @@ -42119,6 +44179,153 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::Pinpoint::PushTemplate": { + "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": { + "ADM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "APNS": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate" + }, + "Baidu": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Default": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" + }, + "GCM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + } + }, + "required": [ + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::PushTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "MediaUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "ImageIconUrl": { + "type": "string" + }, + "ImageUrl": { + "type": "string" + }, + "SmallImageIconUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Pinpoint::SMSChannel": { "additionalProperties": false, "properties": { @@ -42450,7 +44657,7 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::Pinpoint::VoiceChannel": { + "AWS::Pinpoint::SmsTemplate": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -42482,93 +44689,25 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { - "ApplicationId": { - "type": "string" - }, - "Enabled": { - "type": "boolean" - } - }, - "required": [ - "ApplicationId" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Pinpoint::VoiceChannel" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet": { - "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": { - "DeliveryOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" - }, - "Name": { + "Body": { "type": "string" }, - "ReputationOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" - }, - "SendingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" - }, "Tags": { - "items": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" - }, - "type": "array" + "type": "object" }, - "TrackingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + "TemplateName": { + "type": "string" } }, "required": [ - "Name" + "Body", + "TemplateName" ], "type": "object" }, "Type": { "enum": [ - "AWS::PinpointEmail::ConfigurationSet" + "AWS::Pinpoint::SmsTemplate" ], "type": "string" } @@ -42579,55 +44718,184 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { - "additionalProperties": false, - "properties": { - "SendingPoolName": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { - "additionalProperties": false, - "properties": { - "ReputationMetricsEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { - "additionalProperties": false, - "properties": { - "SendingEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.Tags": { - "additionalProperties": false, - "properties": { - "Key": { - "type": "string" - }, - "Value": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { - "additionalProperties": false, - "properties": { - "CustomRedirectDomain": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSetEventDestination": { + "AWS::Pinpoint::VoiceChannel": { + "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": { + "ApplicationId": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "required": [ + "ApplicationId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::VoiceChannel" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet": { + "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": { + "DeliveryOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" + }, + "Name": { + "type": "string" + }, + "ReputationOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" + }, + "SendingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" + }, + "Tags": { + "items": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" + }, + "type": "array" + }, + "TrackingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::PinpointEmail::ConfigurationSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { + "additionalProperties": false, + "properties": { + "SendingPoolName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { + "additionalProperties": false, + "properties": { + "ReputationMetricsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { + "additionalProperties": false, + "properties": { + "SendingEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.Tags": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { + "additionalProperties": false, + "properties": { + "CustomRedirectDomain": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSetEventDestination": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -43160,6 +45428,9 @@ var CloudformationSchema = `{ }, "type": "array" }, + "EnableHttpEndpoint": { + "type": "boolean" + }, "EnableIAMDatabaseAuthentication": { "type": "boolean" }, @@ -43253,9 +45524,6 @@ var CloudformationSchema = `{ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -43576,9 +45844,6 @@ var CloudformationSchema = `{ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -47499,6 +49764,9 @@ var CloudformationSchema = `{ "RawMessageDelivery": { "type": "boolean" }, + "RedrivePolicy": { + "type": "object" + }, "Region": { "type": "string" }, @@ -47569,6 +49837,12 @@ var CloudformationSchema = `{ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "TopicName": { "type": "string" } @@ -48881,74 +51155,14 @@ var CloudformationSchema = `{ "EndpointName": { "type": "string" }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - } - }, - "required": [ - "EndpointConfigName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::SageMaker::Endpoint" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::SageMaker::EndpointConfig": { - "additionalProperties": false, - "properties": { - "DeletionPolicy": { - "enum": [ - "Delete", - "Retain", - "Snapshot" - ], - "type": "string" - }, - "DependsOn": { - "anyOf": [ - { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" - }, - { + "ExcludeRetainedVariantProperties": { "items": { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" + "$ref": "#/definitions/AWS::SageMaker::Endpoint.VariantProperty" }, "type": "array" - } - ] - }, - "Metadata": { - "type": "object" - }, - "Properties": { - "additionalProperties": false, - "properties": { - "EndpointConfigName": { - "type": "string" - }, - "KmsKeyId": { - "type": "string" }, - "ProductionVariants": { - "items": { - "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" - }, - "type": "array" + "RetainAllVariantProperties": { + "type": "boolean" }, "Tags": { "items": { @@ -48958,13 +51172,13 @@ var CloudformationSchema = `{ } }, "required": [ - "ProductionVariants" + "EndpointConfigName" ], "type": "object" }, "Type": { "enum": [ - "AWS::SageMaker::EndpointConfig" + "AWS::SageMaker::Endpoint" ], "type": "string" } @@ -48975,38 +51189,116 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "AWS::SageMaker::Endpoint.VariantProperty": { "additionalProperties": false, "properties": { - "AcceleratorType": { - "type": "string" - }, - "InitialInstanceCount": { - "type": "number" - }, - "InitialVariantWeight": { - "type": "number" - }, - "InstanceType": { - "type": "string" - }, - "ModelName": { - "type": "string" - }, - "VariantName": { + "VariantPropertyType": { "type": "string" } }, - "required": [ - "InitialInstanceCount", - "InitialVariantWeight", - "InstanceType", - "ModelName", - "VariantName" - ], "type": "object" }, - "AWS::SageMaker::Model": { + "AWS::SageMaker::EndpointConfig": { + "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": { + "EndpointConfigName": { + "type": "string" + }, + "KmsKeyId": { + "type": "string" + }, + "ProductionVariants": { + "items": { + "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" + }, + "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "required": [ + "ProductionVariants" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::SageMaker::EndpointConfig" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "additionalProperties": false, + "properties": { + "AcceleratorType": { + "type": "string" + }, + "InitialInstanceCount": { + "type": "number" + }, + "InitialVariantWeight": { + "type": "number" + }, + "InstanceType": { + "type": "string" + }, + "ModelName": { + "type": "string" + }, + "VariantName": { + "type": "string" + } + }, + "required": [ + "InitialInstanceCount", + "InitialVariantWeight", + "InstanceType", + "ModelName", + "VariantName" + ], + "type": "object" + }, + "AWS::SageMaker::Model": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -53079,7 +55371,7 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::WorkSpaces::Workspace": { + "AWS::WAFv2::IPSet": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -53111,44 +55403,233 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { - "BundleId": { + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { "type": "string" }, - "DirectoryId": { + "IPAddressVersion": { "type": "string" }, - "RootVolumeEncryptionEnabled": { - "type": "boolean" + "IPSet": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSet" + }, + "IPSetSummary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "IPSets": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSets" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" }, "Tags": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.TagList" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::IPSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::IPSet.IPAddresses": { + "additionalProperties": false, + "properties": { + "IPAddresses": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSet": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { + "type": "string" + }, + "IPAddressVersion": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSets": { + "additionalProperties": false, + "properties": { + "IPSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { "items": { - "$ref": "#/definitions/Tag" + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" }, "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "Description": { + "type": "string" }, - "UserName": { + "Id": { "type": "string" }, - "UserVolumeEncryptionEnabled": { - "type": "boolean" + "Limit": { + "type": "number" }, - "VolumeEncryptionKey": { + "LockToken": { "type": "string" }, - "WorkspaceProperties": { - "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RegexPatternSet": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSet" + }, + "RegexPatternSets": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSets" + }, + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.TagList" } }, "required": [ - "BundleId", - "DirectoryId", - "UserName" + "Name", + "Scope" ], "type": "object" }, "Type": { "enum": [ - "AWS::WorkSpaces::Workspace" + "AWS::WAFv2::RegexPatternSet" ], "type": "string" } @@ -53159,28 +55640,1626 @@ var CloudformationSchema = `{ ], "type": "object" }, - "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "AWS::WAFv2::RegexPatternSet.Regex": { "additionalProperties": false, "properties": { - "ComputeTypeName": { + "RegexString": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSet": { + "additionalProperties": false, + "properties": { + "ARN": { "type": "string" }, - "RootVolumeSizeGib": { - "type": "number" + "Description": { + "type": "string" }, - "RunningMode": { + "Id": { "type": "string" }, - "RunningModeAutoStopTimeoutInMinutes": { - "type": "number" + "Name": { + "type": "string" }, - "UserVolumeSizeGib": { - "type": "number" + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" } }, "type": "object" }, - "Alexa::ASK::Skill": { + "AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSets": { + "additionalProperties": false, + "properties": { + "RegexPatternSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegularExpressionList": { + "additionalProperties": false, + "properties": { + "RegularExpressionList": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.Regex" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup": { + "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": { + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RuleGroup": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroup" + }, + "RuleGroupSummary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "RuleGroups": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroups" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "Scope": { + "type": "string" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::RuleGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleAction" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroup": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroupSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroups": { + "additionalProperties": false, + "properties": { + "RuleGroups": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL": { + "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": { + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + }, + "WebACL": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACL" + }, + "WebACLs": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLs" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::WebACL" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::WebACL.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.DefaultAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRule": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRules": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ManagedRuleGroupStatement": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + }, + "Name": { + "type": "string" + }, + "VendorName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NoneAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OverrideAction": { + "additionalProperties": false, + "properties": { + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + }, + "None": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NoneAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleAction" + }, + "Name": { + "type": "string" + }, + "OverrideAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OverrideAction" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleGroupReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACL": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLs": { + "additionalProperties": false, + "properties": { + "WebACLs": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WorkSpaces::Workspace": { + "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": { + "BundleId": { + "type": "string" + }, + "DirectoryId": { + "type": "string" + }, + "RootVolumeEncryptionEnabled": { + "type": "boolean" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "UserName": { + "type": "string" + }, + "UserVolumeEncryptionEnabled": { + "type": "boolean" + }, + "VolumeEncryptionKey": { + "type": "string" + }, + "WorkspaceProperties": { + "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + } + }, + "required": [ + "BundleId", + "DirectoryId", + "UserName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WorkSpaces::Workspace" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "additionalProperties": false, + "properties": { + "ComputeTypeName": { + "type": "string" + }, + "RootVolumeSizeGib": { + "type": "number" + }, + "RunningMode": { + "type": "string" + }, + "RunningModeAutoStopTimeoutInMinutes": { + "type": "number" + }, + "UserVolumeSizeGib": { + "type": "number" + } + }, + "type": "object" + }, + "Alexa::ASK::Skill": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -53609,6 +57688,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::AppStream::User" }, + { + "$ref": "#/definitions/AWS::AppSync::ApiCache" + }, { "$ref": "#/definitions/AWS::AppSync::ApiKey" }, @@ -53717,6 +57799,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::CloudWatch::Dashboard" }, + { + "$ref": "#/definitions/AWS::CloudWatch::InsightRule" + }, { "$ref": "#/definitions/AWS::CodeBuild::Project" }, @@ -53747,6 +57832,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::CodeStar::GitHubRepository" }, + { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule" + }, { "$ref": "#/definitions/AWS::Cognito::IdentityPool" }, @@ -54038,12 +58126,18 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::ECS::Cluster" }, + { + "$ref": "#/definitions/AWS::ECS::PrimaryTaskSet" + }, { "$ref": "#/definitions/AWS::ECS::Service" }, { "$ref": "#/definitions/AWS::ECS::TaskDefinition" }, + { + "$ref": "#/definitions/AWS::ECS::TaskSet" + }, { "$ref": "#/definitions/AWS::EFS::FileSystem" }, @@ -54053,6 +58147,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::EKS::Cluster" }, + { + "$ref": "#/definitions/AWS::EKS::Nodegroup" + }, { "$ref": "#/definitions/AWS::EMR::Cluster" }, @@ -54140,6 +58237,18 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::GameLift::Fleet" }, + { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingRuleSet" + }, + { + "$ref": "#/definitions/AWS::GameLift::Script" + }, { "$ref": "#/definitions/AWS::Glue::Classifier" }, @@ -54377,6 +58486,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::Lambda::Alias" }, + { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig" + }, { "$ref": "#/definitions/AWS::Lambda::EventSourceMapping" }, @@ -54419,6 +58531,15 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::ManagedBlockchain::Node" }, + { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Preset" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Queue" + }, { "$ref": "#/definitions/AWS::MediaLive::Channel" }, @@ -54500,18 +58621,27 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::Pinpoint::EmailChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::EmailTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::EventStream" }, { "$ref": "#/definitions/AWS::Pinpoint::GCMChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::SMSChannel" }, { "$ref": "#/definitions/AWS::Pinpoint::Segment" }, + { + "$ref": "#/definitions/AWS::Pinpoint::SmsTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::VoiceChannel" }, @@ -54839,6 +58969,18 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::WAFRegional::XssMatchSet" }, + { + "$ref": "#/definitions/AWS::WAFv2::IPSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup" + }, + { + "$ref": "#/definitions/AWS::WAFv2::WebACL" + }, { "$ref": "#/definitions/AWS::WorkSpaces::Workspace" }, diff --git a/schema/cloudformation.schema.json b/schema/cloudformation.schema.json index 91e97417e4..96986ea7ea 100644 --- a/schema/cloudformation.schema.json +++ b/schema/cloudformation.schema.json @@ -73,6 +73,9 @@ }, "type": "array" }, + "StorageType": { + "type": "string" + }, "SubnetIds": { "items": { "type": "string" @@ -503,12 +506,18 @@ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::App.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" } @@ -618,12 +627,18 @@ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::Branch.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" }, @@ -872,6 +887,12 @@ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Value": { "type": "string" } @@ -1084,6 +1105,12 @@ "properties": { "Description": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -1518,6 +1545,15 @@ }, "RegionalCertificateArn": { "type": "string" + }, + "SecurityPolicy": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -2138,6 +2174,12 @@ }, "Policy": { "type": "object" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -2162,6 +2204,12 @@ "type": "string" }, "type": "array" + }, + "VpcEndpointIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -2405,6 +2453,12 @@ "Quota": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.QuotaSettings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Throttle": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.ThrottleSettings" }, @@ -3669,6 +3723,131 @@ ], "type": "object" }, + "AWS::AppMesh::Route.GrpcRetryPolicy": { + "additionalProperties": false, + "properties": { + "GrpcRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "HttpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MaxRetries": { + "type": "number" + }, + "PerRetryTimeout": { + "$ref": "#/definitions/AWS::AppMesh::Route.Duration" + }, + "TcpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "MaxRetries", + "PerRetryTimeout" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRoute": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteAction" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMatch" + }, + "RetryPolicy": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRetryPolicy" + } + }, + "required": [ + "Action", + "Match" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteAction": { + "additionalProperties": false, + "properties": { + "WeightedTargets": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.WeightedTarget" + }, + "type": "array" + } + }, + "required": [ + "WeightedTargets" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMatch": { + "additionalProperties": false, + "properties": { + "Metadata": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadata" + }, + "type": "array" + }, + "MethodName": { + "type": "string" + }, + "ServiceName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadata": { + "additionalProperties": false, + "properties": { + "Invert": { + "type": "boolean" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod": { + "additionalProperties": false, + "properties": { + "Exact": { + "type": "string" + }, + "Prefix": { + "type": "string" + }, + "Range": { + "$ref": "#/definitions/AWS::AppMesh::Route.MatchRange" + }, + "Regex": { + "type": "string" + }, + "Suffix": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppMesh::Route.HeaderMatchMethod": { "additionalProperties": false, "properties": { @@ -3813,6 +3992,12 @@ "AWS::AppMesh::Route.RouteSpec": { "additionalProperties": false, "properties": { + "GrpcRoute": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRoute" + }, + "Http2Route": { + "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" + }, "HttpRoute": { "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" }, @@ -4617,6 +4802,12 @@ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::ImageBuilder.AccessEndpoint" + }, + "type": "array" + }, "AppstreamAgentVersion": { "type": "string" }, @@ -4672,6 +4863,22 @@ ], "type": "object" }, + "AWS::AppStream::ImageBuilder.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::ImageBuilder.DomainJoinInfo": { "additionalProperties": false, "properties": { @@ -4734,6 +4941,12 @@ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::Stack.AccessEndpoint" + }, + "type": "array" + }, "ApplicationSettings": { "$ref": "#/definitions/AWS::AppStream::Stack.ApplicationSettings" }, @@ -4752,6 +4965,12 @@ "DisplayName": { "type": "string" }, + "EmbedHostDomains": { + "items": { + "type": "string" + }, + "type": "array" + }, "FeedbackURL": { "type": "string" }, @@ -4794,6 +5013,22 @@ ], "type": "object" }, + "AWS::AppStream::Stack.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::Stack.ApplicationSettings": { "additionalProperties": false, "properties": { @@ -5036,6 +5271,78 @@ ], "type": "object" }, + "AWS::AppSync::ApiCache": { + "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": { + "ApiCachingBehavior": { + "type": "string" + }, + "ApiId": { + "type": "string" + }, + "AtRestEncryptionEnabled": { + "type": "boolean" + }, + "TransitEncryptionEnabled": { + "type": "boolean" + }, + "Ttl": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ApiCachingBehavior", + "ApiId", + "Ttl", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::AppSync::ApiCache" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::AppSync::ApiKey": { "additionalProperties": false, "properties": { @@ -5206,17 +5513,43 @@ }, "type": "object" }, + "AWS::AppSync::DataSource.DeltaSyncConfig": { + "additionalProperties": false, + "properties": { + "BaseTableTTL": { + "type": "string" + }, + "DeltaSyncTableName": { + "type": "string" + }, + "DeltaSyncTableTTL": { + "type": "string" + } + }, + "required": [ + "BaseTableTTL", + "DeltaSyncTableName", + "DeltaSyncTableTTL" + ], + "type": "object" + }, "AWS::AppSync::DataSource.DynamoDBConfig": { "additionalProperties": false, "properties": { "AwsRegion": { "type": "string" }, + "DeltaSyncConfig": { + "$ref": "#/definitions/AWS::AppSync::DataSource.DeltaSyncConfig" + }, "TableName": { "type": "string" }, "UseCallerCredentials": { "type": "boolean" + }, + "Versioned": { + "type": "boolean" } }, "required": [ @@ -5652,6 +5985,9 @@ "ApiId": { "type": "string" }, + "CachingConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.CachingConfig" + }, "DataSourceName": { "type": "string" }, @@ -5676,6 +6012,9 @@ "ResponseMappingTemplateS3Location": { "type": "string" }, + "SyncConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.SyncConfig" + }, "TypeName": { "type": "string" } @@ -5700,6 +6039,30 @@ ], "type": "object" }, + "AWS::AppSync::Resolver.CachingConfig": { + "additionalProperties": false, + "properties": { + "CachingKeys": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Ttl": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::AppSync::Resolver.LambdaConflictHandlerConfig": { + "additionalProperties": false, + "properties": { + "LambdaConflictHandlerArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppSync::Resolver.PipelineConfig": { "additionalProperties": false, "properties": { @@ -5712,6 +6075,24 @@ }, "type": "object" }, + "AWS::AppSync::Resolver.SyncConfig": { + "additionalProperties": false, + "properties": { + "ConflictDetection": { + "type": "string" + }, + "ConflictHandler": { + "type": "string" + }, + "LambdaConflictHandlerConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.LambdaConflictHandlerConfig" + } + }, + "required": [ + "ConflictDetection" + ], + "type": "object" + }, "AWS::ApplicationAutoScaling::ScalableTarget": { "additionalProperties": false, "properties": { @@ -10002,6 +10383,68 @@ ], "type": "object" }, + "AWS::CloudWatch::InsightRule": { + "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": { + "RuleBody": { + "type": "string" + }, + "RuleName": { + "type": "string" + }, + "RuleState": { + "type": "string" + } + }, + "required": [ + "RuleBody", + "RuleName", + "RuleState" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CloudWatch::InsightRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::CodeBuild::Project": { "additionalProperties": false, "properties": { @@ -11185,6 +11628,12 @@ "Settings": { "$ref": "#/definitions/AWS::CodePipeline::CustomActionType.Settings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Version": { "type": "string" } @@ -11339,6 +11788,12 @@ "$ref": "#/definitions/AWS::CodePipeline::Pipeline.StageDeclaration" }, "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11378,6 +11833,9 @@ "Name": { "type": "string" }, + "Namespace": { + "type": "string" + }, "OutputArtifacts": { "items": { "$ref": "#/definitions/AWS::CodePipeline::Pipeline.OutputArtifact" @@ -11771,6 +12229,100 @@ ], "type": "object" }, + "AWS::CodeStarNotifications::NotificationRule": { + "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": { + "DetailType": { + "type": "string" + }, + "EventTypeIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "Resource": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "Targets": { + "items": { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule.Target" + }, + "type": "array" + } + }, + "required": [ + "DetailType", + "EventTypeIds", + "Name", + "Resource", + "Targets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeStarNotifications::NotificationRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeStarNotifications::NotificationRule.Target": { + "additionalProperties": false, + "properties": { + "TargetAddress": { + "type": "string" + }, + "TargetType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Cognito::IdentityPool": { "additionalProperties": false, "properties": { @@ -11803,6 +12355,9 @@ "Properties": { "additionalProperties": false, "properties": { + "AllowClassicFlow": { + "type": "boolean" + }, "AllowUnauthenticatedIdentities": { "type": "boolean" }, @@ -12178,9 +12733,15 @@ "AWS::Cognito::UserPool.EmailConfiguration": { "additionalProperties": false, "properties": { + "ConfigurationSet": { + "type": "string" + }, "EmailSendingAccount": { "type": "string" }, + "From": { + "type": "string" + }, "ReplyToEmailAddress": { "type": "string" }, @@ -12447,6 +13008,9 @@ }, "type": "array" }, + "PreventUserExistenceErrors": { + "type": "string" + }, "ReadAttributes": { "items": { "type": "string" @@ -13101,6 +13665,9 @@ "Properties": { "additionalProperties": false, "properties": { + "ClientMetadata": { + "type": "object" + }, "DesiredDeliveryMediums": { "items": { "type": "string" @@ -14263,6 +14830,24 @@ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.FastRestoreRule": { + "additionalProperties": false, + "properties": { + "AvailabilityZones": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Count": { + "type": "number" + } + }, + "required": [ + "Count" + ], + "type": "object" + }, "AWS::DLM::LifecyclePolicy.Parameters": { "additionalProperties": false, "properties": { @@ -14323,6 +14908,9 @@ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "FastRestoreRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" + }, "Name": { "type": "string" }, @@ -15437,6 +16025,10 @@ "type": "array" } }, + "required": [ + "MasterUserPassword", + "MasterUsername" + ], "type": "object" }, "Type": { @@ -15447,7 +16039,8 @@ } }, "required": [ - "Type" + "Type", + "Properties" ], "type": "object" }, @@ -16803,6 +17396,12 @@ }, "PublicIpv4Pool": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -17364,6 +17963,9 @@ "AWS::EC2::Instance.ElasticInferenceAccelerator": { "additionalProperties": false, "properties": { + "Count": { + "type": "number" + }, "Type": { "type": "string" } @@ -18213,7 +18815,6 @@ } }, "required": [ - "CidrBlock", "NetworkAclId", "Protocol", "RuleAction", @@ -21556,6 +22157,12 @@ "ClusterName": { "type": "string" }, + "ClusterSettings": { + "items": { + "$ref": "#/definitions/AWS::ECS::Cluster.ClusterSetting" + }, + "type": "array" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -21577,7 +22184,85 @@ ], "type": "object" }, - "AWS::ECS::Service": { + "AWS::ECS::Cluster.ClusterSetting": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Name", + "Value" + ], + "type": "object" + }, + "AWS::ECS::PrimaryTaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "Service": { + "type": "string" + }, + "TaskSetId": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskSetId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::PrimaryTaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::Service": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -21615,6 +22300,9 @@ "DeploymentConfiguration": { "$ref": "#/definitions/AWS::ECS::Service.DeploymentConfiguration" }, + "DeploymentController": { + "$ref": "#/definitions/AWS::ECS::Service.DeploymentController" + }, "DesiredCount": { "type": "number" }, @@ -21679,9 +22367,6 @@ "type": "string" } }, - "required": [ - "TaskDefinition" - ], "type": "object" }, "Type": { @@ -21692,8 +22377,7 @@ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" }, @@ -21733,6 +22417,15 @@ }, "type": "object" }, + "AWS::ECS::Service.DeploymentController": { + "additionalProperties": false, + "properties": { + "Type": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::Service.LoadBalancer": { "additionalProperties": false, "properties": { @@ -21858,6 +22551,12 @@ "Family": { "type": "string" }, + "InferenceAccelerators": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.InferenceAccelerator" + }, + "type": "array" + }, "IpcMode": { "type": "string" }, @@ -21984,6 +22683,9 @@ }, "type": "array" }, + "FirelensConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.FirelensConfiguration" + }, "HealthCheck": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.HealthCheck" }, @@ -22156,6 +22858,27 @@ }, "type": "object" }, + "AWS::ECS::TaskDefinition.FirelensConfiguration": { + "additionalProperties": false, + "properties": { + "Options": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::ECS::TaskDefinition.HealthCheck": { "additionalProperties": false, "properties": { @@ -22208,6 +22931,21 @@ }, "type": "object" }, + "AWS::ECS::TaskDefinition.InferenceAccelerator": { + "additionalProperties": false, + "properties": { + "DeviceName": { + "type": "string" + }, + "DevicePolicy": { + "type": "string" + }, + "DeviceType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::TaskDefinition.KernelCapabilities": { "additionalProperties": false, "properties": { @@ -22253,9 +22991,15 @@ "InitProcessEnabled": { "type": "boolean" }, + "MaxSwap": { + "type": "number" + }, "SharedMemorySize": { "type": "number" }, + "Swappiness": { + "type": "number" + }, "Tmpfs": { "items": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.Tmpfs" @@ -22483,6 +23227,176 @@ }, "type": "object" }, + "AWS::ECS::TaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "ExternalId": { + "type": "string" + }, + "LaunchType": { + "type": "string" + }, + "LoadBalancers": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.LoadBalancer" + }, + "type": "array" + }, + "NetworkConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.NetworkConfiguration" + }, + "PlatformVersion": { + "type": "string" + }, + "Scale": { + "$ref": "#/definitions/AWS::ECS::TaskSet.Scale" + }, + "Service": { + "type": "string" + }, + "ServiceRegistries": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.ServiceRegistry" + }, + "type": "array" + }, + "TaskDefinition": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskDefinition" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::TaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.AwsVpcConfiguration": { + "additionalProperties": false, + "properties": { + "AssignPublicIp": { + "type": "string" + }, + "SecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Subnets" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.LoadBalancer": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "LoadBalancerName": { + "type": "string" + }, + "TargetGroupArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.NetworkConfiguration": { + "additionalProperties": false, + "properties": { + "AwsVpcConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.AwsVpcConfiguration" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.Scale": { + "additionalProperties": false, + "properties": { + "Unit": { + "type": "string" + }, + "Value": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.ServiceRegistry": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "Port": { + "type": "number" + }, + "RegistryArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::EFS::FileSystem": { "additionalProperties": false, "properties": { @@ -22738,6 +23652,140 @@ ], "type": "object" }, + "AWS::EKS::Nodegroup": { + "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": { + "AmiType": { + "type": "string" + }, + "ClusterName": { + "type": "string" + }, + "DiskSize": { + "type": "number" + }, + "ForceUpdateEnabled": { + "type": "boolean" + }, + "InstanceTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Labels": { + "type": "object" + }, + "NodeRole": { + "type": "string" + }, + "NodegroupName": { + "type": "string" + }, + "ReleaseVersion": { + "type": "string" + }, + "RemoteAccess": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.RemoteAccess" + }, + "ScalingConfig": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.ScalingConfig" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Tags": { + "type": "object" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "ClusterName", + "NodeRole", + "Subnets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EKS::Nodegroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.RemoteAccess": { + "additionalProperties": false, + "properties": { + "Ec2SshKey": { + "type": "string" + }, + "SourceSecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Ec2SshKey" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.ScalingConfig": { + "additionalProperties": false, + "properties": { + "DesiredSize": { + "type": "number" + }, + "MaxSize": { + "type": "number" + }, + "MinSize": { + "type": "number" + } + }, + "type": "object" + }, "AWS::EMR::Cluster": { "additionalProperties": false, "properties": { @@ -26414,6 +27462,9 @@ }, "type": "object" }, + "CognitoOptions": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.CognitoOptions" + }, "DomainName": { "type": "string" }, @@ -26429,6 +27480,15 @@ "EncryptionAtRestOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.EncryptionAtRestOptions" }, + "LogPublishingOptions": { + "additionalProperties": false, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.LogPublishingOption" + } + }, + "type": "object" + }, "NodeToNodeEncryptionOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions" }, @@ -26459,6 +27519,24 @@ ], "type": "object" }, + "AWS::Elasticsearch::Domain.CognitoOptions": { + "additionalProperties": false, + "properties": { + "Enabled": { + "type": "boolean" + }, + "IdentityPoolId": { + "type": "string" + }, + "RoleArn": { + "type": "string" + }, + "UserPoolId": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.EBSOptions": { "additionalProperties": false, "properties": { @@ -26516,6 +27594,18 @@ }, "type": "object" }, + "AWS::Elasticsearch::Domain.LogPublishingOption": { + "additionalProperties": false, + "properties": { + "CloudWatchLogsLogGroupArn": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions": { "additionalProperties": false, "properties": { @@ -26736,6 +27826,9 @@ "Description": { "type": "string" }, + "EventBusName": { + "type": "string" + }, "EventPattern": { "type": "object" }, @@ -26796,6 +27889,46 @@ ], "type": "object" }, + "AWS::Events::Rule.BatchArrayProperties": { + "additionalProperties": false, + "properties": { + "Size": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::Events::Rule.BatchParameters": { + "additionalProperties": false, + "properties": { + "ArrayProperties": { + "$ref": "#/definitions/AWS::Events::Rule.BatchArrayProperties" + }, + "JobDefinition": { + "type": "string" + }, + "JobName": { + "type": "string" + }, + "RetryStrategy": { + "$ref": "#/definitions/AWS::Events::Rule.BatchRetryStrategy" + } + }, + "required": [ + "JobDefinition", + "JobName" + ], + "type": "object" + }, + "AWS::Events::Rule.BatchRetryStrategy": { + "additionalProperties": false, + "properties": { + "Attempts": { + "type": "number" + } + }, + "type": "object" + }, "AWS::Events::Rule.EcsParameters": { "additionalProperties": false, "properties": { @@ -26917,6 +28050,9 @@ "Arn": { "type": "string" }, + "BatchParameters": { + "$ref": "#/definitions/AWS::Events::Rule.BatchParameters" + }, "EcsParameters": { "$ref": "#/definitions/AWS::Events::Rule.EcsParameters" }, @@ -27225,6 +28361,9 @@ "Name": { "type": "string" }, + "OperatingSystem": { + "type": "string" + }, "StorageLocation": { "$ref": "#/definitions/AWS::GameLift::Build.S3Location" }, @@ -27255,6 +28394,9 @@ "Key": { "type": "string" }, + "ObjectVersion": { + "type": "string" + }, "RoleArn": { "type": "string" } @@ -27301,6 +28443,9 @@ "BuildId": { "type": "string" }, + "CertificateConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.CertificateConfiguration" + }, "Description": { "type": "string" }, @@ -27316,6 +28461,12 @@ "EC2InstanceType": { "type": "string" }, + "FleetType": { + "type": "string" + }, + "InstanceRoleARN": { + "type": "string" + }, "LogPaths": { "items": { "type": "string" @@ -27325,12 +28476,36 @@ "MaxSize": { "type": "number" }, + "MetricGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, "MinSize": { "type": "number" }, "Name": { "type": "string" }, + "NewGameSessionProtectionPolicy": { + "type": "string" + }, + "PeerVpcAwsAccountId": { + "type": "string" + }, + "PeerVpcId": { + "type": "string" + }, + "ResourceCreationLimitPolicy": { + "$ref": "#/definitions/AWS::GameLift::Fleet.ResourceCreationLimitPolicy" + }, + "RuntimeConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.RuntimeConfiguration" + }, + "ScriptId": { + "type": "string" + }, "ServerLaunchParameters": { "type": "string" }, @@ -27339,11 +28514,8 @@ } }, "required": [ - "BuildId", - "DesiredEC2Instances", "EC2InstanceType", - "Name", - "ServerLaunchPath" + "Name" ], "type": "object" }, @@ -27360,6 +28532,18 @@ ], "type": "object" }, + "AWS::GameLift::Fleet.CertificateConfiguration": { + "additionalProperties": false, + "properties": { + "CertificateType": { + "type": "string" + } + }, + "required": [ + "CertificateType" + ], + "type": "object" + }, "AWS::GameLift::Fleet.IpPermission": { "additionalProperties": false, "properties": { @@ -27384,152 +28568,548 @@ ], "type": "object" }, - "AWS::Glue::Classifier": { + "AWS::GameLift::Fleet.ResourceCreationLimitPolicy": { "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": { - "CsvClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" - }, - "GrokClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" - }, - "JsonClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" - }, - "XMLClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" - } - }, - "type": "object" + "NewGameSessionsPerCreator": { + "type": "number" }, - "Type": { - "enum": [ - "AWS::Glue::Classifier" - ], - "type": "string" + "PolicyPeriodInMinutes": { + "type": "number" } }, - "required": [ - "Type" - ], "type": "object" }, - "AWS::Glue::Classifier.CsvClassifier": { + "AWS::GameLift::Fleet.RuntimeConfiguration": { "additionalProperties": false, "properties": { - "AllowSingleColumn": { - "type": "boolean" - }, - "ContainsHeader": { - "type": "string" - }, - "Delimiter": { - "type": "string" + "GameSessionActivationTimeoutSeconds": { + "type": "number" }, - "DisableValueTrimming": { - "type": "boolean" + "MaxConcurrentGameSessionActivations": { + "type": "number" }, - "Header": { + "ServerProcesses": { "items": { - "type": "string" + "$ref": "#/definitions/AWS::GameLift::Fleet.ServerProcess" }, "type": "array" - }, - "Name": { - "type": "string" - }, - "QuoteSymbol": { - "type": "string" } }, "type": "object" }, - "AWS::Glue::Classifier.GrokClassifier": { + "AWS::GameLift::Fleet.ServerProcess": { "additionalProperties": false, "properties": { - "Classification": { - "type": "string" - }, - "CustomPatterns": { - "type": "string" - }, - "GrokPattern": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "Classification", - "GrokPattern" - ], - "type": "object" - }, - "AWS::Glue::Classifier.JsonClassifier": { - "additionalProperties": false, - "properties": { - "JsonPath": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "JsonPath" - ], - "type": "object" - }, - "AWS::Glue::Classifier.XMLClassifier": { - "additionalProperties": false, - "properties": { - "Classification": { - "type": "string" + "ConcurrentExecutions": { + "type": "number" }, - "Name": { + "LaunchPath": { "type": "string" }, - "RowTag": { + "Parameters": { "type": "string" } }, "required": [ - "Classification", - "RowTag" + "ConcurrentExecutions", + "LaunchPath" ], "type": "object" }, - "AWS::Glue::Connection": { + "AWS::GameLift::GameSessionQueue": { + "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": { + "Destinations": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.Destination" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "PlayerLatencyPolicies": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy" + }, + "type": "array" + }, + "TimeoutInSeconds": { + "type": "number" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::GameSessionQueue" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.Destination": { + "additionalProperties": false, + "properties": { + "DestinationArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy": { + "additionalProperties": false, + "properties": { + "MaximumIndividualPlayerLatencyMilliseconds": { + "type": "number" + }, + "PolicyDurationSeconds": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration": { + "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": { + "AcceptanceRequired": { + "type": "boolean" + }, + "AcceptanceTimeoutSeconds": { + "type": "number" + }, + "AdditionalPlayerCount": { + "type": "number" + }, + "BackfillMode": { + "type": "string" + }, + "CustomEventData": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "GameProperties": { + "items": { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration.GameProperty" + }, + "type": "array" + }, + "GameSessionData": { + "type": "string" + }, + "GameSessionQueueArns": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "NotificationTarget": { + "type": "string" + }, + "RequestTimeoutSeconds": { + "type": "number" + }, + "RuleSetName": { + "type": "string" + } + }, + "required": [ + "AcceptanceRequired", + "GameSessionQueueArns", + "Name", + "RequestTimeoutSeconds", + "RuleSetName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingConfiguration" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration.GameProperty": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Key", + "Value" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingRuleSet": { + "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": { + "Name": { + "type": "string" + }, + "RuleSetBody": { + "type": "string" + } + }, + "required": [ + "Name", + "RuleSetBody" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingRuleSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script": { + "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": { + "Name": { + "type": "string" + }, + "StorageLocation": { + "$ref": "#/definitions/AWS::GameLift::Script.S3Location" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "StorageLocation" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::Script" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script.S3Location": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "Key": { + "type": "string" + }, + "ObjectVersion": { + "type": "string" + }, + "RoleArn": { + "type": "string" + } + }, + "required": [ + "Bucket", + "Key", + "RoleArn" + ], + "type": "object" + }, + "AWS::Glue::Classifier": { + "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": { + "CsvClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" + }, + "GrokClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" + }, + "JsonClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" + }, + "XMLClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Glue::Classifier" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, + "AWS::Glue::Classifier.CsvClassifier": { + "additionalProperties": false, + "properties": { + "AllowSingleColumn": { + "type": "boolean" + }, + "ContainsHeader": { + "type": "string" + }, + "Delimiter": { + "type": "string" + }, + "DisableValueTrimming": { + "type": "boolean" + }, + "Header": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "QuoteSymbol": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Glue::Classifier.GrokClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "CustomPatterns": { + "type": "string" + }, + "GrokPattern": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Classification", + "GrokPattern" + ], + "type": "object" + }, + "AWS::Glue::Classifier.JsonClassifier": { + "additionalProperties": false, + "properties": { + "JsonPath": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "JsonPath" + ], + "type": "object" + }, + "AWS::Glue::Classifier.XMLClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "RowTag": { + "type": "string" + } + }, + "required": [ + "Classification", + "RowTag" + ], + "type": "object" + }, + "AWS::Glue::Connection": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -27709,7 +29289,6 @@ } }, "required": [ - "DatabaseName", "Role", "Targets" ], @@ -27728,6 +29307,30 @@ ], "type": "object" }, + "AWS::Glue::Crawler.CatalogTarget": { + "additionalProperties": false, + "properties": { + "DatabaseName": { + "type": "string" + }, + "Tables": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::Glue::Crawler.DynamoDBTarget": { + "additionalProperties": false, + "properties": { + "Path": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Glue::Crawler.JdbcTarget": { "additionalProperties": false, "properties": { @@ -27785,6 +29388,18 @@ "AWS::Glue::Crawler.Targets": { "additionalProperties": false, "properties": { + "CatalogTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.CatalogTarget" + }, + "type": "array" + }, + "DynamoDBTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.DynamoDBTarget" + }, + "type": "array" + }, "JdbcTargets": { "items": { "$ref": "#/definitions/AWS::Glue::Crawler.JdbcTarget" @@ -28252,6 +29867,9 @@ "Description": { "type": "string" }, + "GlueVersion": { + "type": "string" + }, "InputRecordTables": { "$ref": "#/definitions/AWS::Glue::MLTransform.InputRecordTables" }, @@ -32018,6 +33636,12 @@ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "UserName": { "type": "string" } @@ -37279,7 +38903,7 @@ ], "type": "object" }, - "AWS::Lambda::EventSourceMapping": { + "AWS::Lambda::EventInvokeConfig": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -37311,142 +38935,31 @@ "Properties": { "additionalProperties": false, "properties": { - "BatchSize": { - "type": "number" - }, - "Enabled": { - "type": "boolean" - }, - "EventSourceArn": { - "type": "string" + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.DestinationConfig" }, "FunctionName": { "type": "string" }, - "MaximumBatchingWindowInSeconds": { + "MaximumEventAgeInSeconds": { "type": "number" }, - "StartingPosition": { - "type": "string" - } - }, - "required": [ - "EventSourceArn", - "FunctionName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::EventSourceMapping" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::Lambda::Function": { - "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": { - "Code": { - "$ref": "#/definitions/AWS::Lambda::Function.Code" - }, - "DeadLetterConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" - }, - "Description": { - "type": "string" - }, - "Environment": { - "$ref": "#/definitions/AWS::Lambda::Function.Environment" - }, - "FunctionName": { - "type": "string" - }, - "Handler": { - "type": "string" - }, - "KmsKeyArn": { - "type": "string" - }, - "Layers": { - "items": { - "type": "string" - }, - "type": "array" - }, - "MemorySize": { - "type": "number" - }, - "ReservedConcurrentExecutions": { + "MaximumRetryAttempts": { "type": "number" }, - "Role": { + "Qualifier": { "type": "string" - }, - "Runtime": { - "type": "string" - }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - }, - "Timeout": { - "type": "number" - }, - "TracingConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" - }, - "VpcConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" } }, "required": [ - "Code", - "Handler", - "Role", - "Runtime" + "FunctionName", + "Qualifier" ], "type": "object" }, "Type": { "enum": [ - "AWS::Lambda::Function" + "AWS::Lambda::EventInvokeConfig" ], "type": "string" } @@ -37457,168 +38970,421 @@ ], "type": "object" }, - "AWS::Lambda::Function.Code": { + "AWS::Lambda::EventInvokeConfig.DestinationConfig": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnFailure" }, - "S3ObjectVersion": { - "type": "string" - }, - "ZipFile": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.DeadLetterConfig": { - "additionalProperties": false, - "properties": { - "TargetArn": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.Environment": { - "additionalProperties": false, - "properties": { - "Variables": { - "additionalProperties": true, - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "type": "string" - } - }, - "type": "object" + "OnSuccess": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnSuccess" } }, "type": "object" }, - "AWS::Lambda::Function.TracingConfig": { + "AWS::Lambda::EventInvokeConfig.OnFailure": { "additionalProperties": false, "properties": { - "Mode": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.VpcConfig": { - "additionalProperties": false, - "properties": { - "SecurityGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "SubnetIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "SecurityGroupIds", - "SubnetIds" - ], - "type": "object" - }, - "AWS::Lambda::LayerVersion": { - "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": { - "CompatibleRuntimes": { - "items": { - "type": "string" - }, - "type": "array" - }, - "Content": { - "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" - }, - "Description": { - "type": "string" - }, - "LayerName": { - "type": "string" - }, - "LicenseInfo": { - "type": "string" - } - }, - "required": [ - "Content" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::LayerVersion" - ], + "Destination": { "type": "string" } }, "required": [ - "Type", - "Properties" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersion.Content": { + "AWS::Lambda::EventInvokeConfig.OnSuccess": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" - }, - "S3ObjectVersion": { + "Destination": { "type": "string" } }, "required": [ - "S3Bucket", - "S3Key" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersionPermission": { + "AWS::Lambda::EventSourceMapping": { + "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": { + "BatchSize": { + "type": "number" + }, + "BisectBatchOnFunctionError": { + "type": "boolean" + }, + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.DestinationConfig" + }, + "Enabled": { + "type": "boolean" + }, + "EventSourceArn": { + "type": "string" + }, + "FunctionName": { + "type": "string" + }, + "MaximumBatchingWindowInSeconds": { + "type": "number" + }, + "MaximumRecordAgeInSeconds": { + "type": "number" + }, + "MaximumRetryAttempts": { + "type": "number" + }, + "ParallelizationFactor": { + "type": "number" + }, + "StartingPosition": { + "type": "string" + } + }, + "required": [ + "EventSourceArn", + "FunctionName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::EventSourceMapping" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.DestinationConfig": { + "additionalProperties": false, + "properties": { + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.OnFailure" + } + }, + "required": [ + "OnFailure" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.OnFailure": { + "additionalProperties": false, + "properties": { + "Destination": { + "type": "string" + } + }, + "required": [ + "Destination" + ], + "type": "object" + }, + "AWS::Lambda::Function": { + "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": { + "Code": { + "$ref": "#/definitions/AWS::Lambda::Function.Code" + }, + "DeadLetterConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" + }, + "Description": { + "type": "string" + }, + "Environment": { + "$ref": "#/definitions/AWS::Lambda::Function.Environment" + }, + "FunctionName": { + "type": "string" + }, + "Handler": { + "type": "string" + }, + "KmsKeyArn": { + "type": "string" + }, + "Layers": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MemorySize": { + "type": "number" + }, + "ReservedConcurrentExecutions": { + "type": "number" + }, + "Role": { + "type": "string" + }, + "Runtime": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "Timeout": { + "type": "number" + }, + "TracingConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" + }, + "VpcConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" + } + }, + "required": [ + "Code", + "Handler", + "Role", + "Runtime" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::Function" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::Function.Code": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + }, + "ZipFile": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.DeadLetterConfig": { + "additionalProperties": false, + "properties": { + "TargetArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.Environment": { + "additionalProperties": false, + "properties": { + "Variables": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.TracingConfig": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.VpcConfig": { + "additionalProperties": false, + "properties": { + "SecurityGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SubnetIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "SecurityGroupIds", + "SubnetIds" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion": { + "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": { + "CompatibleRuntimes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Content": { + "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" + }, + "Description": { + "type": "string" + }, + "LayerName": { + "type": "string" + }, + "LicenseInfo": { + "type": "string" + } + }, + "required": [ + "Content" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::LayerVersion" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion.Content": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + } + }, + "required": [ + "S3Bucket", + "S3Key" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersionPermission": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -38605,6 +40371,224 @@ ], "type": "object" }, + "AWS::MediaConvert::JobTemplate": { + "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": { + "AccelerationSettings": { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate.AccelerationSettings" + }, + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Queue": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "StatusUpdateInterval": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::JobTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::JobTemplate.AccelerationSettings": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "required": [ + "Mode" + ], + "type": "object" + }, + "AWS::MediaConvert::Preset": { + "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": { + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Preset" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::Queue": { + "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": { + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "PricingPlan": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Queue" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::MediaLive::Channel": { "additionalProperties": false, "properties": { @@ -40853,6 +42837,15 @@ "BackupRetentionCount": { "type": "number" }, + "CustomCertificate": { + "type": "string" + }, + "CustomDomain": { + "type": "string" + }, + "CustomPrivateKey": { + "type": "string" + }, "DisableAutomatedBackup": { "type": "boolean" }, @@ -41993,6 +43986,73 @@ ], "type": "object" }, + "AWS::Pinpoint::EmailTemplate": { + "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": { + "HtmlPart": { + "type": "string" + }, + "Subject": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + }, + "TextPart": { + "type": "string" + } + }, + "required": [ + "Subject", + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::EmailTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::Pinpoint::EventStream": { "additionalProperties": false, "properties": { @@ -42116,6 +44176,153 @@ ], "type": "object" }, + "AWS::Pinpoint::PushTemplate": { + "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": { + "ADM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "APNS": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate" + }, + "Baidu": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Default": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" + }, + "GCM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + } + }, + "required": [ + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::PushTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "MediaUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "ImageIconUrl": { + "type": "string" + }, + "ImageUrl": { + "type": "string" + }, + "SmallImageIconUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Pinpoint::SMSChannel": { "additionalProperties": false, "properties": { @@ -42447,7 +44654,7 @@ ], "type": "object" }, - "AWS::Pinpoint::VoiceChannel": { + "AWS::Pinpoint::SmsTemplate": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -42479,93 +44686,25 @@ "Properties": { "additionalProperties": false, "properties": { - "ApplicationId": { - "type": "string" - }, - "Enabled": { - "type": "boolean" - } - }, - "required": [ - "ApplicationId" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Pinpoint::VoiceChannel" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet": { - "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": { - "DeliveryOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" - }, - "Name": { + "Body": { "type": "string" }, - "ReputationOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" - }, - "SendingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" - }, "Tags": { - "items": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" - }, - "type": "array" + "type": "object" }, - "TrackingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + "TemplateName": { + "type": "string" } }, "required": [ - "Name" + "Body", + "TemplateName" ], "type": "object" }, "Type": { "enum": [ - "AWS::PinpointEmail::ConfigurationSet" + "AWS::Pinpoint::SmsTemplate" ], "type": "string" } @@ -42576,55 +44715,184 @@ ], "type": "object" }, - "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { - "additionalProperties": false, - "properties": { - "SendingPoolName": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { - "additionalProperties": false, - "properties": { - "ReputationMetricsEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { - "additionalProperties": false, - "properties": { - "SendingEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.Tags": { - "additionalProperties": false, - "properties": { - "Key": { - "type": "string" - }, - "Value": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { - "additionalProperties": false, - "properties": { - "CustomRedirectDomain": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSetEventDestination": { + "AWS::Pinpoint::VoiceChannel": { + "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": { + "ApplicationId": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "required": [ + "ApplicationId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::VoiceChannel" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet": { + "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": { + "DeliveryOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" + }, + "Name": { + "type": "string" + }, + "ReputationOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" + }, + "SendingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" + }, + "Tags": { + "items": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" + }, + "type": "array" + }, + "TrackingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::PinpointEmail::ConfigurationSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { + "additionalProperties": false, + "properties": { + "SendingPoolName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { + "additionalProperties": false, + "properties": { + "ReputationMetricsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { + "additionalProperties": false, + "properties": { + "SendingEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.Tags": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { + "additionalProperties": false, + "properties": { + "CustomRedirectDomain": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSetEventDestination": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -43157,6 +45425,9 @@ }, "type": "array" }, + "EnableHttpEndpoint": { + "type": "boolean" + }, "EnableIAMDatabaseAuthentication": { "type": "boolean" }, @@ -43250,9 +45521,6 @@ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -43573,9 +45841,6 @@ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -47496,6 +49761,9 @@ "RawMessageDelivery": { "type": "boolean" }, + "RedrivePolicy": { + "type": "object" + }, "Region": { "type": "string" }, @@ -47566,6 +49834,12 @@ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "TopicName": { "type": "string" } @@ -48878,74 +51152,14 @@ "EndpointName": { "type": "string" }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - } - }, - "required": [ - "EndpointConfigName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::SageMaker::Endpoint" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::SageMaker::EndpointConfig": { - "additionalProperties": false, - "properties": { - "DeletionPolicy": { - "enum": [ - "Delete", - "Retain", - "Snapshot" - ], - "type": "string" - }, - "DependsOn": { - "anyOf": [ - { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" - }, - { + "ExcludeRetainedVariantProperties": { "items": { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" + "$ref": "#/definitions/AWS::SageMaker::Endpoint.VariantProperty" }, "type": "array" - } - ] - }, - "Metadata": { - "type": "object" - }, - "Properties": { - "additionalProperties": false, - "properties": { - "EndpointConfigName": { - "type": "string" - }, - "KmsKeyId": { - "type": "string" }, - "ProductionVariants": { - "items": { - "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" - }, - "type": "array" + "RetainAllVariantProperties": { + "type": "boolean" }, "Tags": { "items": { @@ -48955,13 +51169,13 @@ } }, "required": [ - "ProductionVariants" + "EndpointConfigName" ], "type": "object" }, "Type": { "enum": [ - "AWS::SageMaker::EndpointConfig" + "AWS::SageMaker::Endpoint" ], "type": "string" } @@ -48972,38 +51186,116 @@ ], "type": "object" }, - "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "AWS::SageMaker::Endpoint.VariantProperty": { "additionalProperties": false, "properties": { - "AcceleratorType": { - "type": "string" - }, - "InitialInstanceCount": { - "type": "number" - }, - "InitialVariantWeight": { - "type": "number" - }, - "InstanceType": { - "type": "string" - }, - "ModelName": { - "type": "string" - }, - "VariantName": { + "VariantPropertyType": { "type": "string" } }, - "required": [ - "InitialInstanceCount", - "InitialVariantWeight", - "InstanceType", - "ModelName", - "VariantName" - ], "type": "object" }, - "AWS::SageMaker::Model": { + "AWS::SageMaker::EndpointConfig": { + "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": { + "EndpointConfigName": { + "type": "string" + }, + "KmsKeyId": { + "type": "string" + }, + "ProductionVariants": { + "items": { + "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" + }, + "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "required": [ + "ProductionVariants" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::SageMaker::EndpointConfig" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "additionalProperties": false, + "properties": { + "AcceleratorType": { + "type": "string" + }, + "InitialInstanceCount": { + "type": "number" + }, + "InitialVariantWeight": { + "type": "number" + }, + "InstanceType": { + "type": "string" + }, + "ModelName": { + "type": "string" + }, + "VariantName": { + "type": "string" + } + }, + "required": [ + "InitialInstanceCount", + "InitialVariantWeight", + "InstanceType", + "ModelName", + "VariantName" + ], + "type": "object" + }, + "AWS::SageMaker::Model": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -53076,7 +55368,7 @@ ], "type": "object" }, - "AWS::WorkSpaces::Workspace": { + "AWS::WAFv2::IPSet": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -53108,44 +55400,233 @@ "Properties": { "additionalProperties": false, "properties": { - "BundleId": { + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { "type": "string" }, - "DirectoryId": { + "IPAddressVersion": { "type": "string" }, - "RootVolumeEncryptionEnabled": { - "type": "boolean" + "IPSet": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSet" + }, + "IPSetSummary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "IPSets": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSets" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" }, "Tags": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.TagList" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::IPSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::IPSet.IPAddresses": { + "additionalProperties": false, + "properties": { + "IPAddresses": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSet": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { + "type": "string" + }, + "IPAddressVersion": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSets": { + "additionalProperties": false, + "properties": { + "IPSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { "items": { - "$ref": "#/definitions/Tag" + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" }, "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "Description": { + "type": "string" }, - "UserName": { + "Id": { "type": "string" }, - "UserVolumeEncryptionEnabled": { - "type": "boolean" + "Limit": { + "type": "number" }, - "VolumeEncryptionKey": { + "LockToken": { "type": "string" }, - "WorkspaceProperties": { - "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RegexPatternSet": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSet" + }, + "RegexPatternSets": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSets" + }, + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.TagList" } }, "required": [ - "BundleId", - "DirectoryId", - "UserName" + "Name", + "Scope" ], "type": "object" }, "Type": { "enum": [ - "AWS::WorkSpaces::Workspace" + "AWS::WAFv2::RegexPatternSet" ], "type": "string" } @@ -53156,28 +55637,1626 @@ ], "type": "object" }, - "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "AWS::WAFv2::RegexPatternSet.Regex": { "additionalProperties": false, "properties": { - "ComputeTypeName": { + "RegexString": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSet": { + "additionalProperties": false, + "properties": { + "ARN": { "type": "string" }, - "RootVolumeSizeGib": { - "type": "number" + "Description": { + "type": "string" }, - "RunningMode": { + "Id": { "type": "string" }, - "RunningModeAutoStopTimeoutInMinutes": { - "type": "number" + "Name": { + "type": "string" }, - "UserVolumeSizeGib": { - "type": "number" + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" } }, "type": "object" }, - "Alexa::ASK::Skill": { + "AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSets": { + "additionalProperties": false, + "properties": { + "RegexPatternSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegularExpressionList": { + "additionalProperties": false, + "properties": { + "RegularExpressionList": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.Regex" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup": { + "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": { + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RuleGroup": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroup" + }, + "RuleGroupSummary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "RuleGroups": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroups" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "Scope": { + "type": "string" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::RuleGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleAction" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroup": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroupSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroups": { + "additionalProperties": false, + "properties": { + "RuleGroups": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL": { + "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": { + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + }, + "WebACL": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACL" + }, + "WebACLs": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLs" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::WebACL" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::WebACL.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.DefaultAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRule": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRules": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ManagedRuleGroupStatement": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + }, + "Name": { + "type": "string" + }, + "VendorName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NoneAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OverrideAction": { + "additionalProperties": false, + "properties": { + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + }, + "None": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NoneAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleAction" + }, + "Name": { + "type": "string" + }, + "OverrideAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OverrideAction" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleGroupReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACL": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLs": { + "additionalProperties": false, + "properties": { + "WebACLs": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WorkSpaces::Workspace": { + "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": { + "BundleId": { + "type": "string" + }, + "DirectoryId": { + "type": "string" + }, + "RootVolumeEncryptionEnabled": { + "type": "boolean" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "UserName": { + "type": "string" + }, + "UserVolumeEncryptionEnabled": { + "type": "boolean" + }, + "VolumeEncryptionKey": { + "type": "string" + }, + "WorkspaceProperties": { + "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + } + }, + "required": [ + "BundleId", + "DirectoryId", + "UserName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WorkSpaces::Workspace" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "additionalProperties": false, + "properties": { + "ComputeTypeName": { + "type": "string" + }, + "RootVolumeSizeGib": { + "type": "number" + }, + "RunningMode": { + "type": "string" + }, + "RunningModeAutoStopTimeoutInMinutes": { + "type": "number" + }, + "UserVolumeSizeGib": { + "type": "number" + } + }, + "type": "object" + }, + "Alexa::ASK::Skill": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -53606,6 +57685,9 @@ { "$ref": "#/definitions/AWS::AppStream::User" }, + { + "$ref": "#/definitions/AWS::AppSync::ApiCache" + }, { "$ref": "#/definitions/AWS::AppSync::ApiKey" }, @@ -53714,6 +57796,9 @@ { "$ref": "#/definitions/AWS::CloudWatch::Dashboard" }, + { + "$ref": "#/definitions/AWS::CloudWatch::InsightRule" + }, { "$ref": "#/definitions/AWS::CodeBuild::Project" }, @@ -53744,6 +57829,9 @@ { "$ref": "#/definitions/AWS::CodeStar::GitHubRepository" }, + { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule" + }, { "$ref": "#/definitions/AWS::Cognito::IdentityPool" }, @@ -54035,12 +58123,18 @@ { "$ref": "#/definitions/AWS::ECS::Cluster" }, + { + "$ref": "#/definitions/AWS::ECS::PrimaryTaskSet" + }, { "$ref": "#/definitions/AWS::ECS::Service" }, { "$ref": "#/definitions/AWS::ECS::TaskDefinition" }, + { + "$ref": "#/definitions/AWS::ECS::TaskSet" + }, { "$ref": "#/definitions/AWS::EFS::FileSystem" }, @@ -54050,6 +58144,9 @@ { "$ref": "#/definitions/AWS::EKS::Cluster" }, + { + "$ref": "#/definitions/AWS::EKS::Nodegroup" + }, { "$ref": "#/definitions/AWS::EMR::Cluster" }, @@ -54137,6 +58234,18 @@ { "$ref": "#/definitions/AWS::GameLift::Fleet" }, + { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingRuleSet" + }, + { + "$ref": "#/definitions/AWS::GameLift::Script" + }, { "$ref": "#/definitions/AWS::Glue::Classifier" }, @@ -54374,6 +58483,9 @@ { "$ref": "#/definitions/AWS::Lambda::Alias" }, + { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig" + }, { "$ref": "#/definitions/AWS::Lambda::EventSourceMapping" }, @@ -54416,6 +58528,15 @@ { "$ref": "#/definitions/AWS::ManagedBlockchain::Node" }, + { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Preset" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Queue" + }, { "$ref": "#/definitions/AWS::MediaLive::Channel" }, @@ -54497,18 +58618,27 @@ { "$ref": "#/definitions/AWS::Pinpoint::EmailChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::EmailTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::EventStream" }, { "$ref": "#/definitions/AWS::Pinpoint::GCMChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::SMSChannel" }, { "$ref": "#/definitions/AWS::Pinpoint::Segment" }, + { + "$ref": "#/definitions/AWS::Pinpoint::SmsTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::VoiceChannel" }, @@ -54836,6 +58966,18 @@ { "$ref": "#/definitions/AWS::WAFRegional::XssMatchSet" }, + { + "$ref": "#/definitions/AWS::WAFv2::IPSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup" + }, + { + "$ref": "#/definitions/AWS::WAFv2::WebACL" + }, { "$ref": "#/definitions/AWS::WorkSpaces::Workspace" }, diff --git a/schema/sam.go b/schema/sam.go index bb8af0135a..679b0a74d5 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -76,6 +76,9 @@ var SamSchema = `{ }, "type": "array" }, + "StorageType": { + "type": "string" + }, "SubnetIds": { "items": { "type": "string" @@ -506,12 +509,18 @@ var SamSchema = `{ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::App.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" } @@ -621,12 +630,18 @@ var SamSchema = `{ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::Branch.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" }, @@ -875,6 +890,12 @@ var SamSchema = `{ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Value": { "type": "string" } @@ -1087,6 +1108,12 @@ var SamSchema = `{ "properties": { "Description": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -1521,6 +1548,15 @@ var SamSchema = `{ }, "RegionalCertificateArn": { "type": "string" + }, + "SecurityPolicy": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -2141,6 +2177,12 @@ var SamSchema = `{ }, "Policy": { "type": "object" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -2165,6 +2207,12 @@ var SamSchema = `{ "type": "string" }, "type": "array" + }, + "VpcEndpointIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -2408,6 +2456,12 @@ var SamSchema = `{ "Quota": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.QuotaSettings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Throttle": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.ThrottleSettings" }, @@ -3672,6 +3726,131 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::AppMesh::Route.GrpcRetryPolicy": { + "additionalProperties": false, + "properties": { + "GrpcRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "HttpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MaxRetries": { + "type": "number" + }, + "PerRetryTimeout": { + "$ref": "#/definitions/AWS::AppMesh::Route.Duration" + }, + "TcpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "MaxRetries", + "PerRetryTimeout" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRoute": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteAction" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMatch" + }, + "RetryPolicy": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRetryPolicy" + } + }, + "required": [ + "Action", + "Match" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteAction": { + "additionalProperties": false, + "properties": { + "WeightedTargets": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.WeightedTarget" + }, + "type": "array" + } + }, + "required": [ + "WeightedTargets" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMatch": { + "additionalProperties": false, + "properties": { + "Metadata": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadata" + }, + "type": "array" + }, + "MethodName": { + "type": "string" + }, + "ServiceName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadata": { + "additionalProperties": false, + "properties": { + "Invert": { + "type": "boolean" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod": { + "additionalProperties": false, + "properties": { + "Exact": { + "type": "string" + }, + "Prefix": { + "type": "string" + }, + "Range": { + "$ref": "#/definitions/AWS::AppMesh::Route.MatchRange" + }, + "Regex": { + "type": "string" + }, + "Suffix": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppMesh::Route.HeaderMatchMethod": { "additionalProperties": false, "properties": { @@ -3816,6 +3995,12 @@ var SamSchema = `{ "AWS::AppMesh::Route.RouteSpec": { "additionalProperties": false, "properties": { + "GrpcRoute": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRoute" + }, + "Http2Route": { + "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" + }, "HttpRoute": { "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" }, @@ -4620,6 +4805,12 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::ImageBuilder.AccessEndpoint" + }, + "type": "array" + }, "AppstreamAgentVersion": { "type": "string" }, @@ -4675,6 +4866,22 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::AppStream::ImageBuilder.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::ImageBuilder.DomainJoinInfo": { "additionalProperties": false, "properties": { @@ -4737,6 +4944,12 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::Stack.AccessEndpoint" + }, + "type": "array" + }, "ApplicationSettings": { "$ref": "#/definitions/AWS::AppStream::Stack.ApplicationSettings" }, @@ -4755,6 +4968,12 @@ var SamSchema = `{ "DisplayName": { "type": "string" }, + "EmbedHostDomains": { + "items": { + "type": "string" + }, + "type": "array" + }, "FeedbackURL": { "type": "string" }, @@ -4797,6 +5016,22 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::AppStream::Stack.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::Stack.ApplicationSettings": { "additionalProperties": false, "properties": { @@ -5039,6 +5274,78 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::AppSync::ApiCache": { + "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": { + "ApiCachingBehavior": { + "type": "string" + }, + "ApiId": { + "type": "string" + }, + "AtRestEncryptionEnabled": { + "type": "boolean" + }, + "TransitEncryptionEnabled": { + "type": "boolean" + }, + "Ttl": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ApiCachingBehavior", + "ApiId", + "Ttl", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::AppSync::ApiCache" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::AppSync::ApiKey": { "additionalProperties": false, "properties": { @@ -5209,17 +5516,43 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::AppSync::DataSource.DeltaSyncConfig": { + "additionalProperties": false, + "properties": { + "BaseTableTTL": { + "type": "string" + }, + "DeltaSyncTableName": { + "type": "string" + }, + "DeltaSyncTableTTL": { + "type": "string" + } + }, + "required": [ + "BaseTableTTL", + "DeltaSyncTableName", + "DeltaSyncTableTTL" + ], + "type": "object" + }, "AWS::AppSync::DataSource.DynamoDBConfig": { "additionalProperties": false, "properties": { "AwsRegion": { "type": "string" }, + "DeltaSyncConfig": { + "$ref": "#/definitions/AWS::AppSync::DataSource.DeltaSyncConfig" + }, "TableName": { "type": "string" }, "UseCallerCredentials": { "type": "boolean" + }, + "Versioned": { + "type": "boolean" } }, "required": [ @@ -5655,6 +5988,9 @@ var SamSchema = `{ "ApiId": { "type": "string" }, + "CachingConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.CachingConfig" + }, "DataSourceName": { "type": "string" }, @@ -5679,6 +6015,9 @@ var SamSchema = `{ "ResponseMappingTemplateS3Location": { "type": "string" }, + "SyncConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.SyncConfig" + }, "TypeName": { "type": "string" } @@ -5703,6 +6042,30 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::AppSync::Resolver.CachingConfig": { + "additionalProperties": false, + "properties": { + "CachingKeys": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Ttl": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::AppSync::Resolver.LambdaConflictHandlerConfig": { + "additionalProperties": false, + "properties": { + "LambdaConflictHandlerArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppSync::Resolver.PipelineConfig": { "additionalProperties": false, "properties": { @@ -5715,6 +6078,24 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::AppSync::Resolver.SyncConfig": { + "additionalProperties": false, + "properties": { + "ConflictDetection": { + "type": "string" + }, + "ConflictHandler": { + "type": "string" + }, + "LambdaConflictHandlerConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.LambdaConflictHandlerConfig" + } + }, + "required": [ + "ConflictDetection" + ], + "type": "object" + }, "AWS::ApplicationAutoScaling::ScalableTarget": { "additionalProperties": false, "properties": { @@ -10005,6 +10386,68 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::CloudWatch::InsightRule": { + "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": { + "RuleBody": { + "type": "string" + }, + "RuleName": { + "type": "string" + }, + "RuleState": { + "type": "string" + } + }, + "required": [ + "RuleBody", + "RuleName", + "RuleState" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CloudWatch::InsightRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::CodeBuild::Project": { "additionalProperties": false, "properties": { @@ -11188,6 +11631,12 @@ var SamSchema = `{ "Settings": { "$ref": "#/definitions/AWS::CodePipeline::CustomActionType.Settings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Version": { "type": "string" } @@ -11342,6 +11791,12 @@ var SamSchema = `{ "$ref": "#/definitions/AWS::CodePipeline::Pipeline.StageDeclaration" }, "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11381,6 +11836,9 @@ var SamSchema = `{ "Name": { "type": "string" }, + "Namespace": { + "type": "string" + }, "OutputArtifacts": { "items": { "$ref": "#/definitions/AWS::CodePipeline::Pipeline.OutputArtifact" @@ -11774,6 +12232,100 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::CodeStarNotifications::NotificationRule": { + "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": { + "DetailType": { + "type": "string" + }, + "EventTypeIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "Resource": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "Targets": { + "items": { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule.Target" + }, + "type": "array" + } + }, + "required": [ + "DetailType", + "EventTypeIds", + "Name", + "Resource", + "Targets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeStarNotifications::NotificationRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeStarNotifications::NotificationRule.Target": { + "additionalProperties": false, + "properties": { + "TargetAddress": { + "type": "string" + }, + "TargetType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Cognito::IdentityPool": { "additionalProperties": false, "properties": { @@ -11806,6 +12358,9 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "AllowClassicFlow": { + "type": "boolean" + }, "AllowUnauthenticatedIdentities": { "type": "boolean" }, @@ -12181,9 +12736,15 @@ var SamSchema = `{ "AWS::Cognito::UserPool.EmailConfiguration": { "additionalProperties": false, "properties": { + "ConfigurationSet": { + "type": "string" + }, "EmailSendingAccount": { "type": "string" }, + "From": { + "type": "string" + }, "ReplyToEmailAddress": { "type": "string" }, @@ -12450,6 +13011,9 @@ var SamSchema = `{ }, "type": "array" }, + "PreventUserExistenceErrors": { + "type": "string" + }, "ReadAttributes": { "items": { "type": "string" @@ -13104,6 +13668,9 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "ClientMetadata": { + "type": "object" + }, "DesiredDeliveryMediums": { "items": { "type": "string" @@ -14266,6 +14833,24 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.FastRestoreRule": { + "additionalProperties": false, + "properties": { + "AvailabilityZones": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Count": { + "type": "number" + } + }, + "required": [ + "Count" + ], + "type": "object" + }, "AWS::DLM::LifecyclePolicy.Parameters": { "additionalProperties": false, "properties": { @@ -14326,6 +14911,9 @@ var SamSchema = `{ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "FastRestoreRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" + }, "Name": { "type": "string" }, @@ -15440,6 +16028,10 @@ var SamSchema = `{ "type": "array" } }, + "required": [ + "MasterUserPassword", + "MasterUsername" + ], "type": "object" }, "Type": { @@ -15450,7 +16042,8 @@ var SamSchema = `{ } }, "required": [ - "Type" + "Type", + "Properties" ], "type": "object" }, @@ -16806,6 +17399,12 @@ var SamSchema = `{ }, "PublicIpv4Pool": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -17367,6 +17966,9 @@ var SamSchema = `{ "AWS::EC2::Instance.ElasticInferenceAccelerator": { "additionalProperties": false, "properties": { + "Count": { + "type": "number" + }, "Type": { "type": "string" } @@ -18216,7 +18818,6 @@ var SamSchema = `{ } }, "required": [ - "CidrBlock", "NetworkAclId", "Protocol", "RuleAction", @@ -21559,6 +22160,12 @@ var SamSchema = `{ "ClusterName": { "type": "string" }, + "ClusterSettings": { + "items": { + "$ref": "#/definitions/AWS::ECS::Cluster.ClusterSetting" + }, + "type": "array" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -21580,7 +22187,85 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::ECS::Service": { + "AWS::ECS::Cluster.ClusterSetting": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Name", + "Value" + ], + "type": "object" + }, + "AWS::ECS::PrimaryTaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "Service": { + "type": "string" + }, + "TaskSetId": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskSetId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::PrimaryTaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::Service": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -21618,6 +22303,9 @@ var SamSchema = `{ "DeploymentConfiguration": { "$ref": "#/definitions/AWS::ECS::Service.DeploymentConfiguration" }, + "DeploymentController": { + "$ref": "#/definitions/AWS::ECS::Service.DeploymentController" + }, "DesiredCount": { "type": "number" }, @@ -21682,9 +22370,6 @@ var SamSchema = `{ "type": "string" } }, - "required": [ - "TaskDefinition" - ], "type": "object" }, "Type": { @@ -21695,8 +22380,7 @@ var SamSchema = `{ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" }, @@ -21736,6 +22420,15 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::ECS::Service.DeploymentController": { + "additionalProperties": false, + "properties": { + "Type": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::Service.LoadBalancer": { "additionalProperties": false, "properties": { @@ -21861,6 +22554,12 @@ var SamSchema = `{ "Family": { "type": "string" }, + "InferenceAccelerators": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.InferenceAccelerator" + }, + "type": "array" + }, "IpcMode": { "type": "string" }, @@ -21987,6 +22686,9 @@ var SamSchema = `{ }, "type": "array" }, + "FirelensConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.FirelensConfiguration" + }, "HealthCheck": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.HealthCheck" }, @@ -22159,6 +22861,27 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::ECS::TaskDefinition.FirelensConfiguration": { + "additionalProperties": false, + "properties": { + "Options": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::ECS::TaskDefinition.HealthCheck": { "additionalProperties": false, "properties": { @@ -22211,6 +22934,21 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::ECS::TaskDefinition.InferenceAccelerator": { + "additionalProperties": false, + "properties": { + "DeviceName": { + "type": "string" + }, + "DevicePolicy": { + "type": "string" + }, + "DeviceType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::TaskDefinition.KernelCapabilities": { "additionalProperties": false, "properties": { @@ -22256,9 +22994,15 @@ var SamSchema = `{ "InitProcessEnabled": { "type": "boolean" }, + "MaxSwap": { + "type": "number" + }, "SharedMemorySize": { "type": "number" }, + "Swappiness": { + "type": "number" + }, "Tmpfs": { "items": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.Tmpfs" @@ -22486,6 +23230,176 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::ECS::TaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "ExternalId": { + "type": "string" + }, + "LaunchType": { + "type": "string" + }, + "LoadBalancers": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.LoadBalancer" + }, + "type": "array" + }, + "NetworkConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.NetworkConfiguration" + }, + "PlatformVersion": { + "type": "string" + }, + "Scale": { + "$ref": "#/definitions/AWS::ECS::TaskSet.Scale" + }, + "Service": { + "type": "string" + }, + "ServiceRegistries": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.ServiceRegistry" + }, + "type": "array" + }, + "TaskDefinition": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskDefinition" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::TaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.AwsVpcConfiguration": { + "additionalProperties": false, + "properties": { + "AssignPublicIp": { + "type": "string" + }, + "SecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Subnets" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.LoadBalancer": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "LoadBalancerName": { + "type": "string" + }, + "TargetGroupArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.NetworkConfiguration": { + "additionalProperties": false, + "properties": { + "AwsVpcConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.AwsVpcConfiguration" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.Scale": { + "additionalProperties": false, + "properties": { + "Unit": { + "type": "string" + }, + "Value": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.ServiceRegistry": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "Port": { + "type": "number" + }, + "RegistryArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::EFS::FileSystem": { "additionalProperties": false, "properties": { @@ -22741,6 +23655,140 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::EKS::Nodegroup": { + "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": { + "AmiType": { + "type": "string" + }, + "ClusterName": { + "type": "string" + }, + "DiskSize": { + "type": "number" + }, + "ForceUpdateEnabled": { + "type": "boolean" + }, + "InstanceTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Labels": { + "type": "object" + }, + "NodeRole": { + "type": "string" + }, + "NodegroupName": { + "type": "string" + }, + "ReleaseVersion": { + "type": "string" + }, + "RemoteAccess": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.RemoteAccess" + }, + "ScalingConfig": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.ScalingConfig" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Tags": { + "type": "object" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "ClusterName", + "NodeRole", + "Subnets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EKS::Nodegroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.RemoteAccess": { + "additionalProperties": false, + "properties": { + "Ec2SshKey": { + "type": "string" + }, + "SourceSecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Ec2SshKey" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.ScalingConfig": { + "additionalProperties": false, + "properties": { + "DesiredSize": { + "type": "number" + }, + "MaxSize": { + "type": "number" + }, + "MinSize": { + "type": "number" + } + }, + "type": "object" + }, "AWS::EMR::Cluster": { "additionalProperties": false, "properties": { @@ -26417,6 +27465,9 @@ var SamSchema = `{ }, "type": "object" }, + "CognitoOptions": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.CognitoOptions" + }, "DomainName": { "type": "string" }, @@ -26432,6 +27483,15 @@ var SamSchema = `{ "EncryptionAtRestOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.EncryptionAtRestOptions" }, + "LogPublishingOptions": { + "additionalProperties": false, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.LogPublishingOption" + } + }, + "type": "object" + }, "NodeToNodeEncryptionOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions" }, @@ -26462,6 +27522,24 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::Elasticsearch::Domain.CognitoOptions": { + "additionalProperties": false, + "properties": { + "Enabled": { + "type": "boolean" + }, + "IdentityPoolId": { + "type": "string" + }, + "RoleArn": { + "type": "string" + }, + "UserPoolId": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.EBSOptions": { "additionalProperties": false, "properties": { @@ -26519,6 +27597,18 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::Elasticsearch::Domain.LogPublishingOption": { + "additionalProperties": false, + "properties": { + "CloudWatchLogsLogGroupArn": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions": { "additionalProperties": false, "properties": { @@ -26739,6 +27829,9 @@ var SamSchema = `{ "Description": { "type": "string" }, + "EventBusName": { + "type": "string" + }, "EventPattern": { "type": "object" }, @@ -26799,6 +27892,46 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::Events::Rule.BatchArrayProperties": { + "additionalProperties": false, + "properties": { + "Size": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::Events::Rule.BatchParameters": { + "additionalProperties": false, + "properties": { + "ArrayProperties": { + "$ref": "#/definitions/AWS::Events::Rule.BatchArrayProperties" + }, + "JobDefinition": { + "type": "string" + }, + "JobName": { + "type": "string" + }, + "RetryStrategy": { + "$ref": "#/definitions/AWS::Events::Rule.BatchRetryStrategy" + } + }, + "required": [ + "JobDefinition", + "JobName" + ], + "type": "object" + }, + "AWS::Events::Rule.BatchRetryStrategy": { + "additionalProperties": false, + "properties": { + "Attempts": { + "type": "number" + } + }, + "type": "object" + }, "AWS::Events::Rule.EcsParameters": { "additionalProperties": false, "properties": { @@ -26920,6 +28053,9 @@ var SamSchema = `{ "Arn": { "type": "string" }, + "BatchParameters": { + "$ref": "#/definitions/AWS::Events::Rule.BatchParameters" + }, "EcsParameters": { "$ref": "#/definitions/AWS::Events::Rule.EcsParameters" }, @@ -27228,6 +28364,9 @@ var SamSchema = `{ "Name": { "type": "string" }, + "OperatingSystem": { + "type": "string" + }, "StorageLocation": { "$ref": "#/definitions/AWS::GameLift::Build.S3Location" }, @@ -27258,6 +28397,9 @@ var SamSchema = `{ "Key": { "type": "string" }, + "ObjectVersion": { + "type": "string" + }, "RoleArn": { "type": "string" } @@ -27304,6 +28446,9 @@ var SamSchema = `{ "BuildId": { "type": "string" }, + "CertificateConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.CertificateConfiguration" + }, "Description": { "type": "string" }, @@ -27319,6 +28464,12 @@ var SamSchema = `{ "EC2InstanceType": { "type": "string" }, + "FleetType": { + "type": "string" + }, + "InstanceRoleARN": { + "type": "string" + }, "LogPaths": { "items": { "type": "string" @@ -27328,12 +28479,36 @@ var SamSchema = `{ "MaxSize": { "type": "number" }, + "MetricGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, "MinSize": { "type": "number" }, "Name": { "type": "string" }, + "NewGameSessionProtectionPolicy": { + "type": "string" + }, + "PeerVpcAwsAccountId": { + "type": "string" + }, + "PeerVpcId": { + "type": "string" + }, + "ResourceCreationLimitPolicy": { + "$ref": "#/definitions/AWS::GameLift::Fleet.ResourceCreationLimitPolicy" + }, + "RuntimeConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.RuntimeConfiguration" + }, + "ScriptId": { + "type": "string" + }, "ServerLaunchParameters": { "type": "string" }, @@ -27342,11 +28517,8 @@ var SamSchema = `{ } }, "required": [ - "BuildId", - "DesiredEC2Instances", "EC2InstanceType", - "Name", - "ServerLaunchPath" + "Name" ], "type": "object" }, @@ -27363,6 +28535,18 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::GameLift::Fleet.CertificateConfiguration": { + "additionalProperties": false, + "properties": { + "CertificateType": { + "type": "string" + } + }, + "required": [ + "CertificateType" + ], + "type": "object" + }, "AWS::GameLift::Fleet.IpPermission": { "additionalProperties": false, "properties": { @@ -27387,152 +28571,548 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::Glue::Classifier": { + "AWS::GameLift::Fleet.ResourceCreationLimitPolicy": { "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": { - "CsvClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" - }, - "GrokClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" - }, - "JsonClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" - }, - "XMLClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" - } - }, - "type": "object" + "NewGameSessionsPerCreator": { + "type": "number" }, - "Type": { - "enum": [ - "AWS::Glue::Classifier" - ], - "type": "string" + "PolicyPeriodInMinutes": { + "type": "number" } }, - "required": [ - "Type" - ], "type": "object" }, - "AWS::Glue::Classifier.CsvClassifier": { + "AWS::GameLift::Fleet.RuntimeConfiguration": { "additionalProperties": false, "properties": { - "AllowSingleColumn": { - "type": "boolean" - }, - "ContainsHeader": { - "type": "string" - }, - "Delimiter": { - "type": "string" + "GameSessionActivationTimeoutSeconds": { + "type": "number" }, - "DisableValueTrimming": { - "type": "boolean" + "MaxConcurrentGameSessionActivations": { + "type": "number" }, - "Header": { + "ServerProcesses": { "items": { - "type": "string" + "$ref": "#/definitions/AWS::GameLift::Fleet.ServerProcess" }, "type": "array" - }, - "Name": { - "type": "string" - }, - "QuoteSymbol": { - "type": "string" } }, "type": "object" }, - "AWS::Glue::Classifier.GrokClassifier": { + "AWS::GameLift::Fleet.ServerProcess": { "additionalProperties": false, "properties": { - "Classification": { - "type": "string" - }, - "CustomPatterns": { - "type": "string" - }, - "GrokPattern": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "Classification", - "GrokPattern" - ], - "type": "object" - }, - "AWS::Glue::Classifier.JsonClassifier": { - "additionalProperties": false, - "properties": { - "JsonPath": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "JsonPath" - ], - "type": "object" - }, - "AWS::Glue::Classifier.XMLClassifier": { - "additionalProperties": false, - "properties": { - "Classification": { - "type": "string" + "ConcurrentExecutions": { + "type": "number" }, - "Name": { + "LaunchPath": { "type": "string" }, - "RowTag": { + "Parameters": { "type": "string" } }, "required": [ - "Classification", - "RowTag" + "ConcurrentExecutions", + "LaunchPath" ], "type": "object" }, - "AWS::Glue::Connection": { + "AWS::GameLift::GameSessionQueue": { + "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": { + "Destinations": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.Destination" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "PlayerLatencyPolicies": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy" + }, + "type": "array" + }, + "TimeoutInSeconds": { + "type": "number" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::GameSessionQueue" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.Destination": { + "additionalProperties": false, + "properties": { + "DestinationArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy": { + "additionalProperties": false, + "properties": { + "MaximumIndividualPlayerLatencyMilliseconds": { + "type": "number" + }, + "PolicyDurationSeconds": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration": { + "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": { + "AcceptanceRequired": { + "type": "boolean" + }, + "AcceptanceTimeoutSeconds": { + "type": "number" + }, + "AdditionalPlayerCount": { + "type": "number" + }, + "BackfillMode": { + "type": "string" + }, + "CustomEventData": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "GameProperties": { + "items": { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration.GameProperty" + }, + "type": "array" + }, + "GameSessionData": { + "type": "string" + }, + "GameSessionQueueArns": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "NotificationTarget": { + "type": "string" + }, + "RequestTimeoutSeconds": { + "type": "number" + }, + "RuleSetName": { + "type": "string" + } + }, + "required": [ + "AcceptanceRequired", + "GameSessionQueueArns", + "Name", + "RequestTimeoutSeconds", + "RuleSetName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingConfiguration" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration.GameProperty": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Key", + "Value" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingRuleSet": { + "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": { + "Name": { + "type": "string" + }, + "RuleSetBody": { + "type": "string" + } + }, + "required": [ + "Name", + "RuleSetBody" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingRuleSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script": { + "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": { + "Name": { + "type": "string" + }, + "StorageLocation": { + "$ref": "#/definitions/AWS::GameLift::Script.S3Location" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "StorageLocation" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::Script" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script.S3Location": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "Key": { + "type": "string" + }, + "ObjectVersion": { + "type": "string" + }, + "RoleArn": { + "type": "string" + } + }, + "required": [ + "Bucket", + "Key", + "RoleArn" + ], + "type": "object" + }, + "AWS::Glue::Classifier": { + "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": { + "CsvClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" + }, + "GrokClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" + }, + "JsonClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" + }, + "XMLClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Glue::Classifier" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, + "AWS::Glue::Classifier.CsvClassifier": { + "additionalProperties": false, + "properties": { + "AllowSingleColumn": { + "type": "boolean" + }, + "ContainsHeader": { + "type": "string" + }, + "Delimiter": { + "type": "string" + }, + "DisableValueTrimming": { + "type": "boolean" + }, + "Header": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "QuoteSymbol": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Glue::Classifier.GrokClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "CustomPatterns": { + "type": "string" + }, + "GrokPattern": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Classification", + "GrokPattern" + ], + "type": "object" + }, + "AWS::Glue::Classifier.JsonClassifier": { + "additionalProperties": false, + "properties": { + "JsonPath": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "JsonPath" + ], + "type": "object" + }, + "AWS::Glue::Classifier.XMLClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "RowTag": { + "type": "string" + } + }, + "required": [ + "Classification", + "RowTag" + ], + "type": "object" + }, + "AWS::Glue::Connection": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -27712,7 +29292,6 @@ var SamSchema = `{ } }, "required": [ - "DatabaseName", "Role", "Targets" ], @@ -27731,6 +29310,30 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::Glue::Crawler.CatalogTarget": { + "additionalProperties": false, + "properties": { + "DatabaseName": { + "type": "string" + }, + "Tables": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::Glue::Crawler.DynamoDBTarget": { + "additionalProperties": false, + "properties": { + "Path": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Glue::Crawler.JdbcTarget": { "additionalProperties": false, "properties": { @@ -27788,6 +29391,18 @@ var SamSchema = `{ "AWS::Glue::Crawler.Targets": { "additionalProperties": false, "properties": { + "CatalogTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.CatalogTarget" + }, + "type": "array" + }, + "DynamoDBTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.DynamoDBTarget" + }, + "type": "array" + }, "JdbcTargets": { "items": { "$ref": "#/definitions/AWS::Glue::Crawler.JdbcTarget" @@ -28255,6 +29870,9 @@ var SamSchema = `{ "Description": { "type": "string" }, + "GlueVersion": { + "type": "string" + }, "InputRecordTables": { "$ref": "#/definitions/AWS::Glue::MLTransform.InputRecordTables" }, @@ -32021,6 +33639,12 @@ var SamSchema = `{ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "UserName": { "type": "string" } @@ -37282,7 +38906,7 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::Lambda::EventSourceMapping": { + "AWS::Lambda::EventInvokeConfig": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -37314,142 +38938,31 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { - "BatchSize": { - "type": "number" - }, - "Enabled": { - "type": "boolean" - }, - "EventSourceArn": { - "type": "string" + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.DestinationConfig" }, "FunctionName": { "type": "string" }, - "MaximumBatchingWindowInSeconds": { + "MaximumEventAgeInSeconds": { "type": "number" }, - "StartingPosition": { - "type": "string" - } - }, - "required": [ - "EventSourceArn", - "FunctionName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::EventSourceMapping" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::Lambda::Function": { - "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": { - "Code": { - "$ref": "#/definitions/AWS::Lambda::Function.Code" - }, - "DeadLetterConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" - }, - "Description": { - "type": "string" - }, - "Environment": { - "$ref": "#/definitions/AWS::Lambda::Function.Environment" - }, - "FunctionName": { - "type": "string" - }, - "Handler": { - "type": "string" - }, - "KmsKeyArn": { - "type": "string" - }, - "Layers": { - "items": { - "type": "string" - }, - "type": "array" - }, - "MemorySize": { - "type": "number" - }, - "ReservedConcurrentExecutions": { + "MaximumRetryAttempts": { "type": "number" }, - "Role": { + "Qualifier": { "type": "string" - }, - "Runtime": { - "type": "string" - }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - }, - "Timeout": { - "type": "number" - }, - "TracingConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" - }, - "VpcConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" } }, "required": [ - "Code", - "Handler", - "Role", - "Runtime" + "FunctionName", + "Qualifier" ], "type": "object" }, "Type": { "enum": [ - "AWS::Lambda::Function" + "AWS::Lambda::EventInvokeConfig" ], "type": "string" } @@ -37460,168 +38973,421 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::Lambda::Function.Code": { + "AWS::Lambda::EventInvokeConfig.DestinationConfig": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnFailure" }, - "S3ObjectVersion": { - "type": "string" - }, - "ZipFile": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.DeadLetterConfig": { - "additionalProperties": false, - "properties": { - "TargetArn": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.Environment": { - "additionalProperties": false, - "properties": { - "Variables": { - "additionalProperties": true, - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "type": "string" - } - }, - "type": "object" + "OnSuccess": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnSuccess" } }, "type": "object" }, - "AWS::Lambda::Function.TracingConfig": { + "AWS::Lambda::EventInvokeConfig.OnFailure": { "additionalProperties": false, "properties": { - "Mode": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.VpcConfig": { - "additionalProperties": false, - "properties": { - "SecurityGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "SubnetIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "SecurityGroupIds", - "SubnetIds" - ], - "type": "object" - }, - "AWS::Lambda::LayerVersion": { - "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": { - "CompatibleRuntimes": { - "items": { - "type": "string" - }, - "type": "array" - }, - "Content": { - "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" - }, - "Description": { - "type": "string" - }, - "LayerName": { - "type": "string" - }, - "LicenseInfo": { - "type": "string" - } - }, - "required": [ - "Content" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::LayerVersion" - ], + "Destination": { "type": "string" } }, "required": [ - "Type", - "Properties" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersion.Content": { + "AWS::Lambda::EventInvokeConfig.OnSuccess": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" - }, - "S3ObjectVersion": { + "Destination": { "type": "string" } }, "required": [ - "S3Bucket", - "S3Key" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersionPermission": { + "AWS::Lambda::EventSourceMapping": { + "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": { + "BatchSize": { + "type": "number" + }, + "BisectBatchOnFunctionError": { + "type": "boolean" + }, + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.DestinationConfig" + }, + "Enabled": { + "type": "boolean" + }, + "EventSourceArn": { + "type": "string" + }, + "FunctionName": { + "type": "string" + }, + "MaximumBatchingWindowInSeconds": { + "type": "number" + }, + "MaximumRecordAgeInSeconds": { + "type": "number" + }, + "MaximumRetryAttempts": { + "type": "number" + }, + "ParallelizationFactor": { + "type": "number" + }, + "StartingPosition": { + "type": "string" + } + }, + "required": [ + "EventSourceArn", + "FunctionName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::EventSourceMapping" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.DestinationConfig": { + "additionalProperties": false, + "properties": { + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.OnFailure" + } + }, + "required": [ + "OnFailure" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.OnFailure": { + "additionalProperties": false, + "properties": { + "Destination": { + "type": "string" + } + }, + "required": [ + "Destination" + ], + "type": "object" + }, + "AWS::Lambda::Function": { + "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": { + "Code": { + "$ref": "#/definitions/AWS::Lambda::Function.Code" + }, + "DeadLetterConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" + }, + "Description": { + "type": "string" + }, + "Environment": { + "$ref": "#/definitions/AWS::Lambda::Function.Environment" + }, + "FunctionName": { + "type": "string" + }, + "Handler": { + "type": "string" + }, + "KmsKeyArn": { + "type": "string" + }, + "Layers": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MemorySize": { + "type": "number" + }, + "ReservedConcurrentExecutions": { + "type": "number" + }, + "Role": { + "type": "string" + }, + "Runtime": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "Timeout": { + "type": "number" + }, + "TracingConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" + }, + "VpcConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" + } + }, + "required": [ + "Code", + "Handler", + "Role", + "Runtime" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::Function" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::Function.Code": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + }, + "ZipFile": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.DeadLetterConfig": { + "additionalProperties": false, + "properties": { + "TargetArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.Environment": { + "additionalProperties": false, + "properties": { + "Variables": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.TracingConfig": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.VpcConfig": { + "additionalProperties": false, + "properties": { + "SecurityGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SubnetIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "SecurityGroupIds", + "SubnetIds" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion": { + "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": { + "CompatibleRuntimes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Content": { + "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" + }, + "Description": { + "type": "string" + }, + "LayerName": { + "type": "string" + }, + "LicenseInfo": { + "type": "string" + } + }, + "required": [ + "Content" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::LayerVersion" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion.Content": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + } + }, + "required": [ + "S3Bucket", + "S3Key" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersionPermission": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -38608,6 +40374,224 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::MediaConvert::JobTemplate": { + "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": { + "AccelerationSettings": { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate.AccelerationSettings" + }, + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Queue": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "StatusUpdateInterval": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::JobTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::JobTemplate.AccelerationSettings": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "required": [ + "Mode" + ], + "type": "object" + }, + "AWS::MediaConvert::Preset": { + "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": { + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Preset" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::Queue": { + "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": { + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "PricingPlan": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Queue" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::MediaLive::Channel": { "additionalProperties": false, "properties": { @@ -40856,6 +42840,15 @@ var SamSchema = `{ "BackupRetentionCount": { "type": "number" }, + "CustomCertificate": { + "type": "string" + }, + "CustomDomain": { + "type": "string" + }, + "CustomPrivateKey": { + "type": "string" + }, "DisableAutomatedBackup": { "type": "boolean" }, @@ -41996,6 +43989,73 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::Pinpoint::EmailTemplate": { + "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": { + "HtmlPart": { + "type": "string" + }, + "Subject": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + }, + "TextPart": { + "type": "string" + } + }, + "required": [ + "Subject", + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::EmailTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::Pinpoint::EventStream": { "additionalProperties": false, "properties": { @@ -42119,6 +44179,153 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::Pinpoint::PushTemplate": { + "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": { + "ADM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "APNS": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate" + }, + "Baidu": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Default": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" + }, + "GCM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + } + }, + "required": [ + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::PushTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "MediaUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "ImageIconUrl": { + "type": "string" + }, + "ImageUrl": { + "type": "string" + }, + "SmallImageIconUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Pinpoint::SMSChannel": { "additionalProperties": false, "properties": { @@ -42450,7 +44657,7 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::Pinpoint::VoiceChannel": { + "AWS::Pinpoint::SmsTemplate": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -42482,93 +44689,25 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { - "ApplicationId": { - "type": "string" - }, - "Enabled": { - "type": "boolean" - } - }, - "required": [ - "ApplicationId" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Pinpoint::VoiceChannel" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet": { - "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": { - "DeliveryOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" - }, - "Name": { + "Body": { "type": "string" }, - "ReputationOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" - }, - "SendingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" - }, "Tags": { - "items": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" - }, - "type": "array" + "type": "object" }, - "TrackingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + "TemplateName": { + "type": "string" } }, "required": [ - "Name" + "Body", + "TemplateName" ], "type": "object" }, "Type": { "enum": [ - "AWS::PinpointEmail::ConfigurationSet" + "AWS::Pinpoint::SmsTemplate" ], "type": "string" } @@ -42579,55 +44718,184 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { - "additionalProperties": false, - "properties": { - "SendingPoolName": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { - "additionalProperties": false, - "properties": { - "ReputationMetricsEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { - "additionalProperties": false, - "properties": { - "SendingEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.Tags": { - "additionalProperties": false, - "properties": { - "Key": { - "type": "string" - }, - "Value": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { - "additionalProperties": false, - "properties": { - "CustomRedirectDomain": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSetEventDestination": { + "AWS::Pinpoint::VoiceChannel": { + "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": { + "ApplicationId": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "required": [ + "ApplicationId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::VoiceChannel" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet": { + "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": { + "DeliveryOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" + }, + "Name": { + "type": "string" + }, + "ReputationOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" + }, + "SendingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" + }, + "Tags": { + "items": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" + }, + "type": "array" + }, + "TrackingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::PinpointEmail::ConfigurationSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { + "additionalProperties": false, + "properties": { + "SendingPoolName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { + "additionalProperties": false, + "properties": { + "ReputationMetricsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { + "additionalProperties": false, + "properties": { + "SendingEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.Tags": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { + "additionalProperties": false, + "properties": { + "CustomRedirectDomain": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSetEventDestination": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -43160,6 +45428,9 @@ var SamSchema = `{ }, "type": "array" }, + "EnableHttpEndpoint": { + "type": "boolean" + }, "EnableIAMDatabaseAuthentication": { "type": "boolean" }, @@ -43253,9 +45524,6 @@ var SamSchema = `{ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -43576,9 +45844,6 @@ var SamSchema = `{ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -47499,6 +49764,9 @@ var SamSchema = `{ "RawMessageDelivery": { "type": "boolean" }, + "RedrivePolicy": { + "type": "object" + }, "Region": { "type": "string" }, @@ -47569,6 +49837,12 @@ var SamSchema = `{ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "TopicName": { "type": "string" } @@ -48881,74 +51155,14 @@ var SamSchema = `{ "EndpointName": { "type": "string" }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - } - }, - "required": [ - "EndpointConfigName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::SageMaker::Endpoint" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::SageMaker::EndpointConfig": { - "additionalProperties": false, - "properties": { - "DeletionPolicy": { - "enum": [ - "Delete", - "Retain", - "Snapshot" - ], - "type": "string" - }, - "DependsOn": { - "anyOf": [ - { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" - }, - { + "ExcludeRetainedVariantProperties": { "items": { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" + "$ref": "#/definitions/AWS::SageMaker::Endpoint.VariantProperty" }, "type": "array" - } - ] - }, - "Metadata": { - "type": "object" - }, - "Properties": { - "additionalProperties": false, - "properties": { - "EndpointConfigName": { - "type": "string" - }, - "KmsKeyId": { - "type": "string" }, - "ProductionVariants": { - "items": { - "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" - }, - "type": "array" + "RetainAllVariantProperties": { + "type": "boolean" }, "Tags": { "items": { @@ -48958,13 +51172,13 @@ var SamSchema = `{ } }, "required": [ - "ProductionVariants" + "EndpointConfigName" ], "type": "object" }, "Type": { "enum": [ - "AWS::SageMaker::EndpointConfig" + "AWS::SageMaker::Endpoint" ], "type": "string" } @@ -48975,38 +51189,116 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "AWS::SageMaker::Endpoint.VariantProperty": { "additionalProperties": false, "properties": { - "AcceleratorType": { - "type": "string" - }, - "InitialInstanceCount": { - "type": "number" - }, - "InitialVariantWeight": { - "type": "number" - }, - "InstanceType": { - "type": "string" - }, - "ModelName": { - "type": "string" - }, - "VariantName": { + "VariantPropertyType": { "type": "string" } }, - "required": [ - "InitialInstanceCount", - "InitialVariantWeight", - "InstanceType", - "ModelName", - "VariantName" - ], "type": "object" }, - "AWS::SageMaker::Model": { + "AWS::SageMaker::EndpointConfig": { + "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": { + "EndpointConfigName": { + "type": "string" + }, + "KmsKeyId": { + "type": "string" + }, + "ProductionVariants": { + "items": { + "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" + }, + "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "required": [ + "ProductionVariants" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::SageMaker::EndpointConfig" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "additionalProperties": false, + "properties": { + "AcceleratorType": { + "type": "string" + }, + "InitialInstanceCount": { + "type": "number" + }, + "InitialVariantWeight": { + "type": "number" + }, + "InstanceType": { + "type": "string" + }, + "ModelName": { + "type": "string" + }, + "VariantName": { + "type": "string" + } + }, + "required": [ + "InitialInstanceCount", + "InitialVariantWeight", + "InstanceType", + "ModelName", + "VariantName" + ], + "type": "object" + }, + "AWS::SageMaker::Model": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -54306,7 +56598,7 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::WorkSpaces::Workspace": { + "AWS::WAFv2::IPSet": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -54338,44 +56630,233 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { - "BundleId": { + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { "type": "string" }, - "DirectoryId": { + "IPAddressVersion": { "type": "string" }, - "RootVolumeEncryptionEnabled": { - "type": "boolean" + "IPSet": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSet" + }, + "IPSetSummary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "IPSets": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSets" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" }, "Tags": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.TagList" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::IPSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::IPSet.IPAddresses": { + "additionalProperties": false, + "properties": { + "IPAddresses": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSet": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { + "type": "string" + }, + "IPAddressVersion": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSets": { + "additionalProperties": false, + "properties": { + "IPSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { "items": { - "$ref": "#/definitions/Tag" + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" }, "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "Description": { + "type": "string" }, - "UserName": { + "Id": { "type": "string" }, - "UserVolumeEncryptionEnabled": { - "type": "boolean" + "Limit": { + "type": "number" }, - "VolumeEncryptionKey": { + "LockToken": { "type": "string" }, - "WorkspaceProperties": { - "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RegexPatternSet": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSet" + }, + "RegexPatternSets": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSets" + }, + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.TagList" } }, "required": [ - "BundleId", - "DirectoryId", - "UserName" + "Name", + "Scope" ], "type": "object" }, "Type": { "enum": [ - "AWS::WorkSpaces::Workspace" + "AWS::WAFv2::RegexPatternSet" ], "type": "string" } @@ -54386,28 +56867,1626 @@ var SamSchema = `{ ], "type": "object" }, - "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "AWS::WAFv2::RegexPatternSet.Regex": { "additionalProperties": false, "properties": { - "ComputeTypeName": { + "RegexString": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSet": { + "additionalProperties": false, + "properties": { + "ARN": { "type": "string" }, - "RootVolumeSizeGib": { - "type": "number" + "Description": { + "type": "string" }, - "RunningMode": { + "Id": { "type": "string" }, - "RunningModeAutoStopTimeoutInMinutes": { - "type": "number" + "Name": { + "type": "string" }, - "UserVolumeSizeGib": { - "type": "number" + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" } }, "type": "object" }, - "Alexa::ASK::Skill": { + "AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSets": { + "additionalProperties": false, + "properties": { + "RegexPatternSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegularExpressionList": { + "additionalProperties": false, + "properties": { + "RegularExpressionList": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.Regex" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup": { + "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": { + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RuleGroup": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroup" + }, + "RuleGroupSummary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "RuleGroups": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroups" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "Scope": { + "type": "string" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::RuleGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleAction" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroup": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroupSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroups": { + "additionalProperties": false, + "properties": { + "RuleGroups": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL": { + "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": { + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + }, + "WebACL": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACL" + }, + "WebACLs": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLs" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::WebACL" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::WebACL.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.DefaultAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRule": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRules": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ManagedRuleGroupStatement": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + }, + "Name": { + "type": "string" + }, + "VendorName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NoneAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OverrideAction": { + "additionalProperties": false, + "properties": { + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + }, + "None": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NoneAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleAction" + }, + "Name": { + "type": "string" + }, + "OverrideAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OverrideAction" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleGroupReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACL": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLs": { + "additionalProperties": false, + "properties": { + "WebACLs": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WorkSpaces::Workspace": { + "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": { + "BundleId": { + "type": "string" + }, + "DirectoryId": { + "type": "string" + }, + "RootVolumeEncryptionEnabled": { + "type": "boolean" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "UserName": { + "type": "string" + }, + "UserVolumeEncryptionEnabled": { + "type": "boolean" + }, + "VolumeEncryptionKey": { + "type": "string" + }, + "WorkspaceProperties": { + "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + } + }, + "required": [ + "BundleId", + "DirectoryId", + "UserName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WorkSpaces::Workspace" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "additionalProperties": false, + "properties": { + "ComputeTypeName": { + "type": "string" + }, + "RootVolumeSizeGib": { + "type": "number" + }, + "RunningMode": { + "type": "string" + }, + "RunningModeAutoStopTimeoutInMinutes": { + "type": "number" + }, + "UserVolumeSizeGib": { + "type": "number" + } + }, + "type": "object" + }, + "Alexa::ASK::Skill": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -54836,6 +58915,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::AppStream::User" }, + { + "$ref": "#/definitions/AWS::AppSync::ApiCache" + }, { "$ref": "#/definitions/AWS::AppSync::ApiKey" }, @@ -54944,6 +59026,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::CloudWatch::Dashboard" }, + { + "$ref": "#/definitions/AWS::CloudWatch::InsightRule" + }, { "$ref": "#/definitions/AWS::CodeBuild::Project" }, @@ -54974,6 +59059,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::CodeStar::GitHubRepository" }, + { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule" + }, { "$ref": "#/definitions/AWS::Cognito::IdentityPool" }, @@ -55265,12 +59353,18 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::ECS::Cluster" }, + { + "$ref": "#/definitions/AWS::ECS::PrimaryTaskSet" + }, { "$ref": "#/definitions/AWS::ECS::Service" }, { "$ref": "#/definitions/AWS::ECS::TaskDefinition" }, + { + "$ref": "#/definitions/AWS::ECS::TaskSet" + }, { "$ref": "#/definitions/AWS::EFS::FileSystem" }, @@ -55280,6 +59374,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::EKS::Cluster" }, + { + "$ref": "#/definitions/AWS::EKS::Nodegroup" + }, { "$ref": "#/definitions/AWS::EMR::Cluster" }, @@ -55367,6 +59464,18 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::GameLift::Fleet" }, + { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingRuleSet" + }, + { + "$ref": "#/definitions/AWS::GameLift::Script" + }, { "$ref": "#/definitions/AWS::Glue::Classifier" }, @@ -55604,6 +59713,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::Lambda::Alias" }, + { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig" + }, { "$ref": "#/definitions/AWS::Lambda::EventSourceMapping" }, @@ -55646,6 +59758,15 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::ManagedBlockchain::Node" }, + { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Preset" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Queue" + }, { "$ref": "#/definitions/AWS::MediaLive::Channel" }, @@ -55727,18 +59848,27 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::Pinpoint::EmailChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::EmailTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::EventStream" }, { "$ref": "#/definitions/AWS::Pinpoint::GCMChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::SMSChannel" }, { "$ref": "#/definitions/AWS::Pinpoint::Segment" }, + { + "$ref": "#/definitions/AWS::Pinpoint::SmsTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::VoiceChannel" }, @@ -56081,6 +60211,18 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::WAFRegional::XssMatchSet" }, + { + "$ref": "#/definitions/AWS::WAFv2::IPSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup" + }, + { + "$ref": "#/definitions/AWS::WAFv2::WebACL" + }, { "$ref": "#/definitions/AWS::WorkSpaces::Workspace" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index e1478d2157..6e44b3d073 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -73,6 +73,9 @@ }, "type": "array" }, + "StorageType": { + "type": "string" + }, "SubnetIds": { "items": { "type": "string" @@ -503,12 +506,18 @@ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::App.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" } @@ -618,12 +627,18 @@ "EnableAutoBuild": { "type": "boolean" }, + "EnablePullRequestPreview": { + "type": "boolean" + }, "EnvironmentVariables": { "items": { "$ref": "#/definitions/AWS::Amplify::Branch.EnvironmentVariable" }, "type": "array" }, + "PullRequestEnvironmentName": { + "type": "string" + }, "Stage": { "type": "string" }, @@ -872,6 +887,12 @@ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Value": { "type": "string" } @@ -1084,6 +1105,12 @@ "properties": { "Description": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -1518,6 +1545,15 @@ }, "RegionalCertificateArn": { "type": "string" + }, + "SecurityPolicy": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -2138,6 +2174,12 @@ }, "Policy": { "type": "object" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -2162,6 +2204,12 @@ "type": "string" }, "type": "array" + }, + "VpcEndpointIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -2405,6 +2453,12 @@ "Quota": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.QuotaSettings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Throttle": { "$ref": "#/definitions/AWS::ApiGateway::UsagePlan.ThrottleSettings" }, @@ -3669,6 +3723,131 @@ ], "type": "object" }, + "AWS::AppMesh::Route.GrpcRetryPolicy": { + "additionalProperties": false, + "properties": { + "GrpcRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "HttpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MaxRetries": { + "type": "number" + }, + "PerRetryTimeout": { + "$ref": "#/definitions/AWS::AppMesh::Route.Duration" + }, + "TcpRetryEvents": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "MaxRetries", + "PerRetryTimeout" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRoute": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteAction" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMatch" + }, + "RetryPolicy": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRetryPolicy" + } + }, + "required": [ + "Action", + "Match" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteAction": { + "additionalProperties": false, + "properties": { + "WeightedTargets": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.WeightedTarget" + }, + "type": "array" + } + }, + "required": [ + "WeightedTargets" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMatch": { + "additionalProperties": false, + "properties": { + "Metadata": { + "items": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadata" + }, + "type": "array" + }, + "MethodName": { + "type": "string" + }, + "ServiceName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadata": { + "additionalProperties": false, + "properties": { + "Invert": { + "type": "boolean" + }, + "Match": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "AWS::AppMesh::Route.GrpcRouteMetadataMatchMethod": { + "additionalProperties": false, + "properties": { + "Exact": { + "type": "string" + }, + "Prefix": { + "type": "string" + }, + "Range": { + "$ref": "#/definitions/AWS::AppMesh::Route.MatchRange" + }, + "Regex": { + "type": "string" + }, + "Suffix": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppMesh::Route.HeaderMatchMethod": { "additionalProperties": false, "properties": { @@ -3813,6 +3992,12 @@ "AWS::AppMesh::Route.RouteSpec": { "additionalProperties": false, "properties": { + "GrpcRoute": { + "$ref": "#/definitions/AWS::AppMesh::Route.GrpcRoute" + }, + "Http2Route": { + "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" + }, "HttpRoute": { "$ref": "#/definitions/AWS::AppMesh::Route.HttpRoute" }, @@ -4617,6 +4802,12 @@ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::ImageBuilder.AccessEndpoint" + }, + "type": "array" + }, "AppstreamAgentVersion": { "type": "string" }, @@ -4672,6 +4863,22 @@ ], "type": "object" }, + "AWS::AppStream::ImageBuilder.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::ImageBuilder.DomainJoinInfo": { "additionalProperties": false, "properties": { @@ -4734,6 +4941,12 @@ "Properties": { "additionalProperties": false, "properties": { + "AccessEndpoints": { + "items": { + "$ref": "#/definitions/AWS::AppStream::Stack.AccessEndpoint" + }, + "type": "array" + }, "ApplicationSettings": { "$ref": "#/definitions/AWS::AppStream::Stack.ApplicationSettings" }, @@ -4752,6 +4965,12 @@ "DisplayName": { "type": "string" }, + "EmbedHostDomains": { + "items": { + "type": "string" + }, + "type": "array" + }, "FeedbackURL": { "type": "string" }, @@ -4794,6 +5013,22 @@ ], "type": "object" }, + "AWS::AppStream::Stack.AccessEndpoint": { + "additionalProperties": false, + "properties": { + "EndpointType": { + "type": "string" + }, + "VpceId": { + "type": "string" + } + }, + "required": [ + "EndpointType", + "VpceId" + ], + "type": "object" + }, "AWS::AppStream::Stack.ApplicationSettings": { "additionalProperties": false, "properties": { @@ -5036,6 +5271,78 @@ ], "type": "object" }, + "AWS::AppSync::ApiCache": { + "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": { + "ApiCachingBehavior": { + "type": "string" + }, + "ApiId": { + "type": "string" + }, + "AtRestEncryptionEnabled": { + "type": "boolean" + }, + "TransitEncryptionEnabled": { + "type": "boolean" + }, + "Ttl": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ApiCachingBehavior", + "ApiId", + "Ttl", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::AppSync::ApiCache" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::AppSync::ApiKey": { "additionalProperties": false, "properties": { @@ -5206,17 +5513,43 @@ }, "type": "object" }, + "AWS::AppSync::DataSource.DeltaSyncConfig": { + "additionalProperties": false, + "properties": { + "BaseTableTTL": { + "type": "string" + }, + "DeltaSyncTableName": { + "type": "string" + }, + "DeltaSyncTableTTL": { + "type": "string" + } + }, + "required": [ + "BaseTableTTL", + "DeltaSyncTableName", + "DeltaSyncTableTTL" + ], + "type": "object" + }, "AWS::AppSync::DataSource.DynamoDBConfig": { "additionalProperties": false, "properties": { "AwsRegion": { "type": "string" }, + "DeltaSyncConfig": { + "$ref": "#/definitions/AWS::AppSync::DataSource.DeltaSyncConfig" + }, "TableName": { "type": "string" }, "UseCallerCredentials": { "type": "boolean" + }, + "Versioned": { + "type": "boolean" } }, "required": [ @@ -5652,6 +5985,9 @@ "ApiId": { "type": "string" }, + "CachingConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.CachingConfig" + }, "DataSourceName": { "type": "string" }, @@ -5676,6 +6012,9 @@ "ResponseMappingTemplateS3Location": { "type": "string" }, + "SyncConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.SyncConfig" + }, "TypeName": { "type": "string" } @@ -5700,6 +6039,30 @@ ], "type": "object" }, + "AWS::AppSync::Resolver.CachingConfig": { + "additionalProperties": false, + "properties": { + "CachingKeys": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Ttl": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::AppSync::Resolver.LambdaConflictHandlerConfig": { + "additionalProperties": false, + "properties": { + "LambdaConflictHandlerArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::AppSync::Resolver.PipelineConfig": { "additionalProperties": false, "properties": { @@ -5712,6 +6075,24 @@ }, "type": "object" }, + "AWS::AppSync::Resolver.SyncConfig": { + "additionalProperties": false, + "properties": { + "ConflictDetection": { + "type": "string" + }, + "ConflictHandler": { + "type": "string" + }, + "LambdaConflictHandlerConfig": { + "$ref": "#/definitions/AWS::AppSync::Resolver.LambdaConflictHandlerConfig" + } + }, + "required": [ + "ConflictDetection" + ], + "type": "object" + }, "AWS::ApplicationAutoScaling::ScalableTarget": { "additionalProperties": false, "properties": { @@ -10002,6 +10383,68 @@ ], "type": "object" }, + "AWS::CloudWatch::InsightRule": { + "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": { + "RuleBody": { + "type": "string" + }, + "RuleName": { + "type": "string" + }, + "RuleState": { + "type": "string" + } + }, + "required": [ + "RuleBody", + "RuleName", + "RuleState" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CloudWatch::InsightRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::CodeBuild::Project": { "additionalProperties": false, "properties": { @@ -11185,6 +11628,12 @@ "Settings": { "$ref": "#/definitions/AWS::CodePipeline::CustomActionType.Settings" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "Version": { "type": "string" } @@ -11339,6 +11788,12 @@ "$ref": "#/definitions/AWS::CodePipeline::Pipeline.StageDeclaration" }, "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11378,6 +11833,9 @@ "Name": { "type": "string" }, + "Namespace": { + "type": "string" + }, "OutputArtifacts": { "items": { "$ref": "#/definitions/AWS::CodePipeline::Pipeline.OutputArtifact" @@ -11771,6 +12229,100 @@ ], "type": "object" }, + "AWS::CodeStarNotifications::NotificationRule": { + "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": { + "DetailType": { + "type": "string" + }, + "EventTypeIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "Resource": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "Targets": { + "items": { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule.Target" + }, + "type": "array" + } + }, + "required": [ + "DetailType", + "EventTypeIds", + "Name", + "Resource", + "Targets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeStarNotifications::NotificationRule" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeStarNotifications::NotificationRule.Target": { + "additionalProperties": false, + "properties": { + "TargetAddress": { + "type": "string" + }, + "TargetType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Cognito::IdentityPool": { "additionalProperties": false, "properties": { @@ -11803,6 +12355,9 @@ "Properties": { "additionalProperties": false, "properties": { + "AllowClassicFlow": { + "type": "boolean" + }, "AllowUnauthenticatedIdentities": { "type": "boolean" }, @@ -12178,9 +12733,15 @@ "AWS::Cognito::UserPool.EmailConfiguration": { "additionalProperties": false, "properties": { + "ConfigurationSet": { + "type": "string" + }, "EmailSendingAccount": { "type": "string" }, + "From": { + "type": "string" + }, "ReplyToEmailAddress": { "type": "string" }, @@ -12447,6 +13008,9 @@ }, "type": "array" }, + "PreventUserExistenceErrors": { + "type": "string" + }, "ReadAttributes": { "items": { "type": "string" @@ -13101,6 +13665,9 @@ "Properties": { "additionalProperties": false, "properties": { + "ClientMetadata": { + "type": "object" + }, "DesiredDeliveryMediums": { "items": { "type": "string" @@ -14263,6 +14830,24 @@ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.FastRestoreRule": { + "additionalProperties": false, + "properties": { + "AvailabilityZones": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Count": { + "type": "number" + } + }, + "required": [ + "Count" + ], + "type": "object" + }, "AWS::DLM::LifecyclePolicy.Parameters": { "additionalProperties": false, "properties": { @@ -14323,6 +14908,9 @@ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "FastRestoreRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" + }, "Name": { "type": "string" }, @@ -15437,6 +16025,10 @@ "type": "array" } }, + "required": [ + "MasterUserPassword", + "MasterUsername" + ], "type": "object" }, "Type": { @@ -15447,7 +16039,8 @@ } }, "required": [ - "Type" + "Type", + "Properties" ], "type": "object" }, @@ -16803,6 +17396,12 @@ }, "PublicIpv4Pool": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "type": "object" @@ -17364,6 +17963,9 @@ "AWS::EC2::Instance.ElasticInferenceAccelerator": { "additionalProperties": false, "properties": { + "Count": { + "type": "number" + }, "Type": { "type": "string" } @@ -18213,7 +18815,6 @@ } }, "required": [ - "CidrBlock", "NetworkAclId", "Protocol", "RuleAction", @@ -21556,6 +22157,12 @@ "ClusterName": { "type": "string" }, + "ClusterSettings": { + "items": { + "$ref": "#/definitions/AWS::ECS::Cluster.ClusterSetting" + }, + "type": "array" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -21577,7 +22184,85 @@ ], "type": "object" }, - "AWS::ECS::Service": { + "AWS::ECS::Cluster.ClusterSetting": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Name", + "Value" + ], + "type": "object" + }, + "AWS::ECS::PrimaryTaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "Service": { + "type": "string" + }, + "TaskSetId": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskSetId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::PrimaryTaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::Service": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -21615,6 +22300,9 @@ "DeploymentConfiguration": { "$ref": "#/definitions/AWS::ECS::Service.DeploymentConfiguration" }, + "DeploymentController": { + "$ref": "#/definitions/AWS::ECS::Service.DeploymentController" + }, "DesiredCount": { "type": "number" }, @@ -21679,9 +22367,6 @@ "type": "string" } }, - "required": [ - "TaskDefinition" - ], "type": "object" }, "Type": { @@ -21692,8 +22377,7 @@ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" }, @@ -21733,6 +22417,15 @@ }, "type": "object" }, + "AWS::ECS::Service.DeploymentController": { + "additionalProperties": false, + "properties": { + "Type": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::Service.LoadBalancer": { "additionalProperties": false, "properties": { @@ -21858,6 +22551,12 @@ "Family": { "type": "string" }, + "InferenceAccelerators": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.InferenceAccelerator" + }, + "type": "array" + }, "IpcMode": { "type": "string" }, @@ -21984,6 +22683,9 @@ }, "type": "array" }, + "FirelensConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskDefinition.FirelensConfiguration" + }, "HealthCheck": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.HealthCheck" }, @@ -22156,6 +22858,27 @@ }, "type": "object" }, + "AWS::ECS::TaskDefinition.FirelensConfiguration": { + "additionalProperties": false, + "properties": { + "Options": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::ECS::TaskDefinition.HealthCheck": { "additionalProperties": false, "properties": { @@ -22208,6 +22931,21 @@ }, "type": "object" }, + "AWS::ECS::TaskDefinition.InferenceAccelerator": { + "additionalProperties": false, + "properties": { + "DeviceName": { + "type": "string" + }, + "DevicePolicy": { + "type": "string" + }, + "DeviceType": { + "type": "string" + } + }, + "type": "object" + }, "AWS::ECS::TaskDefinition.KernelCapabilities": { "additionalProperties": false, "properties": { @@ -22253,9 +22991,15 @@ "InitProcessEnabled": { "type": "boolean" }, + "MaxSwap": { + "type": "number" + }, "SharedMemorySize": { "type": "number" }, + "Swappiness": { + "type": "number" + }, "Tmpfs": { "items": { "$ref": "#/definitions/AWS::ECS::TaskDefinition.Tmpfs" @@ -22483,6 +23227,176 @@ }, "type": "object" }, + "AWS::ECS::TaskSet": { + "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": { + "Cluster": { + "type": "string" + }, + "ExternalId": { + "type": "string" + }, + "LaunchType": { + "type": "string" + }, + "LoadBalancers": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.LoadBalancer" + }, + "type": "array" + }, + "NetworkConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.NetworkConfiguration" + }, + "PlatformVersion": { + "type": "string" + }, + "Scale": { + "$ref": "#/definitions/AWS::ECS::TaskSet.Scale" + }, + "Service": { + "type": "string" + }, + "ServiceRegistries": { + "items": { + "$ref": "#/definitions/AWS::ECS::TaskSet.ServiceRegistry" + }, + "type": "array" + }, + "TaskDefinition": { + "type": "string" + } + }, + "required": [ + "Cluster", + "Service", + "TaskDefinition" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::ECS::TaskSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.AwsVpcConfiguration": { + "additionalProperties": false, + "properties": { + "AssignPublicIp": { + "type": "string" + }, + "SecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Subnets" + ], + "type": "object" + }, + "AWS::ECS::TaskSet.LoadBalancer": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "LoadBalancerName": { + "type": "string" + }, + "TargetGroupArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.NetworkConfiguration": { + "additionalProperties": false, + "properties": { + "AwsVpcConfiguration": { + "$ref": "#/definitions/AWS::ECS::TaskSet.AwsVpcConfiguration" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.Scale": { + "additionalProperties": false, + "properties": { + "Unit": { + "type": "string" + }, + "Value": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::ECS::TaskSet.ServiceRegistry": { + "additionalProperties": false, + "properties": { + "ContainerName": { + "type": "string" + }, + "ContainerPort": { + "type": "number" + }, + "Port": { + "type": "number" + }, + "RegistryArn": { + "type": "string" + } + }, + "type": "object" + }, "AWS::EFS::FileSystem": { "additionalProperties": false, "properties": { @@ -22738,6 +23652,140 @@ ], "type": "object" }, + "AWS::EKS::Nodegroup": { + "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": { + "AmiType": { + "type": "string" + }, + "ClusterName": { + "type": "string" + }, + "DiskSize": { + "type": "number" + }, + "ForceUpdateEnabled": { + "type": "boolean" + }, + "InstanceTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Labels": { + "type": "object" + }, + "NodeRole": { + "type": "string" + }, + "NodegroupName": { + "type": "string" + }, + "ReleaseVersion": { + "type": "string" + }, + "RemoteAccess": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.RemoteAccess" + }, + "ScalingConfig": { + "$ref": "#/definitions/AWS::EKS::Nodegroup.ScalingConfig" + }, + "Subnets": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Tags": { + "type": "object" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "ClusterName", + "NodeRole", + "Subnets" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EKS::Nodegroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.RemoteAccess": { + "additionalProperties": false, + "properties": { + "Ec2SshKey": { + "type": "string" + }, + "SourceSecurityGroups": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "Ec2SshKey" + ], + "type": "object" + }, + "AWS::EKS::Nodegroup.ScalingConfig": { + "additionalProperties": false, + "properties": { + "DesiredSize": { + "type": "number" + }, + "MaxSize": { + "type": "number" + }, + "MinSize": { + "type": "number" + } + }, + "type": "object" + }, "AWS::EMR::Cluster": { "additionalProperties": false, "properties": { @@ -26414,6 +27462,9 @@ }, "type": "object" }, + "CognitoOptions": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.CognitoOptions" + }, "DomainName": { "type": "string" }, @@ -26429,6 +27480,15 @@ "EncryptionAtRestOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.EncryptionAtRestOptions" }, + "LogPublishingOptions": { + "additionalProperties": false, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "$ref": "#/definitions/AWS::Elasticsearch::Domain.LogPublishingOption" + } + }, + "type": "object" + }, "NodeToNodeEncryptionOptions": { "$ref": "#/definitions/AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions" }, @@ -26459,6 +27519,24 @@ ], "type": "object" }, + "AWS::Elasticsearch::Domain.CognitoOptions": { + "additionalProperties": false, + "properties": { + "Enabled": { + "type": "boolean" + }, + "IdentityPoolId": { + "type": "string" + }, + "RoleArn": { + "type": "string" + }, + "UserPoolId": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.EBSOptions": { "additionalProperties": false, "properties": { @@ -26516,6 +27594,18 @@ }, "type": "object" }, + "AWS::Elasticsearch::Domain.LogPublishingOption": { + "additionalProperties": false, + "properties": { + "CloudWatchLogsLogGroupArn": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::Elasticsearch::Domain.NodeToNodeEncryptionOptions": { "additionalProperties": false, "properties": { @@ -26736,6 +27826,9 @@ "Description": { "type": "string" }, + "EventBusName": { + "type": "string" + }, "EventPattern": { "type": "object" }, @@ -26796,6 +27889,46 @@ ], "type": "object" }, + "AWS::Events::Rule.BatchArrayProperties": { + "additionalProperties": false, + "properties": { + "Size": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::Events::Rule.BatchParameters": { + "additionalProperties": false, + "properties": { + "ArrayProperties": { + "$ref": "#/definitions/AWS::Events::Rule.BatchArrayProperties" + }, + "JobDefinition": { + "type": "string" + }, + "JobName": { + "type": "string" + }, + "RetryStrategy": { + "$ref": "#/definitions/AWS::Events::Rule.BatchRetryStrategy" + } + }, + "required": [ + "JobDefinition", + "JobName" + ], + "type": "object" + }, + "AWS::Events::Rule.BatchRetryStrategy": { + "additionalProperties": false, + "properties": { + "Attempts": { + "type": "number" + } + }, + "type": "object" + }, "AWS::Events::Rule.EcsParameters": { "additionalProperties": false, "properties": { @@ -26917,6 +28050,9 @@ "Arn": { "type": "string" }, + "BatchParameters": { + "$ref": "#/definitions/AWS::Events::Rule.BatchParameters" + }, "EcsParameters": { "$ref": "#/definitions/AWS::Events::Rule.EcsParameters" }, @@ -27225,6 +28361,9 @@ "Name": { "type": "string" }, + "OperatingSystem": { + "type": "string" + }, "StorageLocation": { "$ref": "#/definitions/AWS::GameLift::Build.S3Location" }, @@ -27255,6 +28394,9 @@ "Key": { "type": "string" }, + "ObjectVersion": { + "type": "string" + }, "RoleArn": { "type": "string" } @@ -27301,6 +28443,9 @@ "BuildId": { "type": "string" }, + "CertificateConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.CertificateConfiguration" + }, "Description": { "type": "string" }, @@ -27316,6 +28461,12 @@ "EC2InstanceType": { "type": "string" }, + "FleetType": { + "type": "string" + }, + "InstanceRoleARN": { + "type": "string" + }, "LogPaths": { "items": { "type": "string" @@ -27325,12 +28476,36 @@ "MaxSize": { "type": "number" }, + "MetricGroups": { + "items": { + "type": "string" + }, + "type": "array" + }, "MinSize": { "type": "number" }, "Name": { "type": "string" }, + "NewGameSessionProtectionPolicy": { + "type": "string" + }, + "PeerVpcAwsAccountId": { + "type": "string" + }, + "PeerVpcId": { + "type": "string" + }, + "ResourceCreationLimitPolicy": { + "$ref": "#/definitions/AWS::GameLift::Fleet.ResourceCreationLimitPolicy" + }, + "RuntimeConfiguration": { + "$ref": "#/definitions/AWS::GameLift::Fleet.RuntimeConfiguration" + }, + "ScriptId": { + "type": "string" + }, "ServerLaunchParameters": { "type": "string" }, @@ -27339,11 +28514,8 @@ } }, "required": [ - "BuildId", - "DesiredEC2Instances", "EC2InstanceType", - "Name", - "ServerLaunchPath" + "Name" ], "type": "object" }, @@ -27360,6 +28532,18 @@ ], "type": "object" }, + "AWS::GameLift::Fleet.CertificateConfiguration": { + "additionalProperties": false, + "properties": { + "CertificateType": { + "type": "string" + } + }, + "required": [ + "CertificateType" + ], + "type": "object" + }, "AWS::GameLift::Fleet.IpPermission": { "additionalProperties": false, "properties": { @@ -27384,152 +28568,548 @@ ], "type": "object" }, - "AWS::Glue::Classifier": { + "AWS::GameLift::Fleet.ResourceCreationLimitPolicy": { "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": { - "CsvClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" - }, - "GrokClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" - }, - "JsonClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" - }, - "XMLClassifier": { - "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" - } - }, - "type": "object" + "NewGameSessionsPerCreator": { + "type": "number" }, - "Type": { - "enum": [ - "AWS::Glue::Classifier" - ], - "type": "string" + "PolicyPeriodInMinutes": { + "type": "number" } }, - "required": [ - "Type" - ], "type": "object" }, - "AWS::Glue::Classifier.CsvClassifier": { + "AWS::GameLift::Fleet.RuntimeConfiguration": { "additionalProperties": false, "properties": { - "AllowSingleColumn": { - "type": "boolean" - }, - "ContainsHeader": { - "type": "string" - }, - "Delimiter": { - "type": "string" + "GameSessionActivationTimeoutSeconds": { + "type": "number" }, - "DisableValueTrimming": { - "type": "boolean" + "MaxConcurrentGameSessionActivations": { + "type": "number" }, - "Header": { + "ServerProcesses": { "items": { - "type": "string" + "$ref": "#/definitions/AWS::GameLift::Fleet.ServerProcess" }, "type": "array" - }, - "Name": { - "type": "string" - }, - "QuoteSymbol": { - "type": "string" } }, "type": "object" }, - "AWS::Glue::Classifier.GrokClassifier": { + "AWS::GameLift::Fleet.ServerProcess": { "additionalProperties": false, "properties": { - "Classification": { - "type": "string" - }, - "CustomPatterns": { - "type": "string" - }, - "GrokPattern": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "Classification", - "GrokPattern" - ], - "type": "object" - }, - "AWS::Glue::Classifier.JsonClassifier": { - "additionalProperties": false, - "properties": { - "JsonPath": { - "type": "string" - }, - "Name": { - "type": "string" - } - }, - "required": [ - "JsonPath" - ], - "type": "object" - }, - "AWS::Glue::Classifier.XMLClassifier": { - "additionalProperties": false, - "properties": { - "Classification": { - "type": "string" + "ConcurrentExecutions": { + "type": "number" }, - "Name": { + "LaunchPath": { "type": "string" }, - "RowTag": { + "Parameters": { "type": "string" } }, "required": [ - "Classification", - "RowTag" + "ConcurrentExecutions", + "LaunchPath" ], "type": "object" }, - "AWS::Glue::Connection": { + "AWS::GameLift::GameSessionQueue": { + "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": { + "Destinations": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.Destination" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "PlayerLatencyPolicies": { + "items": { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy" + }, + "type": "array" + }, + "TimeoutInSeconds": { + "type": "number" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::GameSessionQueue" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.Destination": { + "additionalProperties": false, + "properties": { + "DestinationArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::GameLift::GameSessionQueue.PlayerLatencyPolicy": { + "additionalProperties": false, + "properties": { + "MaximumIndividualPlayerLatencyMilliseconds": { + "type": "number" + }, + "PolicyDurationSeconds": { + "type": "number" + } + }, + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration": { + "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": { + "AcceptanceRequired": { + "type": "boolean" + }, + "AcceptanceTimeoutSeconds": { + "type": "number" + }, + "AdditionalPlayerCount": { + "type": "number" + }, + "BackfillMode": { + "type": "string" + }, + "CustomEventData": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "GameProperties": { + "items": { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration.GameProperty" + }, + "type": "array" + }, + "GameSessionData": { + "type": "string" + }, + "GameSessionQueueArns": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "NotificationTarget": { + "type": "string" + }, + "RequestTimeoutSeconds": { + "type": "number" + }, + "RuleSetName": { + "type": "string" + } + }, + "required": [ + "AcceptanceRequired", + "GameSessionQueueArns", + "Name", + "RequestTimeoutSeconds", + "RuleSetName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingConfiguration" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingConfiguration.GameProperty": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "required": [ + "Key", + "Value" + ], + "type": "object" + }, + "AWS::GameLift::MatchmakingRuleSet": { + "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": { + "Name": { + "type": "string" + }, + "RuleSetBody": { + "type": "string" + } + }, + "required": [ + "Name", + "RuleSetBody" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::MatchmakingRuleSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script": { + "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": { + "Name": { + "type": "string" + }, + "StorageLocation": { + "$ref": "#/definitions/AWS::GameLift::Script.S3Location" + }, + "Version": { + "type": "string" + } + }, + "required": [ + "StorageLocation" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::GameLift::Script" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::GameLift::Script.S3Location": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "Key": { + "type": "string" + }, + "ObjectVersion": { + "type": "string" + }, + "RoleArn": { + "type": "string" + } + }, + "required": [ + "Bucket", + "Key", + "RoleArn" + ], + "type": "object" + }, + "AWS::Glue::Classifier": { + "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": { + "CsvClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.CsvClassifier" + }, + "GrokClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.GrokClassifier" + }, + "JsonClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.JsonClassifier" + }, + "XMLClassifier": { + "$ref": "#/definitions/AWS::Glue::Classifier.XMLClassifier" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Glue::Classifier" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, + "AWS::Glue::Classifier.CsvClassifier": { + "additionalProperties": false, + "properties": { + "AllowSingleColumn": { + "type": "boolean" + }, + "ContainsHeader": { + "type": "string" + }, + "Delimiter": { + "type": "string" + }, + "DisableValueTrimming": { + "type": "boolean" + }, + "Header": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Name": { + "type": "string" + }, + "QuoteSymbol": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Glue::Classifier.GrokClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "CustomPatterns": { + "type": "string" + }, + "GrokPattern": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "Classification", + "GrokPattern" + ], + "type": "object" + }, + "AWS::Glue::Classifier.JsonClassifier": { + "additionalProperties": false, + "properties": { + "JsonPath": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "required": [ + "JsonPath" + ], + "type": "object" + }, + "AWS::Glue::Classifier.XMLClassifier": { + "additionalProperties": false, + "properties": { + "Classification": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "RowTag": { + "type": "string" + } + }, + "required": [ + "Classification", + "RowTag" + ], + "type": "object" + }, + "AWS::Glue::Connection": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -27709,7 +29289,6 @@ } }, "required": [ - "DatabaseName", "Role", "Targets" ], @@ -27728,6 +29307,30 @@ ], "type": "object" }, + "AWS::Glue::Crawler.CatalogTarget": { + "additionalProperties": false, + "properties": { + "DatabaseName": { + "type": "string" + }, + "Tables": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::Glue::Crawler.DynamoDBTarget": { + "additionalProperties": false, + "properties": { + "Path": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Glue::Crawler.JdbcTarget": { "additionalProperties": false, "properties": { @@ -27785,6 +29388,18 @@ "AWS::Glue::Crawler.Targets": { "additionalProperties": false, "properties": { + "CatalogTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.CatalogTarget" + }, + "type": "array" + }, + "DynamoDBTargets": { + "items": { + "$ref": "#/definitions/AWS::Glue::Crawler.DynamoDBTarget" + }, + "type": "array" + }, "JdbcTargets": { "items": { "$ref": "#/definitions/AWS::Glue::Crawler.JdbcTarget" @@ -28252,6 +29867,9 @@ "Description": { "type": "string" }, + "GlueVersion": { + "type": "string" + }, "InputRecordTables": { "$ref": "#/definitions/AWS::Glue::MLTransform.InputRecordTables" }, @@ -32018,6 +33636,12 @@ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "UserName": { "type": "string" } @@ -37279,7 +38903,7 @@ ], "type": "object" }, - "AWS::Lambda::EventSourceMapping": { + "AWS::Lambda::EventInvokeConfig": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -37311,142 +38935,31 @@ "Properties": { "additionalProperties": false, "properties": { - "BatchSize": { - "type": "number" - }, - "Enabled": { - "type": "boolean" - }, - "EventSourceArn": { - "type": "string" + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.DestinationConfig" }, "FunctionName": { "type": "string" }, - "MaximumBatchingWindowInSeconds": { + "MaximumEventAgeInSeconds": { "type": "number" }, - "StartingPosition": { - "type": "string" - } - }, - "required": [ - "EventSourceArn", - "FunctionName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::EventSourceMapping" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::Lambda::Function": { - "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": { - "Code": { - "$ref": "#/definitions/AWS::Lambda::Function.Code" - }, - "DeadLetterConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" - }, - "Description": { - "type": "string" - }, - "Environment": { - "$ref": "#/definitions/AWS::Lambda::Function.Environment" - }, - "FunctionName": { - "type": "string" - }, - "Handler": { - "type": "string" - }, - "KmsKeyArn": { - "type": "string" - }, - "Layers": { - "items": { - "type": "string" - }, - "type": "array" - }, - "MemorySize": { - "type": "number" - }, - "ReservedConcurrentExecutions": { + "MaximumRetryAttempts": { "type": "number" }, - "Role": { + "Qualifier": { "type": "string" - }, - "Runtime": { - "type": "string" - }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - }, - "Timeout": { - "type": "number" - }, - "TracingConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" - }, - "VpcConfig": { - "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" } }, "required": [ - "Code", - "Handler", - "Role", - "Runtime" + "FunctionName", + "Qualifier" ], "type": "object" }, "Type": { "enum": [ - "AWS::Lambda::Function" + "AWS::Lambda::EventInvokeConfig" ], "type": "string" } @@ -37457,168 +38970,421 @@ ], "type": "object" }, - "AWS::Lambda::Function.Code": { + "AWS::Lambda::EventInvokeConfig.DestinationConfig": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnFailure" }, - "S3ObjectVersion": { - "type": "string" - }, - "ZipFile": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.DeadLetterConfig": { - "additionalProperties": false, - "properties": { - "TargetArn": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.Environment": { - "additionalProperties": false, - "properties": { - "Variables": { - "additionalProperties": true, - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "type": "string" - } - }, - "type": "object" + "OnSuccess": { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig.OnSuccess" } }, "type": "object" }, - "AWS::Lambda::Function.TracingConfig": { + "AWS::Lambda::EventInvokeConfig.OnFailure": { "additionalProperties": false, "properties": { - "Mode": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::Lambda::Function.VpcConfig": { - "additionalProperties": false, - "properties": { - "SecurityGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "SubnetIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "SecurityGroupIds", - "SubnetIds" - ], - "type": "object" - }, - "AWS::Lambda::LayerVersion": { - "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": { - "CompatibleRuntimes": { - "items": { - "type": "string" - }, - "type": "array" - }, - "Content": { - "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" - }, - "Description": { - "type": "string" - }, - "LayerName": { - "type": "string" - }, - "LicenseInfo": { - "type": "string" - } - }, - "required": [ - "Content" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Lambda::LayerVersion" - ], + "Destination": { "type": "string" } }, "required": [ - "Type", - "Properties" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersion.Content": { + "AWS::Lambda::EventInvokeConfig.OnSuccess": { "additionalProperties": false, "properties": { - "S3Bucket": { - "type": "string" - }, - "S3Key": { - "type": "string" - }, - "S3ObjectVersion": { + "Destination": { "type": "string" } }, "required": [ - "S3Bucket", - "S3Key" + "Destination" ], "type": "object" }, - "AWS::Lambda::LayerVersionPermission": { + "AWS::Lambda::EventSourceMapping": { + "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": { + "BatchSize": { + "type": "number" + }, + "BisectBatchOnFunctionError": { + "type": "boolean" + }, + "DestinationConfig": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.DestinationConfig" + }, + "Enabled": { + "type": "boolean" + }, + "EventSourceArn": { + "type": "string" + }, + "FunctionName": { + "type": "string" + }, + "MaximumBatchingWindowInSeconds": { + "type": "number" + }, + "MaximumRecordAgeInSeconds": { + "type": "number" + }, + "MaximumRetryAttempts": { + "type": "number" + }, + "ParallelizationFactor": { + "type": "number" + }, + "StartingPosition": { + "type": "string" + } + }, + "required": [ + "EventSourceArn", + "FunctionName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::EventSourceMapping" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.DestinationConfig": { + "additionalProperties": false, + "properties": { + "OnFailure": { + "$ref": "#/definitions/AWS::Lambda::EventSourceMapping.OnFailure" + } + }, + "required": [ + "OnFailure" + ], + "type": "object" + }, + "AWS::Lambda::EventSourceMapping.OnFailure": { + "additionalProperties": false, + "properties": { + "Destination": { + "type": "string" + } + }, + "required": [ + "Destination" + ], + "type": "object" + }, + "AWS::Lambda::Function": { + "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": { + "Code": { + "$ref": "#/definitions/AWS::Lambda::Function.Code" + }, + "DeadLetterConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.DeadLetterConfig" + }, + "Description": { + "type": "string" + }, + "Environment": { + "$ref": "#/definitions/AWS::Lambda::Function.Environment" + }, + "FunctionName": { + "type": "string" + }, + "Handler": { + "type": "string" + }, + "KmsKeyArn": { + "type": "string" + }, + "Layers": { + "items": { + "type": "string" + }, + "type": "array" + }, + "MemorySize": { + "type": "number" + }, + "ReservedConcurrentExecutions": { + "type": "number" + }, + "Role": { + "type": "string" + }, + "Runtime": { + "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "Timeout": { + "type": "number" + }, + "TracingConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.TracingConfig" + }, + "VpcConfig": { + "$ref": "#/definitions/AWS::Lambda::Function.VpcConfig" + } + }, + "required": [ + "Code", + "Handler", + "Role", + "Runtime" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::Function" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::Function.Code": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + }, + "ZipFile": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.DeadLetterConfig": { + "additionalProperties": false, + "properties": { + "TargetArn": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.Environment": { + "additionalProperties": false, + "properties": { + "Variables": { + "additionalProperties": true, + "patternProperties": { + "^[a-zA-Z0-9]+$": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.TracingConfig": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Lambda::Function.VpcConfig": { + "additionalProperties": false, + "properties": { + "SecurityGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SubnetIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "SecurityGroupIds", + "SubnetIds" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion": { + "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": { + "CompatibleRuntimes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "Content": { + "$ref": "#/definitions/AWS::Lambda::LayerVersion.Content" + }, + "Description": { + "type": "string" + }, + "LayerName": { + "type": "string" + }, + "LicenseInfo": { + "type": "string" + } + }, + "required": [ + "Content" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Lambda::LayerVersion" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersion.Content": { + "additionalProperties": false, + "properties": { + "S3Bucket": { + "type": "string" + }, + "S3Key": { + "type": "string" + }, + "S3ObjectVersion": { + "type": "string" + } + }, + "required": [ + "S3Bucket", + "S3Key" + ], + "type": "object" + }, + "AWS::Lambda::LayerVersionPermission": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -38605,6 +40371,224 @@ ], "type": "object" }, + "AWS::MediaConvert::JobTemplate": { + "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": { + "AccelerationSettings": { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate.AccelerationSettings" + }, + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Queue": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "StatusUpdateInterval": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::JobTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::JobTemplate.AccelerationSettings": { + "additionalProperties": false, + "properties": { + "Mode": { + "type": "string" + } + }, + "required": [ + "Mode" + ], + "type": "object" + }, + "AWS::MediaConvert::Preset": { + "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": { + "Category": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "SettingsJson": { + "type": "object" + }, + "Tags": { + "type": "object" + } + }, + "required": [ + "SettingsJson" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Preset" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::MediaConvert::Queue": { + "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": { + "Description": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "PricingPlan": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Tags": { + "type": "object" + } + }, + "type": "object" + }, + "Type": { + "enum": [ + "AWS::MediaConvert::Queue" + ], + "type": "string" + } + }, + "required": [ + "Type" + ], + "type": "object" + }, "AWS::MediaLive::Channel": { "additionalProperties": false, "properties": { @@ -40853,6 +42837,15 @@ "BackupRetentionCount": { "type": "number" }, + "CustomCertificate": { + "type": "string" + }, + "CustomDomain": { + "type": "string" + }, + "CustomPrivateKey": { + "type": "string" + }, "DisableAutomatedBackup": { "type": "boolean" }, @@ -41993,6 +43986,73 @@ ], "type": "object" }, + "AWS::Pinpoint::EmailTemplate": { + "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": { + "HtmlPart": { + "type": "string" + }, + "Subject": { + "type": "string" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + }, + "TextPart": { + "type": "string" + } + }, + "required": [ + "Subject", + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::EmailTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::Pinpoint::EventStream": { "additionalProperties": false, "properties": { @@ -42116,6 +44176,153 @@ ], "type": "object" }, + "AWS::Pinpoint::PushTemplate": { + "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": { + "ADM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "APNS": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate" + }, + "Baidu": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Default": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" + }, + "GCM": { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" + }, + "Tags": { + "type": "object" + }, + "TemplateName": { + "type": "string" + } + }, + "required": [ + "TemplateName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::PushTemplate" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.APNSPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "MediaUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "ImageIconUrl": { + "type": "string" + }, + "ImageUrl": { + "type": "string" + }, + "SmallImageIconUrl": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate": { + "additionalProperties": false, + "properties": { + "Action": { + "type": "string" + }, + "Body": { + "type": "string" + }, + "Sound": { + "type": "string" + }, + "Title": { + "type": "string" + }, + "Url": { + "type": "string" + } + }, + "type": "object" + }, "AWS::Pinpoint::SMSChannel": { "additionalProperties": false, "properties": { @@ -42447,7 +44654,7 @@ ], "type": "object" }, - "AWS::Pinpoint::VoiceChannel": { + "AWS::Pinpoint::SmsTemplate": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -42479,93 +44686,25 @@ "Properties": { "additionalProperties": false, "properties": { - "ApplicationId": { - "type": "string" - }, - "Enabled": { - "type": "boolean" - } - }, - "required": [ - "ApplicationId" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::Pinpoint::VoiceChannel" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet": { - "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": { - "DeliveryOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" - }, - "Name": { + "Body": { "type": "string" }, - "ReputationOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" - }, - "SendingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" - }, "Tags": { - "items": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" - }, - "type": "array" + "type": "object" }, - "TrackingOptions": { - "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + "TemplateName": { + "type": "string" } }, "required": [ - "Name" + "Body", + "TemplateName" ], "type": "object" }, "Type": { "enum": [ - "AWS::PinpointEmail::ConfigurationSet" + "AWS::Pinpoint::SmsTemplate" ], "type": "string" } @@ -42576,55 +44715,184 @@ ], "type": "object" }, - "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { - "additionalProperties": false, - "properties": { - "SendingPoolName": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { - "additionalProperties": false, - "properties": { - "ReputationMetricsEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { - "additionalProperties": false, - "properties": { - "SendingEnabled": { - "type": "boolean" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.Tags": { - "additionalProperties": false, - "properties": { - "Key": { - "type": "string" - }, - "Value": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { - "additionalProperties": false, - "properties": { - "CustomRedirectDomain": { - "type": "string" - } - }, - "type": "object" - }, - "AWS::PinpointEmail::ConfigurationSetEventDestination": { + "AWS::Pinpoint::VoiceChannel": { + "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": { + "ApplicationId": { + "type": "string" + }, + "Enabled": { + "type": "boolean" + } + }, + "required": [ + "ApplicationId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::Pinpoint::VoiceChannel" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet": { + "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": { + "DeliveryOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.DeliveryOptions" + }, + "Name": { + "type": "string" + }, + "ReputationOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.ReputationOptions" + }, + "SendingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.SendingOptions" + }, + "Tags": { + "items": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.Tags" + }, + "type": "array" + }, + "TrackingOptions": { + "$ref": "#/definitions/AWS::PinpointEmail::ConfigurationSet.TrackingOptions" + } + }, + "required": [ + "Name" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::PinpointEmail::ConfigurationSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.DeliveryOptions": { + "additionalProperties": false, + "properties": { + "SendingPoolName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.ReputationOptions": { + "additionalProperties": false, + "properties": { + "ReputationMetricsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.SendingOptions": { + "additionalProperties": false, + "properties": { + "SendingEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.Tags": { + "additionalProperties": false, + "properties": { + "Key": { + "type": "string" + }, + "Value": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSet.TrackingOptions": { + "additionalProperties": false, + "properties": { + "CustomRedirectDomain": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::PinpointEmail::ConfigurationSetEventDestination": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -43157,6 +45425,9 @@ }, "type": "array" }, + "EnableHttpEndpoint": { + "type": "boolean" + }, "EnableIAMDatabaseAuthentication": { "type": "boolean" }, @@ -43250,9 +45521,6 @@ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -43573,9 +45841,6 @@ }, "RoleArn": { "type": "string" - }, - "Status": { - "type": "string" } }, "required": [ @@ -47496,6 +49761,9 @@ "RawMessageDelivery": { "type": "boolean" }, + "RedrivePolicy": { + "type": "object" + }, "Region": { "type": "string" }, @@ -47566,6 +49834,12 @@ }, "type": "array" }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, "TopicName": { "type": "string" } @@ -48878,74 +51152,14 @@ "EndpointName": { "type": "string" }, - "Tags": { - "items": { - "$ref": "#/definitions/Tag" - }, - "type": "array" - } - }, - "required": [ - "EndpointConfigName" - ], - "type": "object" - }, - "Type": { - "enum": [ - "AWS::SageMaker::Endpoint" - ], - "type": "string" - } - }, - "required": [ - "Type", - "Properties" - ], - "type": "object" - }, - "AWS::SageMaker::EndpointConfig": { - "additionalProperties": false, - "properties": { - "DeletionPolicy": { - "enum": [ - "Delete", - "Retain", - "Snapshot" - ], - "type": "string" - }, - "DependsOn": { - "anyOf": [ - { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" - }, - { + "ExcludeRetainedVariantProperties": { "items": { - "pattern": "^[a-zA-Z0-9]+$", - "type": "string" + "$ref": "#/definitions/AWS::SageMaker::Endpoint.VariantProperty" }, "type": "array" - } - ] - }, - "Metadata": { - "type": "object" - }, - "Properties": { - "additionalProperties": false, - "properties": { - "EndpointConfigName": { - "type": "string" - }, - "KmsKeyId": { - "type": "string" }, - "ProductionVariants": { - "items": { - "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" - }, - "type": "array" + "RetainAllVariantProperties": { + "type": "boolean" }, "Tags": { "items": { @@ -48955,13 +51169,13 @@ } }, "required": [ - "ProductionVariants" + "EndpointConfigName" ], "type": "object" }, "Type": { "enum": [ - "AWS::SageMaker::EndpointConfig" + "AWS::SageMaker::Endpoint" ], "type": "string" } @@ -48972,38 +51186,116 @@ ], "type": "object" }, - "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "AWS::SageMaker::Endpoint.VariantProperty": { "additionalProperties": false, "properties": { - "AcceleratorType": { - "type": "string" - }, - "InitialInstanceCount": { - "type": "number" - }, - "InitialVariantWeight": { - "type": "number" - }, - "InstanceType": { - "type": "string" - }, - "ModelName": { - "type": "string" - }, - "VariantName": { + "VariantPropertyType": { "type": "string" } }, - "required": [ - "InitialInstanceCount", - "InitialVariantWeight", - "InstanceType", - "ModelName", - "VariantName" - ], "type": "object" }, - "AWS::SageMaker::Model": { + "AWS::SageMaker::EndpointConfig": { + "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": { + "EndpointConfigName": { + "type": "string" + }, + "KmsKeyId": { + "type": "string" + }, + "ProductionVariants": { + "items": { + "$ref": "#/definitions/AWS::SageMaker::EndpointConfig.ProductionVariant" + }, + "type": "array" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "required": [ + "ProductionVariants" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::SageMaker::EndpointConfig" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::SageMaker::EndpointConfig.ProductionVariant": { + "additionalProperties": false, + "properties": { + "AcceleratorType": { + "type": "string" + }, + "InitialInstanceCount": { + "type": "number" + }, + "InitialVariantWeight": { + "type": "number" + }, + "InstanceType": { + "type": "string" + }, + "ModelName": { + "type": "string" + }, + "VariantName": { + "type": "string" + } + }, + "required": [ + "InitialInstanceCount", + "InitialVariantWeight", + "InstanceType", + "ModelName", + "VariantName" + ], + "type": "object" + }, + "AWS::SageMaker::Model": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -54303,7 +56595,7 @@ ], "type": "object" }, - "AWS::WorkSpaces::Workspace": { + "AWS::WAFv2::IPSet": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -54335,44 +56627,233 @@ "Properties": { "additionalProperties": false, "properties": { - "BundleId": { + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { "type": "string" }, - "DirectoryId": { + "IPAddressVersion": { "type": "string" }, - "RootVolumeEncryptionEnabled": { - "type": "boolean" + "IPSet": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSet" + }, + "IPSetSummary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "IPSets": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSets" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" }, "Tags": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.TagList" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::IPSet" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::IPSet.IPAddresses": { + "additionalProperties": false, + "properties": { + "IPAddresses": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSet": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Addresses": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPAddresses" + }, + "Description": { + "type": "string" + }, + "IPAddressVersion": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.IPSets": { + "additionalProperties": false, + "properties": { + "IPSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::IPSet.IPSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::IPSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { "items": { - "$ref": "#/definitions/Tag" + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" }, "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "Description": { + "type": "string" }, - "UserName": { + "Id": { "type": "string" }, - "UserVolumeEncryptionEnabled": { - "type": "boolean" + "Limit": { + "type": "number" }, - "VolumeEncryptionKey": { + "LockToken": { "type": "string" }, - "WorkspaceProperties": { - "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RegexPatternSet": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSet" + }, + "RegexPatternSets": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSets" + }, + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.TagList" } }, "required": [ - "BundleId", - "DirectoryId", - "UserName" + "Name", + "Scope" ], "type": "object" }, "Type": { "enum": [ - "AWS::WorkSpaces::Workspace" + "AWS::WAFv2::RegexPatternSet" ], "type": "string" } @@ -54383,28 +56864,1626 @@ ], "type": "object" }, - "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "AWS::WAFv2::RegexPatternSet.Regex": { "additionalProperties": false, "properties": { - "ComputeTypeName": { + "RegexString": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSet": { + "additionalProperties": false, + "properties": { + "ARN": { "type": "string" }, - "RootVolumeSizeGib": { - "type": "number" + "Description": { + "type": "string" }, - "RunningMode": { + "Id": { "type": "string" }, - "RunningModeAutoStopTimeoutInMinutes": { - "type": "number" + "Name": { + "type": "string" }, - "UserVolumeSizeGib": { - "type": "number" + "RegularExpressionList": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegularExpressionList" } }, "type": "object" }, - "Alexa::ASK::Skill": { + "AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegexPatternSets": { + "additionalProperties": false, + "properties": { + "RegexPatternSets": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.RegexPatternSetSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.RegularExpressionList": { + "additionalProperties": false, + "properties": { + "RegularExpressionList": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet.Regex" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RegexPatternSet.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup": { + "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": { + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "RuleGroup": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroup" + }, + "RuleGroupSummary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "RuleGroups": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroups" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "Scope": { + "type": "string" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::RuleGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleAction" + }, + "Name": { + "type": "string" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroup": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroupSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.RuleGroups": { + "additionalProperties": false, + "properties": { + "RuleGroups": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RuleGroupSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.IPSetReferenceStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.RegexPatternSetReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::RuleGroup.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL": { + "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": { + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "NextLockToken": { + "type": "string" + }, + "NextMarker": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "Scope": { + "type": "string" + }, + "Summary": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "Tags": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TagList" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + }, + "WebACL": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACL" + }, + "WebACLs": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLs" + } + }, + "required": [ + "Name", + "Scope" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WAFv2::WebACL" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WAFv2::WebACL.AllQueryArguments": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AllowAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.AndStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.BlockAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.Body": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.ByteMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "PositionalConstraint": { + "type": "string" + }, + "SearchString": { + "type": "string" + }, + "SearchStringBase64": { + "type": "string" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.CountryCodes": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.DefaultAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRule": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ExcludedRules": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.FieldToMatch": { + "additionalProperties": false, + "properties": { + "AllQueryArguments": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllQueryArguments" + }, + "Body": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Body" + }, + "Method": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Method" + }, + "QueryString": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.QueryString" + }, + "SingleHeader": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleHeader" + }, + "SingleQueryArgument": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SingleQueryArgument" + }, + "UriPath": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.UriPath" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.GeoMatchStatement": { + "additionalProperties": false, + "properties": { + "CountryCodes": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountryCodes" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.IPSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.ManagedRuleGroupStatement": { + "additionalProperties": false, + "properties": { + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + }, + "Name": { + "type": "string" + }, + "VendorName": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Method": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NoneAction": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementOne": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.NotStatementTwo": { + "additionalProperties": false, + "properties": { + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementOne": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwos" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OrStatementTwo": { + "additionalProperties": false, + "properties": { + "Statements": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThrees" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.OverrideAction": { + "additionalProperties": false, + "properties": { + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + }, + "None": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NoneAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.QueryString": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementOne": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RateBasedStatementTwo": { + "additionalProperties": false, + "properties": { + "AggregateKeyType": { + "type": "string" + }, + "Limit": { + "type": "number" + }, + "ScopeDownStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rule": { + "additionalProperties": false, + "properties": { + "Action": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleAction" + }, + "Name": { + "type": "string" + }, + "OverrideAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OverrideAction" + }, + "Priority": { + "type": "number" + }, + "Statement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementOne" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleAction": { + "additionalProperties": false, + "properties": { + "Allow": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AllowAction" + }, + "Block": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.BlockAction" + }, + "Count": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.CountAction" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.RuleGroupReferenceStatement": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "ExcludedRules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ExcludedRules" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.Rules": { + "additionalProperties": false, + "properties": { + "Rules": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rule" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleHeader": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SingleQueryArgument": { + "additionalProperties": false, + "properties": { + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SizeConstraintStatement": { + "additionalProperties": false, + "properties": { + "ComparisonOperator": { + "type": "string" + }, + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "Size": { + "type": "number" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.SqliMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementOne": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementOne" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementOne" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementOne" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementOne" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThree": { + "additionalProperties": false, + "properties": { + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementThrees": { + "additionalProperties": false, + "properties": { + "StatementThrees": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementThree" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwo": { + "additionalProperties": false, + "properties": { + "AndStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.AndStatementTwo" + }, + "ByteMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ByteMatchStatement" + }, + "GeoMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.GeoMatchStatement" + }, + "IPSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.IPSetReferenceStatement" + }, + "ManagedRuleGroupStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.ManagedRuleGroupStatement" + }, + "NotStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.NotStatementTwo" + }, + "OrStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.OrStatementTwo" + }, + "RateBasedStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RateBasedStatementTwo" + }, + "RegexPatternSetReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RegexPatternSetReferenceStatement" + }, + "RuleGroupReferenceStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.RuleGroupReferenceStatement" + }, + "SizeConstraintStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SizeConstraintStatement" + }, + "SqliMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.SqliMatchStatement" + }, + "XssMatchStatement": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.XssMatchStatement" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.StatementTwos": { + "additionalProperties": false, + "properties": { + "StatementTwos": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.StatementTwo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TagList": { + "additionalProperties": false, + "properties": { + "TagList": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformation": { + "additionalProperties": false, + "properties": { + "Priority": { + "type": "number" + }, + "Type": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.TextTransformations": { + "additionalProperties": false, + "properties": { + "TextTransformations": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.UriPath": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "AWS::WAFv2::WebACL.VisibilityConfig": { + "additionalProperties": false, + "properties": { + "CloudWatchMetricsEnabled": { + "type": "boolean" + }, + "MetricName": { + "type": "string" + }, + "SampledRequestsEnabled": { + "type": "boolean" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACL": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Capacity": { + "type": "number" + }, + "DefaultAction": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.DefaultAction" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "Name": { + "type": "string" + }, + "Rules": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.Rules" + }, + "VisibilityConfig": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.VisibilityConfig" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLSummary": { + "additionalProperties": false, + "properties": { + "ARN": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Id": { + "type": "string" + }, + "LockToken": { + "type": "string" + }, + "Name": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.WebACLs": { + "additionalProperties": false, + "properties": { + "WebACLs": { + "items": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.WebACLSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "AWS::WAFv2::WebACL.XssMatchStatement": { + "additionalProperties": false, + "properties": { + "FieldToMatch": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.FieldToMatch" + }, + "TextTransformations": { + "$ref": "#/definitions/AWS::WAFv2::WebACL.TextTransformations" + } + }, + "type": "object" + }, + "AWS::WorkSpaces::Workspace": { + "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": { + "BundleId": { + "type": "string" + }, + "DirectoryId": { + "type": "string" + }, + "RootVolumeEncryptionEnabled": { + "type": "boolean" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" + }, + "UserName": { + "type": "string" + }, + "UserVolumeEncryptionEnabled": { + "type": "boolean" + }, + "VolumeEncryptionKey": { + "type": "string" + }, + "WorkspaceProperties": { + "$ref": "#/definitions/AWS::WorkSpaces::Workspace.WorkspaceProperties" + } + }, + "required": [ + "BundleId", + "DirectoryId", + "UserName" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::WorkSpaces::Workspace" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::WorkSpaces::Workspace.WorkspaceProperties": { + "additionalProperties": false, + "properties": { + "ComputeTypeName": { + "type": "string" + }, + "RootVolumeSizeGib": { + "type": "number" + }, + "RunningMode": { + "type": "string" + }, + "RunningModeAutoStopTimeoutInMinutes": { + "type": "number" + }, + "UserVolumeSizeGib": { + "type": "number" + } + }, + "type": "object" + }, + "Alexa::ASK::Skill": { "additionalProperties": false, "properties": { "DeletionPolicy": { @@ -54833,6 +58912,9 @@ { "$ref": "#/definitions/AWS::AppStream::User" }, + { + "$ref": "#/definitions/AWS::AppSync::ApiCache" + }, { "$ref": "#/definitions/AWS::AppSync::ApiKey" }, @@ -54941,6 +59023,9 @@ { "$ref": "#/definitions/AWS::CloudWatch::Dashboard" }, + { + "$ref": "#/definitions/AWS::CloudWatch::InsightRule" + }, { "$ref": "#/definitions/AWS::CodeBuild::Project" }, @@ -54971,6 +59056,9 @@ { "$ref": "#/definitions/AWS::CodeStar::GitHubRepository" }, + { + "$ref": "#/definitions/AWS::CodeStarNotifications::NotificationRule" + }, { "$ref": "#/definitions/AWS::Cognito::IdentityPool" }, @@ -55262,12 +59350,18 @@ { "$ref": "#/definitions/AWS::ECS::Cluster" }, + { + "$ref": "#/definitions/AWS::ECS::PrimaryTaskSet" + }, { "$ref": "#/definitions/AWS::ECS::Service" }, { "$ref": "#/definitions/AWS::ECS::TaskDefinition" }, + { + "$ref": "#/definitions/AWS::ECS::TaskSet" + }, { "$ref": "#/definitions/AWS::EFS::FileSystem" }, @@ -55277,6 +59371,9 @@ { "$ref": "#/definitions/AWS::EKS::Cluster" }, + { + "$ref": "#/definitions/AWS::EKS::Nodegroup" + }, { "$ref": "#/definitions/AWS::EMR::Cluster" }, @@ -55364,6 +59461,18 @@ { "$ref": "#/definitions/AWS::GameLift::Fleet" }, + { + "$ref": "#/definitions/AWS::GameLift::GameSessionQueue" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingConfiguration" + }, + { + "$ref": "#/definitions/AWS::GameLift::MatchmakingRuleSet" + }, + { + "$ref": "#/definitions/AWS::GameLift::Script" + }, { "$ref": "#/definitions/AWS::Glue::Classifier" }, @@ -55601,6 +59710,9 @@ { "$ref": "#/definitions/AWS::Lambda::Alias" }, + { + "$ref": "#/definitions/AWS::Lambda::EventInvokeConfig" + }, { "$ref": "#/definitions/AWS::Lambda::EventSourceMapping" }, @@ -55643,6 +59755,15 @@ { "$ref": "#/definitions/AWS::ManagedBlockchain::Node" }, + { + "$ref": "#/definitions/AWS::MediaConvert::JobTemplate" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Preset" + }, + { + "$ref": "#/definitions/AWS::MediaConvert::Queue" + }, { "$ref": "#/definitions/AWS::MediaLive::Channel" }, @@ -55724,18 +59845,27 @@ { "$ref": "#/definitions/AWS::Pinpoint::EmailChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::EmailTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::EventStream" }, { "$ref": "#/definitions/AWS::Pinpoint::GCMChannel" }, + { + "$ref": "#/definitions/AWS::Pinpoint::PushTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::SMSChannel" }, { "$ref": "#/definitions/AWS::Pinpoint::Segment" }, + { + "$ref": "#/definitions/AWS::Pinpoint::SmsTemplate" + }, { "$ref": "#/definitions/AWS::Pinpoint::VoiceChannel" }, @@ -56078,6 +60208,18 @@ { "$ref": "#/definitions/AWS::WAFRegional::XssMatchSet" }, + { + "$ref": "#/definitions/AWS::WAFv2::IPSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RegexPatternSet" + }, + { + "$ref": "#/definitions/AWS::WAFv2::RuleGroup" + }, + { + "$ref": "#/definitions/AWS::WAFv2::WebACL" + }, { "$ref": "#/definitions/AWS::WorkSpaces::Workspace" },